![ARTERY AT32WB415 Series Reference Manual Download Page 257](http://html1.mh-extra.com/html/artery/at32wb415-series/at32wb415-series_reference-manual_2977599257.webp)
AT32WB415
Series Reference Manual
2022.04.13
Page 257
Ver 2.00
18.5.1 ADC status register (ADC_STS)
Accessed by words.
Bit
Register
Reset value
Type
Description
Bit 31: 5
Reserved
0x0000000
resd
Kept at its default value.
Bit 4
OCCS
0x0
rw0c
Ordinary channel conversion start flag
This bit is set by hardware and cleared by software (writing
0).
0: No ordinary channel conversion started
1: Ordinary channel conversion has started
Bit 3
PCCS
0x0
rw0c
Preempted channel conversion start flag
This bit is set by hardware and cleared by software (writing
0).
0: No preempted channel conversion started
1: Preempted channel conversion has started
Bit 2
PCCE
0x0
rw0c
Preempted channel end of conversion flag
This bit is set by hardware and cleared by software (writing
0).
0: Conversion is not complete
1: Conversion is complete
Bit 1
OCCE
0x0
rw0c
End of conversion flag
This bit is set by hardware. It is cleared by software (writing
0) or by reading the ADC_ODT register.
0: Conversion is not complete
1: Conversion is complete
Note: This bit is set at the end of the ordinary or preempted
group.
Bit 0
VMOR
0x0
rw0c
Voltage monitoring out of range flag
This bit is set by hardware and cleared by software (writing
0).
0: Voltage is within the value programmed
1: Voltage is outside the value programmed
18.5.2 ADC control register1 (ADC_CTRL1)
Accessed by words.
Bit
Register
Reset value
Type
Description
Bit 31: 24 Reserved
0x00
resd
Kept at its default value.
Bit 23
OCVMEN
0x0
rw
Voltage monitoring enable on ordinary channels
0: Voltage monitoring disabled on ordinary channels
1: Voltage monitoring enabled on ordinary channels
Bit 22
PCVMEN
0x0
rw
Voltage monitoring enable on preempted channels
0: Voltage monitoring disabled on preempted channels
1: Voltage monitoring enabled on preempted channels
Bit 21: 16 Reserved
0x0
resd
Kept at its default value.
Bit 15: 13 OCPCNT
0x0
rw
Partitioned mode conversion count of ordinary channels
000: 1 channel
001: 2 channels
……
111: 8 channels
Note: In this mode, the preempted group converts only one
channel at each trigger.
Bit 12
PCPEN
0x0
rw
Partitioned mode enable on preempted channels
0: Partitioned mode disabled on preempted channels
1: Partitioned mode enabled on preempted channels
Bit 11
OCPEN
0x0
rw
Partitioned mode enable on ordinary channels
This is set and cleared by software to enable or disable