UART Rx GPIO Mode
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-05-06 12:16 PM
Posted on May 06, 2012 at 21:16
Hi
I've seen quite a few UART examples, and all of them set the RX GPIO pin as ''Input-floating''.Why is it not set to ''Push-Pull'' (which can sink and source current)? The Tx pin is set to push-pull. What is the difference?Thanks in advanceAmir #stm32-gpio-mode
Labels:
- Labels:
-
GPIO-EXTI
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-05-06 12:29 PM
Posted on May 06, 2012 at 21:29
I've also seen SPI examples and the SPI GPIO pins are set to push-pull.
Why would UART and SPI be different?Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-05-06 7:17 PM
Posted on May 07, 2012 at 04:17
You are mixing Input mode and Output mode of IO.
The Transmission pin of the MCU needs to be in PP out and Receiving pin has to be in Input Floating mode to let the Tranmitting pin drive the Rx pin of the MCUOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-05-07 7:41 AM
Posted on May 07, 2012 at 16:41
''UART examples, and all of them set the RX GPIO pin as 'Input-floating'.''
The clue is in the name: Input.''Why is it not set to 'Push-Pull'?'' An Input receives a signal driven by some other device; Push-Pull is for use as an output to drive another device!''The Tx pin is set to push-pull'' Yes - because Tx is an output, so it needs to drive another device! This is general - apart from the particular names, it is not specific to the STM32.
A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
A complex system designed from scratch never works and cannot be patched up to make it work.
