
9-14
DSP56602 User’s Manual
MOTOROLA
Triple Timer Module
Timer Modes of Operation
9.5.1
Timer Modes
Timer modes allow using the timers to measure the duration of an event.
9.5.1.1
Mode 0—Timer, No Output (Internal Clock)
This mode is selected when TC[3:0] is set to 0000. In this mode, the counter is cleared
after the TE bit is set and loaded with the TLR value on the first timer pulse derived
either from the DSP clock divided by two (CLK/2) or from the prescaled clock input.
The following timer pulses increment the counter. When the counter matches the value
contained by the TCPR, the TCF bit in TCSR is set and, if the TCIE is set, a compare
interrupt is generated. At the next timer pulse, the counter is loaded with TLR value (if
TRM is set) and the count is resumed. If TRM is cleared, the counter continues to be
incremented on each timer pulse. If counter wraparound occurs, the TOF bit is set, and if
the TOIE is set, an overflow interrupt is generated. This process is repeated until the
timer is disabled (the TE bit is cleared). The counter contents can be read at any time by
reading the TCR.
9.5.1.2
Mode 1—Timer, Output Pulse (Internal Clock)
This mode is selected when TC[3:0] is set to 0001. In this mode, the counter is cleared
after the TE bit is set and loaded with the TLR value on the first timer pulse derived
either from the DSP clock divided by two (CLK/2) or from the prescaled clock input.
The following timer pulses increment the counter. When the counter matches the value
contained by the TCPR, the TCF bit in TCSR is set, and if the TCIE is set, a compare
interrupt is generated. At the next timer pulse, the counter is loaded with TLR value (if
TRM is set) and the count is resumed. If TRM is cleared, the counter continues to be
incremented on each timer pulse. This process is repeated until the timer is disabled
9
Watchdog Mode, Output Pulse Enable (Internal Clock)
Watchdog
1001
10
Watchdog Mode, Output Toggle Enable (Internal Clock)
Watchdog
1010
11
(Reserved)
(Reserved)
1011
12
(Reserved)
(Reserved)
1100
13
(Reserved)
(Reserved)
1101
14
(Reserved)
(Reserved)
1110
15
(Reserved)
(Reserved)
1111
Table 9-3
Timer Mode Summary (continued)
Mode
Mode Description
Mode Type
TC[3:0]
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..
ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005
ARCHIVED BY FREESCALE SEMICONDUCT
OR,
INC.
2005