English
Language : 

MC68HC908LB8_05 Datasheet, PDF (188/234 Pages) Freescale Semiconductor, Inc – M68HC08 Microcontrollers
Timer Interface Module (TIM)
18.2 Features
Features of the TIM include:
• One input capture/output compare channels:
– Rising-edge, falling-edge, or any-edge input capture trigger
– Set, clear, or toggle output compare action
• Buffered and unbuffered pulse-width-modulation (PWM) signal generation
• Programmable TIM clock input with 7-frequency internal bus clock prescaler selection
• Free-running or modulo up-count operation
• Toggle any channel pin on overflow
• TIM counter stop and reset bits
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
TOF
TOIE
ELS0B ELS0A
TOV0
CH0MAX
CH0F
MS0A
ELS1B ELS1A
MS0B
CH0IE
TOV1
CH1MAX
CH1F
MS1A
CH1IE
Figure 18-2. TIM Block Diagram
INTERRUPT
LOGIC
PORT
LOGIC
TCH0
INTERRUPT
LOGIC
PORT
LOGIC
INTERRUPT
LOGIC
TCH1
(Not available
on port pin)
18.3 Functional Description
Figure 18-2 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,
MC68HC908LB8 Data Sheet, Rev. 1
188
Freescale Semiconductor