cancel
Showing results for 
Search instead for 
Did you mean: 

Capturing stereo audio on STM32F4 with internall ADC

VBrun.1
Associate

What I want to do is capture audio using ADC0 and ADC1 with DMA. Until now I have not been able to find a decent solution on capturing 2 ADC inputs simultaneously using DMA.

Is this even possible?

2 REPLIES 2
TDK
Guru

Yes. There is no ADC0, but there are ADC1, ADC2 and ADC3 which are independent.

You can just set each of them up like this:

https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM32F4-Discovery/Examples/ADC/ADC_RegularConversion_DMA

Or you can use them in interleaved mode:

https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM324xG_EVAL/Examples/ADC/ADC_DualModeInterleaved

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

According to reference manual:

 0693W000003BoquQAC.jpg