Typewriter User Manual

8- 22 MC68340 USER’S MANUAL MOTOROLA
POT2–POT0—Prescaler Output Tap
If PCLK is set, these bits encode which of the prescaler's output taps act as the counter
clock. A division of the selected clock is applied to the counter as listed in Table 8-4.
Table 8-4. POT Encoding
POT2 POT1 POT0
Division of
Selected Clock
0 0 1 Divide by 2
0 1 0 Divide by 4
0 1 1 Divide by 8
1 0 0 Divide by 16
1 0 1 Divide by 32
1 1 0 Divide by 64
1 1 1 Divide by 128
0 0 0 Divide by 256
MODE2–MODE0—Operation Mode
These bits select one of the eight modes of operation for the timer as listed in Table 8-5.
Refer to 8.3 Operating Modes for more information on the individual modes.
Table 8-5. MODEx Encoding
MODE2 MODE1 MODE0 OPERATION MODE
0 0 0 Input Capture/Output Compare
0 0 1 Square-Wave Generator
0 1 0 Variable Duty-Cycle Square-Wave Generator
0 1 1 Variable-Width Single-Shot Pulse Generator
1 0 0 Pulse-Width Measurement
1 0 1 Period Measurement
1 1 0 Event Count
1 1 1 Timer Bypass (Simple Test Mode)
OC1–OC0—Output Control
These bits select the conditions under which TOUTx changes (see Table 8-6). These
bits may have a different effect when in the input capture/output compare mode.
Caution should be used when modifying the OC bits near timer events.
Table 8-6. OCx Encoding
OC1 OC0 TOUTx MODE
0 0 Disabled
0 1 Toggle Mode
1 0 Zero Mode
1 1 One Mode
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...