English
Language : 

MC68HC08AS32 Datasheet, PDF (227/280 Pages) Motorola, Inc – M68HC08 Family of 8-bit microcontroller units (MCUs)
Data Sheet — MC68HC08AS32
Section 15. Timer Interface (TIM)
15.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 15-2 is a block diagram of the TIM.
15.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
15.3 Functional Description
Figure 15-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.
MC68HC08AS32 — Rev. 4.1
Freescale Semiconductor
Data Sheet
227