
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
Single Pulse Mode
To select this mode, bits ST0M1 and ST0M0 in the STM0C1 register should be set to 10
respectively and also the ST0IO1 and ST0IO0 bits should be set to 11 respectively. The Single Pulse
Output Mode, as the name suggests, will generate a single shot pulse on the STM output pin.
The trigger for the pulse output leading edge is a low to high transition of the ST0ON bit, which
can be implemented using the application program. However in the Single Pulse Mode, the ST0ON
bit can also be made to automatically change from low to high using the external STCK0 pin,
which will in turn initiate the Single Pulse output. When the ST0ON bit transitions to a high level,
the counter will start running and the pulse leading edge will be generated. The ST0ON bit should
remain high when the pulse is in its active state. The generated pulse trailing edge will be generated
when the ST0ON bit is cleared to zero, which can be implemented using the application program or
when a compare match occurs from Comparator A.
S/W Command
SET
“
ST0ON
”
or
STCK0 Pin
Transition
Trailing Edge
S/W Command
CLR
“
ST0ON
”
or
CCRA Compare
Match
STP0/STP0B Output Pin
Pulse Width = CCRA Value
Leading Edge
ST0ON bit
0
→
1
ST0ON bit
1
→
0
Single Pulse Generation