This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is it physically possible to set UART RX and TX to same GPIO pin?

I'm trying to implement send && recieve through one wire. Handling of pin state, if it is input or output is done via SW. Also it is going to be half-duplex only.

Is it possible to do something like this:

NRF_UART0->PSELTXD=PIN_TX_RX;
NRF_UART0->PSELRXD=PIN_TX_RX;

After some experimentation I was unable to get it to run.

Parents Reply
  • That's not really what that section means, it's saying you can't assign the same GPIO pin to two different peripherals, ie you can't set the same pin in UART0 and SPI0 or similar. It doesn't say that the same pin cannot be used twice in a single peripheral. However given the different setup (input vs output) I would think it's pretty unlikely you can use one pin as TX and RX in the UART as you've found.

Children
No Data
Related