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

NRF52832 change UART pin configuration on the fly

Hi

I read in another post a while ago a suggestion of changing GPIO pins allocated to the UART (which I can't find now) as a way for implementing multiple UARTs. I would like to send data to more than one UART, so is it practical to swap the UART TX pin before sending? This is transmit only so I don't need to worry about RX.

If so, what is the best way of going about it? I guess I could reinitialise the UART every time but that seems a bit overkill to me.

I'm currently using printf to send but I can change that if need be.

An alternative would be some external logic driven by GPIOs to route the data although I'd like to do it by code if possible.

Parents Reply Children
No Data
Related