Rev. 1.71
80
April 11, 2017
Rev. 1.71
81
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
CCRP
CCRA
ST0ON
ST0PAU
ST0POL
CCRP Int. Flag
STMP0F
CCRA Int. Flag
STMA0F
STM O/P Pin
(ST0OC=1)
Time
Counter stopped
by CCRA
Pause
Resume
Counter Stops
by software
Counter Reset when
ST0ON returns high
ST0M [1:0] = 10 ; ST0IO [1:0] = 11
Pulse Width
set by CCRA
Output Inverts
when ST0POL = 1
No CCRP Interrupts
generated
STM O/P Pin
(ST0OC=0)
STCK0 pin
Software
Trigger
Cleared by
CCRA match
STCK0 pin
Trigger
Auto. set by
STCK0 pin
Software
Trigger
Software
Clear
Software
Trigger
Software
Trigger
Single Pulse Mode
Note: 1. Counter stopped by CCRA match
2. CCRP is not used
3. The pulse is triggered by setting the S
T
0ON bit high
4. In the Single Pulse Mode,
ST
0IO [1:0] must be set to “11” and can not be changed.
However a compare match from Comparator A will also automatically clear the ST0ON bit and thus
generate the Single Pulse output trailing edge. In this way the CCRA value can be used to control the
pulse width. A compare match from Comparator A will also generate a STM interrupt. The counter
can only be reset back to zero when the ST0ON bit changes from low to high when the counter
restarts. In the Single Pulse Mode CCRP is not used. The ST0CCLR and ST0DPX bits are not used
in this Mode.