
Rev. 1.00
178 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
12
Analog to Digital Converter (ADC)
12
Analog to Digital Converter (ADC)
Bits
Field
Descriptions
[11:8]
ADEXTIS
EXTI Trigger Source Selection of ADC Conversion
0x00: EXTI line 0
0x01: EXTI line 1
…
0x0F: EXTI line 15
Note that the EXTI line active edge to start an A/D conversion is determined in the
External Interrupt / Event Control Unit, EXTI.
[0]
ADSC
ADC Conversion Software Trigger Bit
0: Reset
1: Start conversion immediately
This bit is set by software to start a conversion manually and then cleared by
hardware automatically after conversion is started.
ADC Watchdog Control Register – ADCWCR
This register provides the control bits and status of the ADC watchdog function.
Offset:
0x078
Reset value: 0x0000_0000
31
30
29
28
27
26
25
24
Reserved
ADUCH
Type/Reset
RO 0 RO 0 RO 0 RO 0
23
22
21
20
19
18
17
16
Reserved
ADLCH
Type/Reset
RO 0 RO 0 RO 0 RO 0
15
14
13
12
11
10
9
8
Reserved
ADWCH
Type/Reset
RW 0 RW 0 RW 0 RW 0
7
6
5
4
3
2
1
0
Reserved
ADWALL
ADWUE
ADWLE
Type/Reset
RW 0 RW 0 RW 0
Bits
Field
Descriptions
[27:24]
ADUCH
Upper Threshold Channel Status
0000: ADC_IN0 is higher than the upper threshold
0001: ADC_IN1 is higher than the upper threshold
...
1011: ADC_IN11 is higher than the upper threshold
Others: Reserved
If both the ADWUE and ADWALL status bits are set to 1 by the watchdog monitor
function, this status field value should first be stored in the user-defined memory
location in the corresponding ISR. Otherwise, the ADUCH field will be changed if
another input channel converted data is higher than the upper threshold.