STM32L0x3 and STM32L0x2 - ADC_SMPR confusion
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 cycles001: 3.5 ADC clock cycles010: 7.5 ADC clock cycles011: 12.5 ADC clock cycles100: 19.5 ADC clock cycles101: 39.5 ADC clock cycles110: 79.5 ADC clock cycles111: 160.5 ADC clock cyclesBut, in both cases, the code examples say,
(4) Select a sampling mode of
111 i.e. 239.5 ADC
clkSo which is it - 160.5 samples, or
239.5
samples??https://community.st.com/message/75668
, from March 2015, quotesRM0367, 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.
https://community.st.com/message/75668
I don't see anything mentioned in the Revision Record...
#stm32l0x2 #adc-sample-cycles #adc_smpr #adc #adc-sampling-time #stm32l0x3