![GigaDevice Semiconductor GD32E23 Series Скачать руководство пользователя страница 183](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e23-series/gd32e23-series_user-manual_2225794183.webp)
GD32E23x User Manual
183
Figure 11-1. CMP block diagram
Note
: V
REFINT
is 1.2V.
11.3.1.
CMP clock and reset
The CMP clock is synchronous with the PCLK. The CMP share common reset and clock
enable bits with SYSCFG.
11.3.2.
CMP I/O configuration
These pins must be configured in analog mode before they are selected as CMP inputs.
Considering pin definitions in datasheet, the CMP output must be connected to
corresponding alternate I/Os.
CMP output internally connect to the TIMER and the connections between them are as
follows:
CMP output to the TIMER input channel.
CMP output to the TIMER break.
CMP output to the TIMER OCPRE_CLR.
In order to work even in deep-sleep mode, the polarity selection logic and the output
redirection to the port work independently from PCLK.
The CMP output can be redirected internally and externally simultaneously.
Each CMP has its own EXTI line and it could generate either interrupts or events
whitchmake the CMP exit from power saving modes.
11.3.3.
CMP operating mode
For a given application, there is a trade-off between the CMP power consumption versus
propagation delay, which is adjusted by configuring bits CMPM [1:0] in CMP_CS register.
The CMP working speed is fastest with highest power consumption when
CMPM = 2’b00,
while working speed is slowest with lowest power consumption when CMP
M = 2’b11.