Rev. 1.71
90
April 11, 2017
Rev. 1.71
91
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
CCRA=0
CCRA = 0
Counter overflow
CCRA > 0 Counter cleared by CCRA value
Pause
Resume
Stop
Counter Restart
PTnCCLR = 1; 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
TnAF 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
PTMPnF not
generated
No PTMAnF
flag generated
on CCRA
overflow
Output does
not change
Compare Match Output Mode – PTnCCLR = 1 (n=0 or 1)
Note: 1. With
PTn
CCLR = 1 – a Comparator A match will clear the counter
2. The TM output pin is controlled only by the P
TM
A
n
F flag
3. The output pin is reset to initial state by a
PTn
ON rising edge
4. The
PTMPn
F flag is not generated when
PTn
CCLR = 1