English
Language : 

MC68HC08AS32A Datasheet, PDF (239/296 Pages) Motorola, Inc – Microcontrollers
Freescale Semiconductor, Inc.
Data Sheet — MC68HC08AS32A
Section 16. Timer Interface (TIM)
16.1 Introduction
This section describes the timer interface module (TIM6). The TIM is a 6-channel
timer that provides a timing reference with input capture, output compare, and
pulse-width-modulation functions. Figure 16-2 is a block diagram of the TIM.
16.2 Features
Features of the TIM include:
• Six 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
– 7-frequency internal bus clock prescaler selection
– External TIM clock input (4-MHz maximum frequency)
• Free-running or modulo up-count operation
• Toggle any channel pin on overflow
• TIM counter stop and reset bits
16.3 Functional Description
Figure 16-2 shows the TIM structure. 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 six TIM channels are programmable independently as input capture or output
compare channels.
MC68HC08AS32A — Rev. 1
MOTOROLA
Timer Interface (TIM)
For More Information On This Product,
Go to: www.freescale.com
Data Sheet
239