Skip to main content
Graduate
March 6, 2024
Solved

Unused UART Rx pin on STM32F

  • March 6, 2024
  • 1 reply
  • 1947 views

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.
    Best answer by mƎALLEm

    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.

    1 reply

    mƎALLEmAnswer
    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.

    krishrAuthor
    Graduate
    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?

    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.