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

Multi UART selection

Hi,

I am using nRF52840. How can I use 2 UART communication ? Is there any example code? and how can I add in my peripheral application? Which pins are best to use for UART communication? I have to comunicate with  Neo 6m GSP and SIM com GSM.

Thanks!

  • Hi Muqarrab,

    nRF52840 has 2x UART (CTS/RTS) with EasyDMA. You can refer to example/peripheral/libuarte and document from this link. The example codes will give you the clue on how to assign pins and add a second UARTE instance.

    For your application development, you should refer to examples from GPS and GSM module manufacturers. Most of the time you only need to replace the UARTE driver part to make them work.

    Best regards,

    Charlie

Related