ADC and DMA conversion time
I am working on a project where I use the NUCLEO-L433RC-P board and CubeMX to configure the settings.
The project use ADC and DMA, when I calculate the conversion time, I get a value less than 15 ADC clock cycles.
I calculate the conversion time by measuring the times for making 60 conversions and 10 conversions. I subtract the two times and divide it by 50 to get the time for one conversion.
The conversion time differ between 13.2 and 14.5 ADC clock cycles depending on the ADC clock.
Example:
SYS clock and ADC clock is 11MHz
Time ADC start to HAL_ADC_ConvCpltCallback sample 60 values 94 µs.
Time ADC start to HAL_ADC_ConvCpltCallback sample 10 values 34 µs.
Conversion time (ADC clocks): ((0.000094-0.000034)/50)*(11000000) = 13,2
Is there a logic explanation for this?