cancel
Showing results for 
Search instead for 
Did you mean: 

Better way for mutlichannel ADC

TAndr.1
Associate II

Hello. I have stm32f407 MCU. I need read 6 ADC channels by timer (2 Khz) and store adc data to 6 circular buffers. What is better way do this?

4 REPLIES 4
TDK
Guru

If you need 6 individual circular buffers, you'll need to postprocess the data to split them up. Results will be returned in a single buffer for each ADC, not for each channel.

If you feel a post has answered your question, please click "Accept as Solution".
TAndr.1
Associate II

Is it possible split by hardware (dma)?

TDK
Guru

Nope.

If you feel a post has answered your question, please click "Accept as Solution".

No DMA will fill array in 6 word bursts. You'll need your processing task to step over as required (ie ptr += 6 rather than ptr++), or you'll need to deinterleave into arrays as you want them.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..