Many ADC measurements on different ADC
Hi,
I'm using STM32F207 and I'm trying to make three different ADC measurements on three difeerent ADC.
My purpose is to make 100.000 measurements on each of these signals at the highest speed possible.
With only one signal (so using only one ADC) I can make 100.000 measurements in 3,88 secondes but withg three different signals I need 11,69 seconds to make all these measurements (3 * 100.000 measurements)
Here my code
for (uint32_t i = 0; i<100000; i++)
{
HAL_ADC_Start(&hadc1);
HAL_ADC_PollForConversion(&hadc1, 100);
adcResult_many_ADC1[i] = HAL_ADC_GetValue(&hadc1);
HAL_ADC_Stop(&hadc1);
HAL_ADC_Start(&hadc2);
HAL_ADC_PollForConversion(&hadc2, 100);
adcResult_many_ADC2[i] = HAL_ADC_GetValue(&hadc2);
HAL_ADC_Stop(&hadc2);
HAL_ADC_Start(&hadc3);
HAL_ADC_PollForConversion(&hadc3, 100);
adcResult_many_ADC3[i] = HAL_ADC_GetValue(&hadc3);
HAL_ADC_Stop(&hadc3);
}Is there a way to decrease this time by coding it differently ?
Thank you for your help :smiling_face_with_smiling_eyes: