English
Language : 

MC68HC908JW32_09 Datasheet, PDF (108/232 Pages) Freescale Semiconductor, Inc – M68HC08 Microcontrollers
Timer Interface Module (TIM)
8.4 Functional Description
Figure 8-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 TIM channel (per timer) is programmable independently as input capture or output compare channel.
If a channel is configured as input capture, then an internal pullup device may be enabled for that channel.
(See Chapter 13 Input/Output (I/O) Ports.)
TCLK1
INTERNAL
BUS CLOCK
TSTOP
TRST
PRESCALER
PRESCALER SELECT
PS2
PS1
PS0
16-BIT COUNTER
16-BIT COMPARATOR
TMODH:TMODL
CHANNEL 0
16-BIT COMPARATOR
TCH0H:TCH0L
16-BIT LATCH
CHANNEL 1
16-BIT COMPARATOR
TCH1H:TCH1L
16-BIT LATCH
ELS0B ELS0A
CH0F
MS0A
ELS0B ELS0A
MS0B
MS0A
CH1F
TOF
INTERRUPT
TOIE
LOGIC
TOV0
CH0MAX
CH0IE
TOV1
CH1MAX
CH01IE
CH1IE
PORT
LOGIC
INTERRUPT
LOGIC
PORT
LOGIC
INTERRUPT
LOGIC
Figure 8-1. TIM Block Diagram
Figure 8-2 summarizes the timer registers.
NOTE
References to timer 1 may be made in the following text by omitting the
timer number. For example, TSC may generically refer to both T1SC.
T1CH0
T1CH1
MC68HC908JW32 Data Sheet, Rev. 6
108
Freescale Semiconductor