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. With ST0CCLR = 1 a Comparator A match will clear the counter
2. The TM output pin controlled only by the STMA0F flag
3. The output pin reset to initial state by a ST0ON rising edge
4. The STMP0F flag is not generated when ST0CCLR = 1