
GD32L23x User Manual
220
1: Analog watchdog event
Set by hardware when the converted voltage crosses the values programmed in
the ADC_WDLT and ADC_WDHT registers.
Cleared by software writing 0 to it.
13.5.2.
Control register 0 (ADC_CTL0)
Address offset: 0x04
Reset value: 0x0000 0000
This register has to be accessed by word (32-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
DRES [1:0]
RWDEN
IWDEN
Reserved
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
DISNUM [2:0]
DISIC
DISRC
ICA
WDSC
SM
EOICIE
WDEIE
EOCIE
WDCHSEL [4:0]
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:26
Reserved
Must be kept at reset value.
25:24
DRES[1:0]
ADC resolution
00: 12bit
01: 10bit
10: 8bit
11: 6bit
23
RWDEN
Regular channel analog watchdog enable
0: Regular channel analog watchdog disable
1: Regular channel analog watchdog enable
22
IWDEN
Inserted channel analog watchdog enable
0: Inserted channel analog watchdog disable
1: Inserted channel analog watchdog enable
21:16
Reserved
Must be kept at reset value.
15:13
DISNUM[2:0]
Number of conversions in discontinuous mode
The number of channels to be converted after a trigger will be DISNUM [2:0] +1
12
DISIC
Discontinuous mode on inserted channels
0: Discontinuous mode on inserted channels disable
1: Discontinuous mode on inserted channels enable
11
DISRC
Discontinuous mode on regular channels
0: Discontinuous mode on regular channels disable
1: Discontinuous mode on regular channels enable