Pulse Width Measurement Mode, Trm = 1; Pulse Width Measurement Mode, Trm = 0 - Motorola DSP56303 User Manual

24-bit digital signal processor
Table of Contents

Advertisement

Mode 4 (internal clock): TRM = 1
N = write preload
M = write compare
TE
Clock
(CLK/2 or prescale CLK)
TLR
Counter
TCR
TIO pin
TCF (Compare Interrupt if TCIE = 1)
NOTE: If INV = 1, a 1-to-0 edge on TIO loads the counter, and a 0-to-1 edge on TIO
stops the counter and loads TCR with the count.
Figure 9-11. Pulse Width Measurement Mode, TRM = 1
Mode 4 (internal clock): TRM = 1
N = write preload
M = write compare
TE
Clock
(CLK/2 or prescale CLK)
TLR
Counter
TCR
TIO pin
TCF (Compare Interrupt if TCIE = 1)
NOTE: If INV = 1, a 1-to-0 edge on TIO loads the counter, and a 0-to-1 edge on TIO
stops the counter and loads TCR with the count.
Figure 9-12. Pulse Width Measurement Mode, TRM = 0
first event
N
0
N
width being measured
first event
N
0
N
width being measured
Triple Timer Module
N + 1
M
M
N + 1
M
M
Operating Modes
N + 1
Next 0-to-1 edge
on TIO loads
counter and
process repeats
Interrupt Service
reads TCR; width
= M - N clock
periods
Next 0-to-1 edge
N + 1
on TIO starts
counter from current
count and process
repeats. Overflow
may occur (TOF = 1).
Interrupt Service
reads TCR for
accumulated width
of M - N clock periods.
9-15

Advertisement

Table of Contents
loading

Table of Contents