English
Language : 

HT66F302 Datasheet, PDF (74/129 Pages) Holtek Semiconductor Inc – Cost-Effective Flash MCU with EEPROM
HT66F302/HT66F303
Cost-Effective Flash MCU with EEPROM
Single Pulse Mode
To select this mode, bits STM1 and STM0 in the STMC1 register should be set to 10 respectively
and also the STIO1 and STIO0 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 STON bit, which can
be implemented using the application program. However in the Single Pulse Mode, the STON bit
can also be made to automatically change from low to high using the external STCK pin, which will
in turn initiate the Single Pulse output. When the STON bit transitions to a high level, the counter
will start running and the pulse leading edge will be generated. The STON bit should remain high
when the pulse is in its active state. The generated pulse trailing edge will be generated when the
STON 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“STON”
or
STCK Pin
Transition
Leading Edge
STON bit
01
Trailing Edge
STON bit
10
S/W Command
CLRo“r STON”
CCRA Compare
Match
STP/STPB Output Pin
Pulse Width = CCRA Value
Single Pulse Generation
Rev. 1.11
74
April 11, 2017