Rev. 1.71 76 April 11, 2017 Rev. 1.71 77 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
CCRA Int.
Flag
STMP0F
CCRP Int.
Flag
STMA0F
CCRA > 0
Counter cleared by CCRA 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
= 1; ST0M[1:0] = 00
ST0PAU
Resume
Stop
Time
CCRA = 0
ST0POL
Output Pin
Reset to initial value
Output inverts
when ST0POL is high
Output controlled
by other pin
-
shared function
Counter Value
Output does
not change
No STMA0F flag
generated on
CCRA overflow
CCRA = 0
Counter overflow
STMP0F not
generated
Compare Match Output Mode – ST0CCLR = 1
Note:1.WithST0CCLR=1aComparatorAmatchwillclearthecounter
2.TheTMoutputpincontrolledonlybytheSTMA0Fag
3.TheoutputpinresettoinitialstatebyaST0ONrisingedge
4.TheSTMP0FagisnotgeneratedwhenST0CCLR=1