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

Invert Port at a NRF51822

Hello,

I already searched the forum, but I didn't find anything.

Is there a way to invert a port on a NRF51822?

I use this chip together with an XMega-Chip and they communicate via uart. At the XMega, the TX-Pin is inverted, because it is also used to communicate via a led, but the led should not light up all the time. At the xmega I am able to invert a port signal, for in- and output. Is there a configuration option for the nrf? I didn't find anything.

Thanks for your help.

Parents
  • The LED is connected to the UART TX line and I want it to light up only when transmitting. I tried to only switch on the TX line, when transmitting. That works, but is still too much light, even if I use 1MBaud. That's because I have to wait some time before and after sending, because I don't want to run into frame errors for the first and last byte. Is there no software configuration like on an atmel chip, which says, that this port pin is inverted?

Reply
  • The LED is connected to the UART TX line and I want it to light up only when transmitting. I tried to only switch on the TX line, when transmitting. That works, but is still too much light, even if I use 1MBaud. That's because I have to wait some time before and after sending, because I don't want to run into frame errors for the first and last byte. Is there no software configuration like on an atmel chip, which says, that this port pin is inverted?

Children
No Data
Related