
Rev. 1.00
214 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
13 Comparator (CMP) (HT32F54243/HT32F54253 only)
13
13
Comparator (CMP) (HT32F54243/
HT32F54253 only)
Introduction
Two general purpose comparators (CMP) are implemented within the devices. They can be
configured either as standalone comparators or combined with the different kinds of peripheral IP.
Each comparator is capable of asserting interrupts to the NVIC or waking up the CPU from the
Sleep, Deep-Sleep1 or Deep-Sleep2 mode through the EXTI wakeup event management unit.
CP
CN
MU
X
8-Bit
CVR
V
DDA
V
SSA
CVRVAL[7:0]
CVROE
Reserved
CVREN
CMPINSEL[1:0]
CMPPOL
Sync
Programmable
Hysteresis
Programmable
Response Time
CMPEN
PCLK
MU
X
0
1
MU
X
CMPSTS
GPIO
AFIO
COUT
To EXTI Wakeup
Event Management
CMP Status
& Interrupt
Request
ADC, GPTM
MCTM
Comparator Analog IP
MU
X
0
1
V
REF
CVRSS
V
DDA
Domain
V
CORE
Domain
V
CVR
MU
X
0
1
SYNCSEL
Control &
Interrupt
Generator
CMPOUT
Reserved
Figure 35. Comparator Block Diagram
Features
▆
Rail-to-rail comparator
▆
Configurable negative inputs for flexible voltage selection
●
External CN pin
●
Internal 8-bit CVR output
▆
Programmable hysteresis
▆
Programmable response speed and power consumption
▆
Comparator output can be routed to I/O pin, to multiple timers or to ADC trigger inputs
▆
8-bit CVR can be configured to dedicated I/O for voltage reference
▆
Comparator has interrupt generation capability with wakeup function from the Sleep, Deep-
Sleep1 or Deep-Sleep2 mode through the EXTI controller