
Rev. 1.00
220 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
13 Comparator (CMP) (HT32F54243/HT32F54253 only)
Comparator Voltage Reference Value Register n – CVRVALRn, n = 0 or 1
The register is used to set the comparator voltage reference level.
Offset:
0x004 (n = 0), 0x104 (n = 1)
Reset value: 0x0000_0000
31
30
29
28
27
26
25
24
Reserved
Type/Reset
23
22
21
20
19
18
17
16
Reserved
Type/Reset
15
14
13
12
11
10
9
8
Reserved
Type/Reset
7
6
5
4
3
2
1
0
CVRVAL
Type/Reset RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0
Bits
Field
Descriptions
[7:0]
CVRVAL
Comparator Voltage Reference Value
There are 256 levels of the comparator voltage reference, which is set using the
CVRVAL bits. The relationship between the CVRVAL register value and the CVR
output, V
CVR
, is given by the following equation:
V
CVR
= CVRVAL × (V
RP
- V
SSA
) / 255, where V
RP
can come from the V
DDA
or V
REF
.