ADC Conversion time and Sampling time
I have an stm32f407g.
In the reference manual (in the ADC section) I found several terms I am afraid I have confused between them.
I would like to explain my reasoning with an example and get your feedback if I said something wrong.
-------------------------------------------------EXAMPLE (points are in order!)---------------------------------------------------------------
Suppose I need to sample a signal and I need a Tsample = 166.6 us
I need to tell the ADC to sample with that Tsample, however, I need to convert it to cycles:

With some approximation I find 480 cycles --> Tsample = 192us (a little different from 166us but it's okay)
EDIT: I have to take into account that the datasheet says that Tconv = Tsample + 12 cycles
so actually ADC takes Tconv = 480 + 12 cycles = 492 cycles = 196.8us .. not 192us

1a) Are these calculations correct?
How long does it take the ADC to convert each sample?
It depends on the resolution, right?
![]()
If I use 12 bits, the ADC will need 12 cycles + 3 cycles = 15 cycles ... which converted to seconds are:
15 * 1 cycle duration = 15 * 1/(PCLK/Perscaler) = 15 * 1/(10MHz/4) = 5us.
2a) Are these calculations correct?
2b) Does this mean that every Tsample = 192us the ADC read a sample and takes 5us to convert it?
----------------------------------------------------------------------------------------------------------------------------------------------------------
I hope I have been clear.
