Single Pulse �Utput Mode - Holtek TinyPower HT69F40A Manual

Tinypower i/o flash 8-bit mcu with lcd & eeprom
Table of Contents

Advertisement

HT69F30A/HT69F40A/HT69F50A
TinyPower
I/O Flash 8-Bit MCU with LCD & EEPROM
TM
Single Pulse Output Mode
To select this mode, the required bit pairs, TnAM1, TnAM0 and TnBM1, TnBM0 should be set to
10 respectively and also the corresponding TnAIO1, TnAIO0 and TnBIO1, TnBIO0 bits should be
set to 11 respectively. The Single Pulse Output Mode, as the name suggests, will generate a single
shot pulse on the TM output pin.
The trigger for the pulse TPnA output leading edge is a low to high transition of the TnON bit, which
can be implemented using the application program. The trigger for the pulse TPnB_x output leading
edge is a compare match from Comparator B, which can be implemented using the application
program. However in the Single Pulse Mode, the TnON bit can also be made to automatically
change from low to high using the external TCKn pin, which will in turn initiate the Single Pulse
output of TPnA. When the TnON bit transitions to a high level, the counter will start running and
the pulse leading edge of TPnA will be generated. The TnON bit should remain high when the pulse
is in its active state. The generated pulse trailing edge of TPnA and TPnB_x will be generated when
the TnON bit is cleared to zero, which can be implemented using the application program or when a
compare match occurs from Comparator A.
However a compare match from Comparator A will also automatically clear the TnON bit and thus
generate the Single Pulse output trailing edge of TPnA and TPnB_x. In this way the CCRA value
can be used to control the pulse width of TPnA. The (CCRA-CCRB) value can be used to control
the pulse width of TPnB_x. A compare match from Comparator A and Comparator B will also
generate TM interrupts. The counter can only be reset back to zero when the TnON bit changes from
low to high when the counter restarts. In the Single Pulse Mode CCRP is not used. The TnCCLR bit
is also not used.
S/W Command
SET"Tn�N"
TPnA �utput Pin
TPnB �utput Pin
CCRB Compa�e
Rev. 1.20
Counte� Value
CCRA
CCRB
0
CCRA
Leading Edge
Tn�N �it
o�
0 → 1
TCKn Pin
T�ansition
Tn�N = 1
Mat�h
CCRB
Leading Edge
Single Pulse Generation
1�3
Time
CCRA
T�ailing Edge
S/W Command
CLR"Tn�N"
Tn�N �it
o�
1 → 0
CCRA Compa�e
Mat�h
Pulse Width = CCRA Value
Pulse Width = (CCRA-CCRB) Value
S/W Command
CLR"Tn�N"
Tn�N �it
o�
1 → 0
CCRA Compa�e
Mat�h
CCRB
T�ailing Edge
��to�e� 0�� 201�

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TinyPower HT69F40A and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Tinypower ht69f50aTinypower ht69f30a

Table of Contents