Pulse width modulation toggle mode, trm = 0 -21 – Motorola DSP56301 User Manual
Page 283
Operating Modes
Triple Timer Module
9
-21
Figure 9-17. Pulse Width Modulation Toggle Mode, TRM = 0
Mode 7 (internal clock): TRM = 0
N = write preload
M = write compare
TE
Clock
(CLK/2 or prescale CLK)
TLR
TCPR
TCF (Compare Interrupt if TCIE = 1)
Counter (TCR)
first event
M
0
N
M
1
2
N
Period = $FFFFFF - TLR + 1
Duty cycle = ($FFFFFF - TCPR)
Ensure that TCPR > TLR for correct functionality
0
M + 1
TCF (Overflow Interrupt if TDIE = 1)
TIO pin (INV = 0)
TIO pin (INV = 1)
Pulse width
Period
NOTE: On overflow, TCR is loaded with the value of TLR.