ADuCM320 Hardware Reference Manual
UG-498
Rev. C | Page 177 of 196
PWM0COM2
PWM0COM1
PWM0COM0
PWM0LEN
PWM0
HIGH SIDE
PWM1
LOW SIDE
PWM0COM2
PWM0COM0
PAIR 0 TIMER
PAIR 0 OUTPUTS
0xFFFF
0x0000
PWM0COM1
PWM0LEN
1117
6-
06
6
NOTES
1. NOTE THAT THE HIGH-SIDE PWM OUTPUT FOR EACH CHANNEL MUST HAVE A HIGH DURATION PERIOD GREATER THAN
OR EQUAL TO THE HIGH PERIOD DURATION OF THE LOW-SIDE OUTPUT. FOR EXAMPLE, THE HIGH PERIOD FOR PWM0
MUST BE GREATER THAN OR EQUAL TO THE HIGH PERIOD OF PWM1.
Figure 32. Waveform of PWM Channel Pair in Standard Mode
Table 265 lists equations for the period and duration for both the outputs of a PWM channel.
Table 265. PWM Equations
PWM Period
Duration
Low Side (PWM1)
t
UCLK/DIV
× (
PWM0LEN
+ 1) ×
N
PRESCALE
High
duration
If PWMCOM2 < PWMCOM1:
t
UCLK/DIV
× (
PWM0LEN
−
PWM0COM2
) ×
N
PRESCALE
Otherwise:
t
UCLK
× (
PWM0LEN
−
PWM0COM1
) ×
N
PRESCALE
High Side (PWM0)
t
UCLK/DIV
× (
PWM0LEN
+ 1) ×
N
PRESCALE
Low
duration
t
UCLK/DIV
× (
PWM0COM0
−
PWM0COM1
) ×
N
PRESCALE
Note that:
t
UCLK/DIV
is the PWM clock frequency selected by CLKCON1[2:0].
N
PRESCALE
is the prescaler value as determined by PWMCON0[8:6].