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

Using two UART in nrf51822

I want to use two UARTS ie uart0 and uart1. I read that nrf51822 gpio pins can be set as rx & tx but i couldnt find any example.

I am using SDK12.3

Please attach some links for same. 

Parents
  • Hi,

     

    The nRF51x22 only has one UART peripheral, as per the product specification. RXD and TXD can be assigned to any unused GPIO of your choice.

    If you need a second UART, you have to implement a bit banged UART (a software implemented uart using GPIOs). Unfortunately, we do not have any implementations of this available, but it is however been discussed on the forum before. Try searching for "bit bang uart" and you should find some threads on this.

     

    Note that nRF52840 has two hardware UARTE peripherals, so you could move to that device if your application require this.

    Kind regards,

    Håkon

Reply
  • Hi,

     

    The nRF51x22 only has one UART peripheral, as per the product specification. RXD and TXD can be assigned to any unused GPIO of your choice.

    If you need a second UART, you have to implement a bit banged UART (a software implemented uart using GPIOs). Unfortunately, we do not have any implementations of this available, but it is however been discussed on the forum before. Try searching for "bit bang uart" and you should find some threads on this.

     

    Note that nRF52840 has two hardware UARTE peripherals, so you could move to that device if your application require this.

    Kind regards,

    Håkon

Children
Related