Rev. 1.10
68
November 04, 2019
Rev. 1.10
69
November 04, 2019
HT45F5Q-3
Battery Charger Flash MCU
HT45F5Q-3
Battery Charger Flash MCU
flag, generated from a compare match occurs from Comparator P, will have no effect on the CTM
output pin. The way in which the CTM output pin changes state are determined by the condition of
the CTIO1 and CTIO0 bits in the CTMC1 register. The CTM output pin can be selected using the
CTIO1 and CTIO0 bits to go high, to go low or to toggle from its present condition when a compare
match occurs from Comparator A. The initial condition of the CTM output pin, which is setup after
the CTON bit changes from low to high, is setup using the CTOC bit. Note that if the CTIO1 and
CTIO0 bits are zero then no pin change will take place.
Counter Value
0x3FF
CCRP
CCRA
CTON
CTPAU
CTPOL
CCRP Int.
Flag CTMPF
CCRA Int.
Flag CTMAF
CTM O/P Pin
Time
CCRP=0
CCRP > 0
Counter overflow
CCRP > 0
Counter cleared by CCRP value
Pause
Resume
Stop
Counter
Restart
CTCCLR = 0; CTM [1:0] = 00
Output pin set to
initial Level Low if
CTOC=0
Output Toggle with
CTMAF flag
Note CTIO [1:0] = 10 Active
High Output select
Here CTIO [1:0] = 11
Toggle Output select
Output not affected by CTMAF
flag. Remains High until reset
by CTON bit
Output Pin
Reset to Initial value
Output controlled by other
pin-shared function
Output Inverts
when CTPOL is high
Compare Match Output Mode – CTCCLR=
0
Note: 1. With CTCCLR=0 a Comparator P match will clear the counter
2. The CTM output pin is controlled only by the CTMAF flag
3. The output pin is reset to its initial state by a CTON bit rising edge