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

NRF52832 single wire uart

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?

Parents
  • It is not possible.

    It may work if you put a diode between TX and RX and use pullup resistor on the RX line. Do a search on the internet, there is a lot of information about this topic with other MCUs.

  • I understand how that works, but I don't see the need for a diode. NRF52832 has open-drain outputs on all GPIOs (GPIO drive set to disconnect '1'), so it should be enough to short TX and RX directly together, without the diode. I was simply wondering if i have to short two separate pads externally, or is it possible to short the signals internally using the PSELTXD and PSELRXD registers. Figure 21: GPIO Port and the GPIO pin details on page 112 suggests that it should work, but perhaps there's something else which will prevent it from working. I don't have the dev kit yet, otherwise I would just check and see.

Reply
  • I understand how that works, but I don't see the need for a diode. NRF52832 has open-drain outputs on all GPIOs (GPIO drive set to disconnect '1'), so it should be enough to short TX and RX directly together, without the diode. I was simply wondering if i have to short two separate pads externally, or is it possible to short the signals internally using the PSELTXD and PSELRXD registers. Figure 21: GPIO Port and the GPIO pin details on page 112 suggests that it should work, but perhaps there's something else which will prevent it from working. I don't have the dev kit yet, otherwise I would just check and see.

Children
No Data
Related