English
Language : 

MC68HC908AT32 Datasheet, PDF (203/378 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 19
Timer Interface (TIMB)
NOTE
This timer is for the MC68HC08AZ32 emulator protocol only.
19.1 Introduction
This section describes the timer interface module (TIMB). The TIMB is a 2-channel timer that provides a
timing reference with input capture, output compare, and pulse-width modulation functions. Figure 19-1
is a block diagram of the TIMB.
19.2 Features
Features of the TIMB include:
• 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 TIMB clock input:
– 7-frequency internal bus clock prescaler selection
– External TIMB clock input (4-MHz maximum frequency)
• Free-running or modulo up-counter operation
• Toggle any channel pin on overflow
• TIMB counter stop and reset bits
19.3 Functional Description
Figure 19-1 shows the TIMB structure. The central component of the TIMB is the 16-bit TIMB counter that
can operate as a free-running counter or a modulo up-counter. The TIMB counter provides the timing
reference for the input capture and output compare functions. The TIMB counter modulo registers,
TBMODH–TBMODL, control the modulo value of the TIMB counter. Software can read the TIMB counter
value at any time without affecting the counting sequence.
The two TIMB channels are programmable independently as input capture or output compare channels.
MC68HC908AT32 Data Sheet, Rev. 3.1
Freescale Semiconductor
203