Pulse width modulation toggle mode, trm = 1 -20 – Motorola DSP56301 User Manual
Page 282
Operating Modes
9
-20
DSP56301 User’s Manual
Figure 9-16. Pulse Width Modulation Toggle Mode, TRM = 1
Mode 7 (internal clock): TRM = 1
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
N
N + 1
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