cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F0xx ADC oversampling with DMA

gerhard
Associate II
Posted on June 22, 2016 at 18:47

It is recommended to use DMA for multiple ADC channels, and I spent too much time trying to switch between channels manually.

So I used STM32CubeMX to get DMA working for ADC1_Channel_0 and Channe_1

I want to take x16 samples on each Channel_0/1, and then get the average.

1)

Is there some flag / interrupt that I can check. does the EOC still work under DMA?

2)

How do I know which channel the sample belongs to?

3) Is there a way to tell the DMA mechanism to take 16 samples, (alternating between CH_0 / CH_1, while storing it to the ADC_Buffer [] array?\

Any help appreciated
0 REPLIES 0