Rev. 1.71
88
April 11, 2017
Rev. 1.71
89
April 11, 2017
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
Counter Value
0x3FF
CCRP
CCRA
PTnON
PTnPAU
PTnPOL
CCRP Int. Flag
PTMPnF
CCRA Int. Flag
PTMAnF
PTM O/P
Pin
Time
CCRP=0
CCRP > 0
Counter overflow
CCRP > 0
Counter cleared by CCRP value
Pause
Resume
Stop
Counter
Restart
PTnCCLR = 0; PTnM [1:0] = 00
Output pin set to
initial Level Low
if PTnOC=0
Output Toggle with
PTMAnF flag
Note PTnIO [1:0] = 10
Active High Output select
Here PTnIO [1:0] = 11
Toggle Output select
Output not affected by
PTMAnF flag. Remains High
until reset by PTnON bit
Output Pin
Reset to Initial value
Output controlled by
other pin-shared function
Output Inverts
when PTnPOL is high
Compare Match Output Mode – PTnCCLR = 0 (n=0 or 1)
Note: 1. With
PTn
CCLR = 0 – a Comparator P match will clear the counter
2. The TM output pin is controlled only by the
PTM
A
n
F flag
3. The output pin is reset to initial state by a
PTn
ON bit rising edge