Skip to main content
Associate II
March 6, 2024
Solved

Unused UART Rx pin on STM32F

Dear All,

on my STM32F board, i have the uart rx pin not connected/floating. Due to too many noise interrupts, I have configured UART in tx mode only and disabled RX interrupts. Is this fine? Or should the internal pull up be enabled for the RX pin? 

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
March 6, 2024

Hello,

Simply configure UART in Tx mode only and keep the Rx pin in default state: don't configure the alternate function on this pin.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.

5 replies

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
March 6, 2024

Hello,

Simply configure UART in Tx mode only and keep the Rx pin in default state: don't configure the alternate function on this pin.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
krishrAuthor
Associate II
March 6, 2024

Another question - does it have any impact on the current consumption? Does the TX mode only enable pullups for RX  by default?

mƎALLEm
ST Technical Moderator
March 6, 2024

The pull-up/down resistors are managed at GPIO peripheral level not the peripheral.

To avoid extra I/O current, the pin should be configured as analog input (AIN). In this mode the Schmitt trigger input is disabled, providing zero consumption for the I/O pin.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.