Period Measurement Mode, Trm = 0 - Motorola DSP56303 User Manual

24-bit digital signal processor
Table of Contents

Advertisement

Mode 5 (internal clock): TRM = 0
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
loads TCR with count and the counter with N.
Figure 9-14. Period Measurement Mode, TRM = 0
first event
N
0
N
period being measured
Triple Timer Module
N + 1
M
M
Operating Modes
M + 1
Counter continues
counting, does
N + 1
not stop. Overflow
may occur (TOF=1).
Interrupt Service
reads TCR; period
= M - N clock
periods
9-17

Advertisement

Table of Contents
loading

Table of Contents