Справочник Пользователя для Motorola MC68HC908MR16
![Motorola](https://files.manualsbrain.com/attachments/83de88ba2280e7232128e8931d7cbd2a38dcc654/common/fit/150/50/0293f422c4d32e7e0f777d5e11bc33c83ea5627f71ddf155374c02a23d9a/brand_logo.png)
Advance Information
MC68HC908MR16/MC68HC908MR32 — Rev. 4.0
226
Timer Interface B (TIMB)
MOTOROLA
Timer Interface B (TIMB)
This section describes the timer interface module B (TIMB). The TIMB is
a 2-channel timer that provides:
a 2-channel timer that provides:
•
Timing reference with input capture
•
Output compare
•
Pulse-width modulation functions
is a block diagram of the TIMB.
NOTE:
The TIMB module is not available in the 56-pin shrink dual in-line
package (SDIP).
package (SDIP).
12.3 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
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
12.4 Functional Description
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.
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.