Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 2 months ago.
How to use both UART in nrf52840 dev Kit
Hey,
I have nrf52840 dev kit. i can see only one UART port available at P0_8, P0_6. can i use both UART in the dev Kit? how? Is there any working example available for both UART working. They used a concept of Easy DMA that confused me a bit there is not a good documentation available too.
Thanks
1 Answer
7 years, 2 months ago.
According to the Nordic forums you can use any GPIO pin as UART by setting the PSEL register. You'd probably need to use Nordic's SDK (embedded in mbed OS 5) for that as I don't think it's exposed by mbed HAL. Perhaps best to ask at Nordic DevZone.
Hi Suraj,
Mbed can support pin assign change without any addtional effort.
Just write port(pin) name in Serial class.
You can see two example as follows.
/users/kenjiArai/code/BLE_I2C_pin_assign/
/users/kenjiArai/code/BLE_UART_pin_assign/
These are nRF51 program but I believe you can use it for nRF52.