
Rev. 1.00
170 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)
Register Descriptions
ADC Conversion Control Register – ADCCR
This register specifies the mode setting, sequence length and subgroup length of ADC conversion mode. Note
that once the content of ADCCR is changed, the conversion in progress will be aborted and the A/D converter
will return to an idle state. The application program has to wait for at least one CK_ADC clock before issuing the
next command.
Offset:
0x000
Reset value: 0x0000_0000
31
30
29
28
27
26
25
24
Reserved
Type/Reset
23
22
21
20
19
18
17
16
Reserved
ADSUBL
Type/Reset
RW 0 RW 0 RW 0
15
14
13
12
11
10
9
8
Reserved
ADSEQL
Type/Reset
RW 0 RW 0 RW 0
7
6
5
4
3
2
1
0
ADCEN
ADCRST
Reserved
ADMODE
Type/Reset RW 0 RW 0
RW 0 RW 0
Bits
Field
Descriptions
[18:16]
ADSUBL
ADC Conversion Subgroup Length
The ADSUBL field specifies the conversion channel length of each subgroup for
regular discontinuous mode. Subgroup length = ADSUBL [2:0] + 1. If the sequence
length (ADSEQL [2:0] + 1) is not a multiple of the subgroup length (ADSUBL [2:0] + 1),
the last subgroup will be the rest of the group channels that have not been converted.
[10:8]
ADSEQL
ADC Conversion Length
0x00: The channel specified by the ADSEQ0 field in the ADCLST0 register will be
converted
Others: Length of list queue = ADSEQL [2:0] + 1
The ADSEQL field specifies the whole conversion sequence length for the
conversion group.
[7]
ADCEN
ADC Enable
0: Disable
1: Enable
[6]
ADCRST
ADC Reset
0: No effect
1: Reset A/D converter except for the A/D Converter controller