Analog-to-digital converters (ADC)
RM0365
373/1080
DocID025202 Rev 7
15.5.11 ADC
regular
sequence
register 2 (ADCx_SQR2, x=1
..
2)
Address offset: 0x34
Reset value: 0x0000 0000
Bits 10:6
SQ1[4:0]:
1st conversion in regular sequence
These bits are written by software with the channel number (1..18) assigned as the 1st in the
regular conversion sequence.
Note: Software is allowed to write these bits only when ADSTART=0 (which ensures that no
regular conversion is ongoing).
Note: Analog input channel 0 is not mapped: value “00000” should not be used
Bits 5:4 Reserved, must be kept at reset value.
Bits 3:0
L[3:0]:
Regular channel sequence length
These bits are written by software to define the total number of conversions in the regular
channel conversion sequence.
0000: 1 conversion
0001: 2 conversions
...
1111: 16 conversions
Note: Software is allowed to write these bits only when ADSTART=0 (which ensures that no
regular conversion is ongoing).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Res.
Res.
Res.
SQ9[4:0]
Res.
SQ8[4:0]
Res.
SQ7[4]
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
SQ7[3:0]
Res.
SQ6[4:0]
Res.
SQ5[4:0]
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits 31:29 Reserved, must be kept at reset value.
Bits 28:24
SQ9[4:0]:
9th conversion in regular sequence
These bits are written by software with the channel number (1..18) assigned as the 9th in the
regular conversion sequence.
Note: Software is allowed to write these bits only when ADSTART=0 (which ensures that no
regular conversion is ongoing).
Note: Analog input channel 0 is not mapped: value “00000” should not be used
Bit 23 Reserved, must be kept at reset value.
Bits 22:18
SQ8[4:0]:
8th conversion in regular sequence
These bits are written by software with the channel number (1..18) assigned as the 8th in the
regular conversion sequence
Note: Software is allowed to write these bits only when ADSTART=0 (which ensures that no
regular conversion is ongoing).
Note: Analog input channel 0 is not mapped: value “00000” should not be used
Bit 17 Reserved, must be kept at reset value.