GD32A50x User Manual
283
Set by hardware when the converted voltage crosses the values programmed in
the ADC_WDLT0 and ADC_WDHT0 registers. Cleared by software writing 0 to it.
14.7.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 WDE1IE
Reserved
RWD0EN
Reserved
SYNCM[3:0]
rw
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
DISNUM[2:0]
Reserved DISRC Reserved WD0SC
SM
Reserved WDE0IE
EOCIE
WD0CHSEL[4:0]
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31
Reserved
Must be kept at reset value.
30
WDE1IE
Interrupt enable for WDE1
0: WDE1 interrupt disable
1: WDE1 interrupt enable
29:24
Reserved
Must be kept at reset value.
23
RWD0EN
Routine channel analog watchdog 0 enable
0: Analog watchdog 0 disable
1: Analog watchdog enable
22:20
Reserved
Must be kept at reset value.
19:16
SYNCM[3:0]
Sync mode selection
These bits use to select the operating mode.
0000: Free mode.
0110: Routine parallel mode only
0111: Routine follow-up fast mode only
1000: Routine follow-up slow mode only
Note
: 1) These bits are only used in ADC0. 2) Users must disable sync mode
before any configuration change.
15:13
DISNUM[2:0]
Number of conversions in discontinuous mode
The number of channels to be converted after a trigger will be 1 in
routine sequence.
12
Reserved
Must be kept at reset value.
11
DISRC
Discontinuous mode on routine channels