Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

ADC + DMAC circular buffer

$
0
0

Hello!

 

I'm trying to implement continuous reading of ADC measurements to circular buffer in memory. After some part of buffer is filled I would process it in some thread, while other part of buffer would be filled with new measurements. ADC periodic framework is not sufficient in my case, because I need to measure signal as fast as possible (for now it will be just one ADC in continuous mode, but I'm planning to use two ADCs in 0,2us interleaved mode later).

 

If it was STM32 I'd simply configure ADC for continuous mode, and DMA for circular mode with interrupts on Transfer Complete and Half-Transfer Complete. But I'm struggling to figure out how to get similar behavior on S5D9. I'd be glad if someone can help me on that.

 

Thanks in advance,

Eighth


Viewing all articles
Browse latest Browse all 5781

Trending Articles