English
Language : 

MC68HC908LJ24 Datasheet, PDF (195/464 Pages) Motorola, Inc – Microcontrollers
Freescale Semiconductor, Inc.
Timer Interface Module (TIM)
Pin Name Conventions
11.4 Pin Name Conventions
The text that follows describes both timers, TIM1 and TIM2. The TIM
input/output (I/O) pin names are T[1,2]CH0 (timer channel 0). T[1,2]CH1
(timer channel 1), and T[1,2]CLK (external timer clock), where “1” is
used to indicate TIM1 and “2” is used to indicate TIM2. The full names of
the TIM I/O pins are listed in Table 11-1. The generic pin names appear
in the text that follows.
Table 11-1. Pin Name Conventions
TIM Generic Pin Names:
Full TIM
Pin Names:
TIM1
TIM2
T[1,2]CH0
PTB2/T1CH0
PTB4/T2CH0
T[1,2]CH1
PTB3/T1CH1
PTB5/T2CH1
T[1,2]CLK
PTD4/KBI4/T1CLK
PTD5/KBI5/T2CLK
NOTE:
References to either timer 1 or timer 2 may be made in the following text
by omitting the timer number. For example, TCH0 may refer generically
to T1CH0 and T2CH0, and TCH1 may refer to T1CH1 and T2CH1.
The T1CLK and T2CLK pins are also shared with KBI4 and KBI5
respectively. To avoid erratic behavior, these two pins should never be
configured for use as TCLK and KBI inputs simultaneously.
11.5 Functional Description
Figure 11-1 shows the structure of the TIM. The central component of
the TIM is the 16-bit TIM counter that can operate as a free-running
counter or a modulo up-counter. The TIM counter provides the timing
reference for the input capture and output compare functions. The TIM
counter modulo registers, TMODH:TMODL, control the modulo value of
the TIM counter. Software can read the TIM counter value at any time
without affecting the counting sequence.
The two TIM channels (per timer) are programmable independently as
input capture or output compare channels.
MC68HC908LJ24/LK24 — Rev. 2
MOTOROLA
Timer Interface Module (TIM)
For More Information On This Product,
Go to: www.freescale.com
Data Sheet
195