English
Language : 

MC68HC908GR8A_07 Datasheet, PDF (199/260 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 17
Timer Interface Module (TIM1 and TIM2)
17.1 Introduction
This section describes the timer interface (TIM) module. The timer on this part consists of a 2-channel
and a 1-channel timer that provides a timing reference with input capture, output compare, and
pulse-width-modulation functions. Figure 17-1 is a block diagram of the TIM.
This particular MCU has two timer interface modules which are denoted as TIM1 and TIM2.
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
ELS1B ELS1A
MS0B
MS1A
CH1F
TOF
TOIE
TOV0
CH0MAX
CH0IE
TOV1
CH1MAX
CH1IE
Figure 17-1. TIM Block Diagram
INTERRUPT
LOGIC
PORT
LOGIC
INTERRUPT
LOGIC
PORT
LOGIC
INTERRUPT
LOGIC
T[1,2]CH0
T1CH1
MC68HC908GR8A • MC68HC908GR4A Data Sheet, Rev. 5
Freescale Semiconductor
199