MC68HC711PH8 Motorola, MC68HC711PH8 Datasheet - Page 169

no-image

MC68HC711PH8

Manufacturer Part Number
MC68HC711PH8
Description
High-density Complementary Metal Oxide Semiconductor (HCMOS) Microcomputer Unit
Manufacturer
Motorola
Datasheet
8.3
The MC68HC11PH8 has three 8-bit modulus timers: A, B and C. These timers can generate a
wide range of low-frequency, periodic interrupts. In addition, timer A may be used as a clock
source for the LCD segments, the COP watchdog system and the real time interrupt (RTI), in
applications using PLL clock generation.
Each modulus timer consists of an 8-bit down-counter, an 8-bit modulus register and a load
mechanism. Only the 8-bit modulus register may be written to in software. Each timer is configured
by an associated control register that enables and flags interrupts, and selects the clock source
for the down-counter. Figure 8-7 provides a block diagram of the modulus timers.
8.3.1
The down-counter in each timer contains a value which is decremented at a preselected clock
rate. When this counter value reaches $00 (‘underflow’), an output pulse is generated and, if
enabled, a hardware interrupt is requested. At this point, a new value is loaded into the
down-counter from the modulus register; at the next clock, the counter will contain this value minus
one.
Note:
The frequency that is output from the timer is equal to the clock frequency divided by the value in
the 8-bit modulus register; a modulus register value of n generates a modulus timer underflow
every n input clocks. Therefore, the modulus timer can divide an input frequency by any value from
2 to 255. In addition, the timer A clock output is further divided by two to give the CLK64 signal.
There are several software-selectable input clocks for the modulus timers (see Section 8.3.2 and
Figure 8-7). For example, the modulus timer A clock source can be EXTALi, EXTALi/4 or EXTALi/8.
Consequently, CLK64 can vary in frequency from EXTALi/4 (EXTALi
(EXTALi/8
from various EXTALi values, using timer A.
MC68HC11PH8
For all three timers, modulus register values of $00 or $01 should be avoided.
Because modulus timer A is used to clock the COP monitor and cannot be stopped, the
loading mechanism on modulus timer A is inhibited for values of $00 or $01; at
underflow, the counter will roll over from $00 to $FF and continue decrementing.
255
8-bit modulus timers
Modulus timer operation
2). The following table provides an example of how to obtain a 64Hz frequency
32.768kHz
38.4kHz
EXTALi
32kHz
Input clock
EXTALi/4
EXTALi/4
EXTALi
TIMING SYSTEM
Modulus timer A
Modulus register
$FA
$40
$46
Output
64Hz
64Hz
64Hz
2
2) to EXTALi/4080
MOTOROLA
TPG
8-35
8

Related parts for MC68HC711PH8