2024-03-06 07:49 AM
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?
Solved! Go to Solution.
2024-03-06 07:57 AM
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.
2024-03-06 07:57 AM
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.
2024-03-06 08:15 AM
Another question - does it have any impact on the current consumption? Does the TX mode only enable pullups for RX by default?
2024-03-06 08:25 AM
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.
2024-03-06 09:31 PM
Thank you. Could you also explain the difference in current when enabling pull up or configuring in HiZ mode?
2024-03-06 11:56 PM
Hello,
I propose you to open a new thread as this is a different topic.
Thank you.