2021-10-18 12:39 PM
We need some receive only UART/USART on STM32H7/STM32F7.
In MX I can select Half Duplex, but that seems to only disable Rx pin.
Even when I select [Data direction = Rx Only] still shows only Tx pin.
Even when I select [TX and Rx pins swapping = enable] still shows only Tx pin.
Is this only a bug in MX?
Is there a limitation in STM32H7/STM32F7?
How can I free the Uart Tx pins for other assignments?
Paul
Solved! Go to Solution.
2021-11-06 05:18 PM
And just to complete the information... If the USART_CR3_HDSEL and USART_CR2_SWAP are both set, then the half-duplex Tx/Rx is done on Rx pin and Tx pin is free for other use. Also, to avoid the effects of internal Tx-Rx loopback, I implemented switching between Tx and Rx modes by enabling/disabling the USART_CR1_TE and USART_CR1_RE bits accordingly.
2021-10-18 05:31 PM
Have you tried full duplex without specifying TX pin? As long as it works....
2021-10-26 08:10 AM
Just posting results so this item can be closed.
Paul
2021-11-06 05:18 PM
And just to complete the information... If the USART_CR3_HDSEL and USART_CR2_SWAP are both set, then the half-duplex Tx/Rx is done on Rx pin and Tx pin is free for other use. Also, to avoid the effects of internal Tx-Rx loopback, I implemented switching between Tx and Rx modes by enabling/disabling the USART_CR1_TE and USART_CR1_RE bits accordingly.