TIMER/EVENT COUNTER MODES OF OPERATION
MOTOROLA
DSP56002 TIMER AND EVENT COUNTER
7 - 9
value contained by the TCR. The entire process is repeated until the timer is disabled
(TE=0). Figure 7-5 illustrates Timer Mode 1 when INV=0, and Figure 7-6 illustrates Timer
Mode 1 when INV=1.
7.5.3 Timer Mode 2 (Standard Timer Mode, Internal Clock, Output Toggle Enabled)
Timer Mode 2 is defined by TC2-TC0 equal to 010.
With the timer enabled (TE=1), the counter is loaded with the value contained by the TCR. The
counter is decremented by a clock derived from the DSP’s internal clock, divided by two (CLK/2).
TE
TCR
Preload (N)
N
Counter
N-k
N-k-1
N
TS
First Event
N-k-1
Stop Counting
N-1
Clock (CLK/2)
Interrupt
Figure 7-4 Timer/Event Counter Disable
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
.
..