Rev. 1.71 74 April 11, 2017 Rev. 1.71 75 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
CCRA
CCRP
0x3FF
Counter
overflow
CCRA Int.
Flag
STMA0F
CCRP Int.
Flag
STMP0F
CCRP > 0
Counter cleared by CCRP value
STM O/P Pin
ST0ON
Pause
Counter
Reset
Output Pin set
to Initial Level
Low if ST0OC
= 0
Output Toggle
with STMA0F flag
Here ST0IO[1:0] = 11
Toggle Output Select
Now ST0IO[1:0] = 10
Active High Output
Select
Output not affected by
STMA0F flag. Remains High
until reset by ST0ON bit
ST0CCLR
= 0; ST0M[1:0] = 00
ST0PAU
Resume
Stop
Time
CCRP > 0
CCRP = 0
ST0POL
Output Pin
Reset to initial value
Output inverts
when ST0POL is high
Output controlled
by other pin - shared function
Counter Value
Compare Match Output Mode – ST0CCLR = 0
Note:1.WithST0CCLR=0aComparatorPmatchwillclearthecounter
2.TheTMoutputpincontrolledonlybytheSTMA0Fag
3.TheoutputpinresettoinitialstatebyaST0ONbitrisingedge