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. With
ST
0CCLR = 0
a
Comparator P match will clear the counter
2. The TM output pin controlled only by the S
TM
A0F flag
3. The output pin reset to initial state by a S
T
0ON bit rising edge