AT32F421
Series Reference Manual
2022.11.11
Page 315
Rev 2.02
partitioned mode on ordinary channels.
0: Partitioned mode disabled on ordinary channels
1: Partitioned mode enabled on ordinary channels
Bit 10
PCAUTOEN
0x0
rw
Preempted group automatic conversion enable after
ordinary group
0: Preempted group automatic conversion disabled
1: Preempted group automatic conversion enabled
Bit 9
VMSGEN
0x0
rw
Voltage monitoring enable on a single channel
0: Disabled (Voltage monitoring enabled on all channels)
1: Enabled (Voltage monitoring enabled a single channel)
Bit 8
SQEN
0x0
rw
Sequence mode enable
0: Sequence mode disabled (a single channel is
converted)
1: Sequence mode enabled (the selected multiple
channels are converted)
Note: If this mode is enabled and the CCEIEN/PCCEIEN
is set, a CCE or PCCE interrupt is generated only at the
end of conversion of the last channel.
Bit 7
PCCEIEN
0x0
rw
Conversion end interrupt enable on Preempted channels
0: Conversion end interrupt disabled on Preempted
channels
1: Conversion end interrupt enabled on Preempted
channels
Bit 6
VMORIEN
0x0
rw
Voltage monitoring out of range interrupt enable
0: Voltage monitoring out of range interrupt disabled
1: Voltage monitoring out of range interrupt enabled
Bit 5
CCEIEN
0x0
rw
Channel conversion end interrupt enable
0: Channel conversion end interrupt disabled
1: Channel conversion end interrupt enabled
Bit 4: 0
VMCSEL
0x00
rw
Voltage monitoring channel select
This filed is valid only when the VMSGEN is enabled.
00000: ADC_IN0 channel
00001: ADC_IN1 channel
……
01111: ADC_IN15 channel
10000: ADC_IN16 channel
10001: ADC_IN17 channel
10010~11111: Unused, configuration is not allowed.
18.5.3 ADC control register2 (ADC_CTRL2)
Accessible by words.
Bit
Register
Reset value
Type
Description
Bit 30: 24 Reserved
0x00
resd
Kept at its default value
Bit 23
ITSRVEN
0x0
rw
Internal V
INTRV
enable
0: Internal V
INTRV
disabled
1: Internal V
INTRV
enabled
Bit 22
OCSWTRG
0x0
rw
Conversion of ordinary channels triggered by software
0: Conversion of ordinary channels not triggered
1: Conversion of ordinary channels triggered (This bit is
cleared by software or by hardware as soon as the
conversion starts)
Bit 21
PCSWTRG
0x0
rw
Conversion of preempted channels triggered by software
0: Conversion of preempted channels not triggered
1: Conversion of preempted channels triggered (This bit
is cleared by software or by hardware as soon as the
conversion starts)
Bit 20
OCTEN
0x0
rw
Trigger mode enable for ordinary channel conversion
0: Disabled