Is it possible to use the NRF52832 UART in half-duplex single-wire mode, by assigning TXD and RXD to the same GPIO, setting the GPIO drive to disconnect '1' and using a pull-up resistor?
Is it possible to use the NRF52832 UART in half-duplex single-wire mode, by assigning TXD and RXD to the same GPIO, setting the GPIO drive to disconnect '1' and using a pull-up resistor?
I misunderstood you when you said "disconnect", I thought (for some reason) that you meant input buffer disconnect.
Using S0D1 or H0D1 should work the same way as the diode, you are correct.
I tested assigning UART RXD and TXD to the same pin and it works, but we cannot guarantee correct behaviour always. You should test it thoroughly before going for that solution.
I will update my answer.
@Quangng: Could you post your full code ? What exactly inside uart_write() ? Would it be blocking code ? I suspect that right after you send your reply and switch to RX, there is an issue that trigger the reply again ( as maybe there was something accidentally got in the RX buffer ).
I would suggest you to create another question.
@Quangng: Could you post your full code ? What exactly inside uart_write() ? Would it be blocking code ? I suspect that right after you send your reply and switch to RX, there is an issue that trigger the reply again ( as maybe there was something accidentally got in the RX buffer ).
I would suggest you to create another question.