GD32A50x User Manual
592
22-2. The CMP outputs signal blanking
shows the comparator output blank function.
Figure 22-2. The CMP outputs signal blanking
PWM signal
Blanking window signal
Current signal
Current threshold
CMP outputs raw singal
CMP outputs final singal
22.3.3.
CMP register write protection
The CMP control and status register (CMP_CS) can be protected from writing by setting LK
bit to 1. The CMP_CS register, including the LK bit will be read-only, and can only be reset by
the MCU reset.
This write protection function is useful in some applications, such as thermal protection and
over-current protection.
22.3.4.
CMP power mode
For a given application, there is a trade-off between the CMP power consumption versus
propagation delay, which is adjusted by configuring bits PM[1:0] in CMP_CS register. The
CMP works fastest with highest power consumption when PM = 2’b00, while works slowest
with lowest power consumption when PM = 2’b11.
22.3.5.
CMP hysteresis
In order to avoid spurious output transitions that caused by the noise signal, a programmable
hysteresis is designed to force the hysteresis value using external components. This function
can be shut down when user don't need it.