18-6
MPC860 PowerQUICC UserÕs Manual
MOTOROLA
Part V. The Communications Processor Module
18.2.2.1 Timer Clock Source
The clock input to the prescaler can be selected from three sources:
¥
The general system clock
¥
The general system clock divided by 16
¥
An external source on the corresponding TINx pin
The general system clock (GCLK2) is generated in the clock synthesizer. To save power,
the general system clock can be divided before it leaves the clock synthesizer (slow-go
mode). Regardless of the resulting general system clock frequency, either that frequency or
that frequency divided by 16 can be chosen as the input to the prescaler of each timer. Also,
an external clock source can be supplied on the TINx signal. If two 16-bit timers are
cascaded internally into a 32-bit timer, one timer uses the clock generated by the output of
another timer.
The clock input source is selected by TMRx[ICLK]. The prescaler is programmed in
TMRx[PS] and divides the clock input by values between 1 and 256; the prescaler output
is used as an input to the 16-bit counter. The best resolution of the timer is one clock cycle
(40 ns at 25 MHz). The maximum period is 268,435,456 cycles, which is 10.7 seconds at
25 MHz.
18.2.2.2 Timer Reference Count
TMRx[FRR] (the free-run/restart bit) can be conÞgured so that when a reference is reached
the count either continues or begins again. When the reference value is reached, the
corresponding TERx event bit is set and an interrupt is issued if TMRx[ORI] = 1. Also when
the reference value is reached, timers can output a signal on their timer output pins
(TOUT[1Ð4]). The output signal can be programmed to be an active-low pulse or a toggle
of the current output as selected by TMRx[OM] (the output mode bit).
18.2.2.3 Timer Capture
Each timerÕs 16-bit capture register, TCRx, is used to latch the value of the counter when a
deÞned transition of TINx is sensed by the corresponding input capture edge detector. The
type of transition triggering the capture is selected by TMRx[CE]. When a capture or
reference event occurs, the corresponding TERx event bit is set and a maskable interrupt
request is issued to the CPIC.
18.2.2.4 Timer Gating
Timers can be gated or restarted by one of two external gate signalsÑTGATE1 for timer 1
and/or 2, TGATE2 for timer 3 and/or 4. Normal gate mode enables the count on a falling
edge of TGATEx and disables the count on the rising edge of TGATEx. This allows the
timer to count conditionally, depending on the state of TGATEx.
Содержание MPC860 PowerQUICC
Страница 3: ...MPC860UM AD 07 98 REV 1 MPC860 PowerQUICC ª UserÕs Manual ...
Страница 36: ...xxxvi MPC860 PowerQUICC UserÕs Manual MOTOROLA CONTENTS Paragraph Number Title Page Number ...
Страница 78: ...I iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 88: ...1 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 114: ...3 16 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 226: ...8 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Страница 262: ...9 36 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Страница 274: ...III iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Страница 320: ...12 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Страница 325: ...MOTOROLA Part IV Hardware Interface IV v Part IV Hardware Interface ...
Страница 326: ...IV vi MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 352: ...13 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 394: ...14 42 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 426: ...15 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 530: ...17 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 632: ...21 44 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 660: ...22 28 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 708: ...24 24 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 748: ...27 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 846: ...31 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 914: ...35 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 948: ...36 34 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 998: ...37 48 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part VI Debug and Test ...
Страница 1016: ...A 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1024: ...B 8 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1030: ...C 6 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1086: ...Glossary 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA ...
Страница 1106: ......