Chapter 17 timer interface b (timb), 1 introduction, 2 features – Freescale Semiconductor MC68HC908MR32 User Manual

Page 235: 3 functional description, Chapter 17, Timer interface b (timb), Introduction, Features, Functional description

Advertising
background image

MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1

Freescale Semiconductor

235

Chapter 17
Timer Interface B (TIMB)

17.1 Introduction

This section describes the timer interface module B (TIMB). The TIMB is a 2-channel timer that provides:

Timing reference with input capture

Output compare

Pulse-width modulation functions

Figure 17-2

is a block diagram of the TIMB.

NOTE

The TIMB module is not available in the 56-pin shrink dual in-line package
(SDIP).

17.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-count operation

Toggle any channel pin on overflow

TIMB counter stop and reset bits

17.3 Functional Description

Figure 17-2

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.

NOTE

The TIMB module is not available in the 56-pin SDIP.

Advertising
This manual is related to the following products: