This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UART and UARTE peripherals

I've asked before about these two peripherals, the way they are presented is a little confusing.

I understand that UARTE has DMA possibilities, UART doesn't. Also that in effect there is only one UART on the chip.

In the case that I just want a very simple UART for debugging purposes, with the minimum of config and so on - what is recommended?

Is UARTE a superset of UART, and can be setup as a simple peripheral without using the DMA stuff?

Is it recommended in new designs to use UARTE over UART in new designs? I ask because much UART documentation and driver code seems to be in legacy status now.

Thanks for clarifying.

Parents
  • Hi

    The file you refer to is the legacy nrf_drv_uart.c/.h files, which if from before the UART and UARTE drivers had separate files. In the nrfx drivers we have separate files for UART and UARTE, and it works similar to what Markku describes, where the UARTE and UART is just the peripheral with and without EasyDMA. We generally recommend using the UARTE with EasyDMA as there isn't much extra setup compared to the simple UART, but you're free to use the basic UART if you prefer that.

    Best regards,

    Simon

Reply
  • Hi

    The file you refer to is the legacy nrf_drv_uart.c/.h files, which if from before the UART and UARTE drivers had separate files. In the nrfx drivers we have separate files for UART and UARTE, and it works similar to what Markku describes, where the UARTE and UART is just the peripheral with and without EasyDMA. We generally recommend using the UARTE with EasyDMA as there isn't much extra setup compared to the simple UART, but you're free to use the basic UART if you prefer that.

    Best regards,

    Simon

Children
No Data
Related