On invalid conditions, the timer sets both the
bits and the Count register is not altered. Note that after reset, the timer
registers are all zero. The PWM_OUT timing is shown in
As mentioned earlier, 2 x
2 x
is the width. If the period and width values are valid after the
TMxW
timer is enabled, the count register is loaded with the value resulting from
0xFFFF FFFF – width. The timer counts upward to 0xFFFF FFFF.
Instead of incrementing to 0xFFFF FFFF, the timer then reloads the
counter with the value derived from 0xFFFF FFFF – (period – width) and
repeats.
PCLK
PERIOD
WIDTH
W_BUF
P_BUF
COUNTER
ZERO
TIMERx_O
IRQ
Figure 9-3. PWM_OUT Timing
ADSP-2136x SHARC Processor Hardware Reference
www.BDTIC.com/ADI
for the ADSP-21362/3/4/5/6 Processors
is the period of the PWM waveform and
TMxPRD
cycle
cycle
2
1
0
Peripheral Timers
and the
TIMxOVF
Figure
P/2
W/2
X = P - W
cycle
W
W
W - 1
2
TIMIRQx
9-3.
1
0
X
X - 1
cycle
cycle
9-11