RM0008 Analog-to-digital converter (ADC)
175/690
10.12.4 ADC sample time register 1 (ADC_SMPR1)
Address offset: 0x0C
Reset value: 0x0000 0000
Bit 0 ADON: A/D converter ON / OFF
This bit is set and cleared by software. If this bit holds a value of zero and a 1 is written to it then it
wakes up the ADC from Power Down state.
Conversion starts when this bit holds a value of 1 and a 1 is written to it. The application should
allow a delay of t
STAB
between power up and start of conversion. Refer to Figure 22.
0: Disable ADC conversion/calibration and go to power down mode.
1: Enable ADC and to start conversion
Note: If any other bit in this register apart from ADON is changed at the same time, then conversion is
not triggered. This is to prevent triggering an erroneous conversion.
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Reserved SMP17[2:0] SMP16[2:0] SMP15[2:1]
Res. rw rw rw rw rw rw rw rw
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
SMP
15_0
SMP14[2:0] SMP13[2:0] SMP12[2:0] SMP11[2:0] SMP10[2:0]
rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw
Bits 31:24 Reserved, must be kept cleared.
Bits 23:0 SMPx[2:0]: Channel x Sample time selection
These bits are written by software to select the sample time individually for each channel. During
sample cycles channel selection bits must remain unchanged.
000: 1.5 cycles
001: 7.5 cycles
010: 13.5 cycles
011: 28.5 cycles
100: 41.5 cycles
101: 55.5 cycles
110: 71.5 cycles
111: 239.5 cycles
Note: ADC1 analog inputs Channel16 and Channel17 are internally connected to the temperature
sensor and to V
REFINT
, respectively.
ADC2 analog input Channel16 and Channel17 are internally connected to V
SS
.
ADC3 analog inputs Channel14, Channel15, Channel16 and Channel17 are connected to V
SS
.