Device-Level Timers
MSC8144E Reference Manual, Rev. 3
Freescale Semiconductor
21-5
21.1.4 Timer Operating Modes
The timer operates in two modes:
Count the CLASS64 clock or external events via the timer input using the primary clock.
Count the CLASS64 clock or external events via the timer input using the primary clock
while a second input signal, the secondary clock, is asserted, thus timing the width of the
secondary clock signal.
Each timer can be configured in the following ways:
to count the rising, falling, or both edges of the selected input pin.
to decode and count quadrature encoded input signals.
to count up and down using dual inputs in a count with direction format.
program the timer terminal count value (modulo).
program the value loaded into the timer after it reaches its terminal count.
program the timer to count repeatedly or to stop after completing one count cycle.
program the timer to count to a programmed value (using the compare functionality)
and then immediately reinitialize or to count through the compare value until the count
rolls over to zero.
The counting modes define the different modes for clocking the timers. The count mode is
selected in the TMRxCTL[CM] field (page 21-17). If a timer is programmed to count to a
specific value and then stop, the TMRCTL[CM] bit is cleared when the count terminates.
Table 21-3 summarizes the counting modes.
Table 21-3. Summary of Timer Counting Modes
Counting Mode
CM Bits
Description
Primary Clock
Secondary
Clock
Disabled
000
Timer not active.
—
—
Count
001
Counts the rising edges of the selected clock source
(falling edges if TxSCTL[IPS] is set).
This mode is useful for generating periodic interrupts
for timing purposes or for counting external events.
Clock* —
Dual-Edge Count
010
Counts both edges of a timer Input signal.
This mode is useful for counting the changes in the
external environment. When this mode is selected,
TMRxCTL[PCS] must not be set to any value between
1000 and 1111; that is, it must not set to the input
clock or any scaled version of the input clock.
Clock —
Содержание MSC8144E
Страница 1: ...MSC8144E Reference Manual Quad Core Media Signal Processor MSC8144ERM Rev 3 July 2009 ...
Страница 40: ...MSC8144E Reference Manual Rev 3 xl Freescale Semiconductor Contents 26 5 12 8 RNG Output FIFO 26 186 ...
Страница 48: ...MSC8144E Reference Manual Rev 3 xlviii Freescale Semiconductor ...
Страница 86: ...MSC8144E Reference Manual Rev 3 1 38 Freescale Semiconductor Overview ...
Страница 167: ...OCE Event and JTAG Test Access Port Signals MSC8144E Reference Manual Rev 3 Freescale Semiconductor 3 59 ...
Страница 168: ...MSC8144E Reference Manual Rev 3 3 60 Freescale Semiconductor External Signals ...
Страница 242: ...MSC8144E Reference Manual Rev 3 5 26 Freescale Semiconductor Reset ...
Страница 314: ...MSC8144E Reference Manual Rev 3 8 24 Freescale Semiconductor General Configuration Registers ...
Страница 414: ...MSC8144E Reference Manual Rev 3 10 14 Freescale Semiconductor MSC8144E SC3400 DSP Subsystem ...
Страница 452: ...MSC8144E Reference Manual Rev 3 11 38 Freescale Semiconductor Internal Memory Subsystem ...
Страница 520: ...MSC8144E Reference Manual Rev 3 12 68 Freescale Semiconductor DDR SDRAM Memory Controller ...
Страница 884: ...MSC8144E Reference Manual Rev 3 17 44 Freescale Semiconductor RapidIO Interface Dedicated DMA Controller ...
Страница 1070: ...MSC8144E Reference Manual Rev 3 21 28 Freescale Semiconductor Timers ...