English
Language : 

MC68HC908RK2 Datasheet, PDF (197/232 Pages) Motorola, Inc – Microcontroller Unit
Timer Interface Module (TIM)
Functional Description
15.5 Functional Description
Figure 15-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 and 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 are programmable independently as input
capture or output compare channels.
Refer to Figure 15-2 for a summary of the TIM I/O registers.
PTB3/TCLK
INTERNAL
BUS CLOCK
TSTOP
TRST
PRESCALER
16-BIT COUNTER
16-BIT COMPARATOR
TMODH:TMODL
PRESCALER SELECT
PS2
PS1
PS0
CHANNEL 0
16-BIT COMPARATOR
TCH0H:TCH0L
16-BIT LATCH
CHANNEL 1
16-BIT COMPARATOR
TCH1H:TCH1L
16-BIT LATCH
ELS0B ELS0A
CH0F
MS0A
MS0B
ELS1B ELS1A
MS1A
CH1F
TOF
TOIE
TOV0
CH0MAX
CH0IE
TOV1
CH1MAX
CH1IE
Figure 15-1. TIM Block Diagram
MC68HC908RK2 — Rev. 4.0
MOTOROLA
Timer Interface Module (TIM)
INTER-
RUPT
LOGIC
PORT
LOGIC
INTER-
RUPT
LOGIC
PTB2/TCH0
PORT
LOGIC
INTER-
RUPT
LOGIC
PTB4/TCH1
Advance Information
197