cancel
Showing results for 
Search instead for 
Did you mean: 

DMA: last written buffer position?

PRenn.1
Associate III

DMA buffer 32 words, ADS converts 4 channels in scan mode.
So every 8 ADC-starts  DMA will start at buffer[0]  (circular buffer is ticked).
CubeIDE HAL is being used.

How do I find out / look up  the buffer offset most recently written to?

1 REPLY 1
MasterT
Lead

Look into DMA registers, there is a counter