cancel
Showing results for 
Search instead for 
Did you mean: 

4 ADCs simultaneous sampling

AKhot.1
Senior

Is it possible to use 4 ADC input channel and sample them simultaneously in any of the STM32 product on a single board?

6 REPLIES 6
MasterT
Lead

No. To sample 4 analog inputs at ones you need 4 ADC, check out nucleo-G474re

raptorhal2
Lead

The F303 also has 4 ADCs.

As I recall this could be done on the F3-DISCO board. ie ADC1 and 2, and ADC3 and 4, could be paired and synchronized with a common clock trigger. Data Buffering perhaps not ideal, but could be managed.

https://www.st.com/en/evaluation-tools/stm32f3discovery.html

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

You are saying that it's impossible and then immediately suggesting a device, which can do it...

I know how to operate ADC1 and ADC2 together similarly this will work for ADC3 and ADC4. But how to do all 4 simultaneously? You said we can do that by common clock trigger. 

Do you have example for that? Or do you know how to do that?

Simply set the same event to trigger all ADC.

hadc1.Init.ExternalTrigConv = ADC_EXTERNALTRIG_T1_TRGO;

Here is an example for G-474, search another one for your uCPU

https://github.com/STMicroelectronics/STM32CubeG4/blob/master/Projects/B-G474E-DPOW1/Examples/ADC/ADC_GainCompensation/Src/main.c