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

How to change the debug UART from UART1 to 2nd UART

Hello

I need a second UART, one for adebug long on the PC and the other for communication with another device.

My application is based on NRF51822 which has single UART available.

So, I want to use an I2C-to-UART bridge chip as 2nd UART for debugging.

Is there any good reference?

thanks

sjkim

Parents
  • Hi

    As you already pointed out, there is only one UART peripheral on the nRF51. It is however still possible to use UART for two different pinsets, just by simply configure the UART peripheral for one pin set, perform the UART communication, then configure the UART for the other pin set and carry out that UART communication. This will of course have certain overhead when always reconfiguring the UART for each transfer, which will limit the UART overall throughput and require more CPU time.

Reply
  • Hi

    As you already pointed out, there is only one UART peripheral on the nRF51. It is however still possible to use UART for two different pinsets, just by simply configure the UART peripheral for one pin set, perform the UART communication, then configure the UART for the other pin set and carry out that UART communication. This will of course have certain overhead when always reconfiguring the UART for each transfer, which will limit the UART overall throughput and require more CPU time.

Children
Related