HT66F03/HT66F04/HT68F03/HT68F04
Timer Modules - TM
One of the most fundamental functions in any
microcontroller device is the ability to control and mea-
sure time. To implement time related functions each de-
vice includes several Timer Modules, abbreviated to the
name TM. The TMs are multi-purpose timing units and
serve to provide operations such as Timer/Counter, In-
put Capture, Compare Match Output and Single Pulse
Output as well as being the functional unit for the gener-
ation of PWM signals. Each of the TMs has either two or
three individual interrupts. The addition of input and out-
put pins for each TM ensures that users are provided
with timing units with a wide and flexible range of fea-
tures.
The common features of the different TM types are de-
scribed here with more detailed information provided in
the individual Compact, Standard and Enhanced TM
sections.
Introduction
The devices contain from two to four TMs depending
upon which device is selected with each TM having a
reference name of TM0, TM1 and TM2. Each individual
TM can be categorised as a certain type, namely Com-
pact Type TM, Standard Type TM or Enhanced Type
TM. Although similar in nature, the different TM types
vary in their feature complexity. The common features to
all of the Compact, Standard and Enhanced TMs will be
described in this section, the detailed operation regard-
ing each of the TM types will be described in separate
sections. The main features and differences between
the three types of TMs are summarised in the accompa-
nying table.
Function
Timer/Counter
I/P Capture
Compare Match Output
PWM Channels
Single Pulse Output
PWM Alignment
PWM Adjustment Period & Duty
CTM
STM
Ö
Ö
¾
Ö
Ö
Ö
1
1
¾
Edge
1
Edge
Duty or Period
Duty or Period
TM Function Summary
ETM
Ö
Ö
Ö
2
1
Edge & Centre
Duty or Period
Each device in the series contains a specific number of either Compact Type, Standard Type and Enhanced Type TM
units which are shown in the table together with their individual reference name, TM0~TM2.
Device
TM0
TM1
TM2
HT66F03/HT68F03/HT68F04
HT66F04
10-bit CTM
10-bit CTM
10-bit STM
10-bit STM
¾
10-bit ETM
TM Name/Type Reference
Rev. 1.00
52
April 16, 2010