![GigaDevice Semiconductor GD32A50 Series Скачать руководство пользователя страница 590](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32a50-series/gd32a50-series_user-manual_2225782590.webp)
GD32A50x User Manual
590
22.
Comparator (CMP)
22.1.
Overview
The general purpose comparator CMP can work either standalone (all terminal are available
on I/Os) or together with the timers.
It could be used to wake up the MCU from low-power mode by an analog signal, provide a
trigger source when an analog signal is in a certain condition, achieves some current control
by working together with a PWM output of a timer and the DAC. It blanking function can be
used for false overcurrent detection in motor control applications.
22.2.
Characteristic
Rail-to-rail comparators
Configurable hysteresis
Configurable speed and consumption
Comparator has configurable analog input source
–
DAC
–
Multiplexed
I/O pins
–
The whole or sub-multiple values of internal reference voltage
Outputs with blanking source
Outputs to I/O
Outputs to timers for capture
Outputs to EXTI
22.3.
Function overview
The block diagrams of CMP are shown in
Figure 22-1. CMP block diagram