GD32W51x User Manual
360
14.4.
Function overview
Figure 14-1. ADC module block diagram
ADC_IN0
ADC_IN1
· ·
·
ADC_IN8
GPIO
C
h
a
n
n
e
l
se
le
ct
o
r
V
SENSE
V
BAT
V
DDA
V
SSA
Injected data registers
(
16 bits x 4
)
Regular data registers
(
16 bits
)
Regular
channels
Inserted
channels
Channel Management
Trig select
EX
T
I_
11
T
IMER
0
_
CH
0
T
IME
R
0
_
CH
1
T
IME
R
0
_
CH
2
T
IME
R
1
_
CH
1
Trig select
EX
T
I_
15
T
IMER
0
_
T
R
G
O
T
IMER
0
_
CH
3
T
IMER
1
_
T
R
G
O
T
IMER
1
_
CH
0
Analog
watchdog
A
P
B
B
U
S
EOC
EOIC
watchdog
event
Interrupt
generator
ADC
Interrupt
OVSS[3:0]
OVSR[2:0]
OVSE
TOVS
Over
sampler
V
REFINT
RVOF
DMA request
14.4.1.
ADC clock
The ADCCLK clock provided by the clock controller is synchronous with the AHB and APB2
clock. The maximum frequency is 35MHz. The RCU controller has a dedicated programmable
prescaler for the ADC clock.
14.4.2.
ADCON switch
The ADC module is enabled or disabled by configuring the ADCON bit in the ADC_CTL1
register. The ADC module will keep in reset state if this bit is 0. For power saving, when this
bit is 0, the analog sub-module will be enter power-down mode
14.4.3.
Regular and inserted channel groups
The ADC supports 12 multiplexed channels and organizes the conversion results into two
groups: a regular channel group and an inserted channel group.