AnsweredAssumed Answered

STM32L0x3 and STM32L0x2 - ADC_SMPR confusion

Question asked by Andrew Neil on Dec 1, 2017
Latest reply on Mar 4, 2018 by waclawek.jan

References:

STM32L0x3 - RM0367, Rev 5

STM32L0x2 - RM0376, Rev 4

 

In both cases, the description of ADC sampling time register (ADC_SMPR) says,

Bits 2:0 SMP[2:0]: Sampling time selection
These bits are written by software to select the sampling time that applies to all channels.
000: 1.5 ADC clock cycles
001: 3.5 ADC clock cycles
010: 7.5 ADC clock cycles
011: 12.5 ADC clock cycles
100: 19.5 ADC clock cycles
101: 39.5 ADC clock cycles
110: 79.5 ADC clock cycles
111: 160.5 ADC clock cycles

 

But, in both cases, the code examples say,

(4) Select a sampling mode of 111 i.e. 239.5 ADC clk

So which is it - 160.5 samples, or 239.5 samples??

 

This post, from March 2015, quotes RM0367, v2 :

RM0367, v2, section 14.13.6 lists the following possible sample time: 
1.5, 7.5, 13.5, 28.5, 41.5, 55.5, 71.5, 239.5.

ADC Sampling Time STM32L053C8 

 

I don't see anything mentioned in the Revision Record...

Outcomes