UART DMA confusion

Hi,

I'm working with UART with DMA(UARTE) on nRF52840. UART does not have HW flow control, just RX-TX.

I'm confused with DMA part. Is DMA circular or I have to reset it back to 0? How I can get DMA byte index?

Until now I used DMA in circular mode and periodically transfer data from DMA buffer to buffer for processing. DMA byte index is needed but I'm not sure can I get it.

For now, only way to make design like this is to use classic UART and emulate DMA with enabled interrupts.

I use nRF5 SDK.

Parents Reply Children
No Data
Related