Tm Clo�K Sou; Tm Inte; Tm Exte�Nal Pins - Holtek TinyPower HT69F40A Manual

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

Advertisement

TinyPower
TM Clock Source
The clock source which drives the main counter in each TM can originate from various sources. The
selection of the required clock source is implemented using the TnCK2~TnCK0 bits in the TMn
control registers. The clock source can be a ratio of either the system clock f
clock f
, the f
clock source or the external TCKn pin. Note that setting these bits to the value 101
H
SUB
will select a reserved clock input, in effect disconnecting the TM clock source. The TCKn pin clock
source is used to allow an external signal to drive the TM as an external clock source or for event
counting.
TM Interrupts
The Compact and Standard type TMs each have two internal interrupts, one for each of the internal
comparator A or comparator P, which generate a TM interrupt when a compare match condition
occurs. As the Enhanced type TM has three internal comparators and comparator A or comparator
B or comparator P compare match functions, it consequently has three internal interrupts. When a
TM interrupt is generated it can be used to clear the counter and also to change the state of the TM
output pin.
TM External Pins
Each of the TMs, irrespective of what type, has one TM input pin, with the label TCKn. The TM
input pin, is essentially a clock source for the TM and is selected using the TnCK2~TnCK0 bits in
the TMnC0 register. This external TM input pin allows an external clock source to drive the internal
TM. This external TM input pin is shared with other functions but will be connected to the internal
TM if selected using the TnCK2~TnCK0 bits. The TM input pin can be chosen to have either a
rising or falling active edge.
The TMs each have one or more output pins with the label TPn. When the TM is in the Compare
Match Output Mode, these pins can be controlled by the TM to switch to a high or low level or to
toggle when a compare match situation occurs. The external TPn output pin is also the pin where
the TM generates the PWM output waveform. As the TM output pins are pin-shared with other
function, the TM output function must first be setup using registers. A single bit in one of the
registers determines if its associated pin is to be used as an external TM output pin or if it is to have
another function. The number of output pins for each TM type and device is different, the details are
provided in the accompanying table.
All TM output pin names have a "_n" suffix. Pin names that include a "_1" or "_2" suffix indicate
that they are from a TM with multiple output pins. This allows the TM to generate a complimentary
output pair, selected using the I/O register data bits.
Device
HT69F30A
TP0_0�TP0_1
HT69F40A
TP0_0�TP0_1
HT69F�0A
TP0_0�TP0_1
Rev. 1.20
HT69F30A/HT69F40A/HT69F50A
I/O Flash 8-Bit MCU with LCD & EEPROM
TM
CTM
STM
TP1_0�TP1_1
TP1A�
TP2_0�TP2_1
TP1B_0� TP1B_1� TP1B_2
TP1A�
TP2_0�TP2_1
TP1B_0� TP1B_1� TP1B_2
TM Output Pins
94
or the internal high
SYS
ETM
Registers
PAFS
PAFS� PBFS� PDFS
PAFS� PBFS� PDFS
��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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Tinypower ht69f50aTinypower ht69f30a

Table of Contents