2024-07-26 04:59 AM - edited 2024-07-26 05:05 AM
Hi,
I'm working on ADC1, on a STM32U5 (on a Nucleo board). In reference manual (RM0456) § 33.4.13 "Channel-wise programmable sampling time" we can read how to compute the total conversion time Tconv.
The example is given for SMP = 5 ADC clock, at 55Mhz. It says:
What I need is a confirmation about the statement I stressed in pink on the above picture "for 14-bit mode".
Does it mean that if I set ADC1 to 12 bits or 10 bits resolution the computation is not done with 17 cycles but with something else (less than 17) ?
Said differently: does the number of ADC clock for the conversion depends on the ADC resolution or is it fixed at 17 cycles for ADC1 ?
My guess is that sampling time is programmable but conversion time is fixed whatever the resolution. Since in the RM I do not find any list of conversion time I tend to conclude I'm correct.
But I'd like a confirmation to this.
Best regards
Patrice.
Solved! Go to Solution.
2024-07-26 05:28 AM
Dear @PatriceL ,
First thanks for the interesting question that the answer should be clearly mentioned in our Reference Manual but it seems not so straightforward.
Page 6 and especially Page 16 . Basically at documentation level we handle common chapters in English to describe different ADCs having some more or less features :
Sampling time is fully configurable as you shown above . but Conversion is fixed depending on the 12 or 14-bits selection : 12,5 cycles and 17 cycles respectively when sampling is over and starts converting.
Let me know if it helps you .
by the way we need to fix this material ( remove target and red ) Merci et bien à vous
Ciao
STOne-32
2024-07-26 05:28 AM
Dear @PatriceL ,
First thanks for the interesting question that the answer should be clearly mentioned in our Reference Manual but it seems not so straightforward.
Page 6 and especially Page 16 . Basically at documentation level we handle common chapters in English to describe different ADCs having some more or less features :
Sampling time is fully configurable as you shown above . but Conversion is fixed depending on the 12 or 14-bits selection : 12,5 cycles and 17 cycles respectively when sampling is over and starts converting.
Let me know if it helps you .
by the way we need to fix this material ( remove target and red ) Merci et bien à vous
Ciao
STOne-32
2024-07-26 05:45 AM - edited 2024-07-26 05:46 AM
Hi @STOne-32 and thank you for the confirmation. I've already read this pdf you mention, but did not pay enough attention to the table on page 16.
So, this conversion time is fixed in number of clock, what is confusing is the sentences "for 14 bit" for ADC12 and "for 12 bit" for ADC4 that appears also on the slide 16: Maybe I'm overthinking, that's my thing, but such a statement could be interpreted as "so if not 14 bits the conversion time is not 17 clocks but something else but we do not say how many
Thank you for the answer.
Patrice
2024-07-26 05:49 AM - edited 2024-07-26 05:50 AM
Thanks for sharing and inputs . Just for fun - it might be French/ italien style translation to English in our Manuals . have a great day ! And good time this evening with the opening ceremony.
Ciao
STOne-32