English
Language : 

MC68HC08GZ32 Datasheet, PDF (241/320 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 18
Timer Interface Module (TIM1)
18.1 Introduction
This section describes the timer interface module (TIM1). TIM1 is a two-channel timer that provides a
timing reference with input capture, output compare, and pulse-width-modulation functions. Figure 18-2
is a block diagram of the TIM1.
18.2 Features
Features of the TIM1 include the following:
• Two 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 TIM1 clock input with 7-frequency internal bus clock prescaler selection
• Free-running or modulo up-count operation
• Toggle any channel pin on overflow
• TIM1 counter stop and reset bits
18.3 Pin Name Conventions
The TIM1 shares two input/output (I/O) pins with two port D I/O pins. The full names of the TIM1 I/O pins
are listed in Table 18-1. The generic pin name appear in the text that follows.
Table 18-1. Pin Name Conventions
TIM1 Generic Pin Names:
Full TIM1 Pin Names:
TCH0
PTD4/T1CH0
TCH1
PTD5/T1CH1
18.4 Functional Description
Figure 18-2 shows the structure of the TIM1. The central component of the TIM1 is the 16-bit TIM1
counter that can operate as a free-running counter or a modulo up-counter. The TIM1 counter provides
the timing reference for the input capture and output compare functions. The TIM1 counter modulo
registers, T1MODH:T1MODL, control the modulo value of the TIM1 counter. Software can read the TIM1
counter value at any time without affecting the counting sequence.
The two TIM1 channels are programmable independently as input capture or output compare channels.
MC68HC08GZ32 Data Sheet, Rev. 3
Freescale Semiconductor
241