At present, I have a project that needs to add dual uart function, but 52832 does not have hardware dual uart function, so I need to simulate one serial port, I need your help, please provide the routine
At present, I have a project that needs to add dual uart function, but 52832 does not have hardware dual uart function, so I need to simulate one serial port, I need your help, please provide the routine
I wonder if you could help me.
Thanks all.
Hi,
Have you considered using the nRF52840 instead? It have 2 UART interface.
It is difficult to simulate a good UART interface due to real time requirements, asynchronous etc.
Best regards,
Kenneth
Thanks, I think I solved it, because I got the routine that JACK wrote, and although it was a little bit problem at high baud rates, it wasn't a big problem at 2400 baud rates.Next, I will suggest the boss to use 52840
By the way, can you provide 58240 dual uart related routine or tell me how to get it
As long as you use the UART driver it should simply be having two instances:
http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/hardware_driver_uart.html?cp=4_0_0_2_0_19