38
MOTOROLA
TS bit in TCSR is set and, if the TIE is set, an interrupt is generated.The counter is reload-
ed with the value contained by the TCR and the entire process is repeated until the timer
is disabled (TE=0). Each time the counter reaches 0, the TIO output pin will be toggled.
The INV bit determines the polarity of the TIO output. Figure 13 illustrates Timer Mode 2.
6.4.4
Timer Mode 4 (Pulse Width Measurement Mode)
Timer Mode 4 is defined by TC2-TC0 equal to 100.
In this mode, TIO acts as a gating signal for the DSP’s internal clock. With the timer en-
abled (TE=1), the counter is driven by a clock derived from the DSP’s internal clock
divided by two (CLK/2). The counter is loaded with 0 by the first transition occurring on the
TIO input pin and starts incrementing. When the first edge of opposite polarity occurs on
TIO, the counter stops, the TS bit in TCSR is set and, if TIE is set, an interrupt is gener-
ated. The contents of the counter is loaded into the TCR. The user’s program can read
the TCR, which now represents the widths of the TIO pulse. The process is repeated until
the timer is disabled (TE=0).The INV bit determines whether the counting is enabled when
TIO is high (INV=0) or when TIO is low (INV=1). Figure 14 illustrates Timer Mode 4 when
INV=0 and Figure 15 illustrates Timer Mode 4 with INV=1.
TE
TCR
last event
N
Counter
N
0
N
Interrupt
first event
last event
N-1
TIO
new event
N-1
0
Clock
Figure 13 - Standard Timer Mode, Internal Clock, Output Toggle Enable
(CLK/2)
Summary of Contents for DSP96002
Page 3: ...1 2 DSP96002 USER S MANUAL MOTOROLA ...
Page 38: ...MOTOROLA DSP96002 USER S MANUAL 3 15 Figure 3 4 Modulo Arithmetic Unit Block Diagram ...
Page 39: ...3 16 DSP96002 USER S MANUAL MOTOROLA ...
Page 53: ...4 14 DSP96002 USER S MANUAL MOTOROLA ...
Page 76: ...MOTOROLA DSP96002 USER S MANUAL 5 23 Figure 5 8 Address Modifier Summary ...
Page 86: ...6 10 DSP96002 USER S MANUAL MOTOROLA ...
Page 101: ...MOTOROLA DSP96002 USER S MANUAL 7 15 Figure 7 9 HI Block Diagram One Port ...
Page 140: ...7 54 DSP96002 USER S MANUAL MOTOROLA ...
Page 166: ...9 10 DSP96002 USER S MANUAL MOTOROLA ...
Page 181: ...MOTOROLA DSP96002 USER S MANUAL 10 15 Figure 10 8 Program Address Bus FIFO ...
Page 337: ...MOTOROLA DSP96002 USER S MANUAL A 149 ...
Page 404: ...A 216 DSP96002 USER S MANUAL MOTOROLA PC xxxx D ...
Page 460: ...A 272 DSP96002 USER S MANUAL MOTOROLA SIOP Not affected ...
Page 484: ...A 296 DSP96002 USER S MANUAL MOTOROLA SSH PC SSL SR SP 1 SP ...
Page 519: ...MOTOROLA DSP96002 USER S MANUAL A 331 ...
Page 718: ...MOTOROLA DSP96002 USER S MANUAL B 199 ...
Page 871: ... MOTOROLA INC 1994 MOTOROLA TECHNICAL DATA SEMICONDUCTOR M Addendum ...
Page 888: ...MOTOROLA INDEX 1 INDEX ...
Page 889: ......