AT32F425
Series Reference Manual
2022.03.30
Page 308
Ver 2.01
18.4.7 Status flag and interrupts
Each of the ADCs has its dedicated ADCx_STS reisters, that is, OCCS (ordinary channel conversion
start flag), PCCS (preempted channel conversion start flag), PCCE (preempted channel conversion end
flag), OCCE (ordinary channel conversion end flag) and VMOR (voltage monitor out of range).
PCCE, CCE and VMOR have their respective interrupt enable bits. Once the interrupt bits are enabled,
the corresponding flag is set and an interrupt is sent to CPU.
18.5
ADC registers
lists ADC register map and their reset values.
These peripheral registers must be accessed by word (32 bits).
Table 18-3 ADC register map and reset values
Register name
Offset
Reset value
ADC_STS
0x000
0x0000 0000
ADC_CTRL1
0x004
0x0000 0000
ADC_CTRL2
0x008
0x0000 0000
ADC_SPT1
0x00C
0x0000 0000
ADC_SPT2
0x010
0x0000 0000
ADC_PCDTO1
0x014
0x0000 0000
ADC_PCDTO2
0x018
0x0000 0000
ADC_PCDTO3
0x01C
0x0000 0000
ADC_PCDTO4
0x020
0x0000 0000
ADC_VMHB
0x024
0x0000 0FFF
ADC_VMLB
0x028
0x0000 0000
ADC_OSQ1
0x02C
0x0000 0000
ADC_OSQ2
0x030
0x0000 0000
ADC_OSQ3
0x034
0x0000 0000
ADC_PSQ
0x038
0x0000 0000
ADC_PDT1
0x03C
0x0000 0000
ADC_PDT2
0x040
0x0000 0000
ADC_PDT3
0x044
0x0000 0000
ADC_PDT4
0x048
0x0000 0000
ADC_ODT
0x04C
0x0000 0000
ADC_OVSP
0x080
0x0000 0000
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