Number of Bytes received over UART when using DMA

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User16575
Level 1
Level 1
Hi,

Im using the UART App in DAVE to receive bytes asynchronously. I dont know how many bytes I will receive ahead of time, but I do know that they will come in periodic bursts.

I configured the UART to receive data in 64 Byte segments using the DMA at which point an interrupt is fired and the data is buffered.

The last segment of data will be under 64 Bytes, and as such the interrupt will not fire.

I was wondering if there is a way to check the amount of Bytes received from the UART bus (im thinking by checking the status of the DMA)?


Im using the XMC 4700 FYI.
0 Likes
1 Reply
rst
Level 3
Level 3
First solution authored Welcome!
rperry wrote:
I was wondering if there is a way to check the amount of Bytes received from the UART bus (im thinking by checking the status of the DMA)?

See of field BLOCK_TS in CTL-register of DMA-channel.
0 Likes