MAN0964-14-EN_XL4_XL4P_UM
N o v e m b e r 1 0 , 2 0 2 1
P a g e 105 | 194
9.7
PWM Examples
Example 1
Duty Cycle
Frequency
To get a 50% Duty Cycle @
10kHz waveform on PWM1:
Set %AQ421-422 = 16,000
Set %AQ423-424 = 10,000
Example 2
Duty Cycle
Frequency
To get a 50% Duty Cycle on
PW1 and 90 % Duty Cycle on
PWM2 @ 1kHz waveform:
Set %AQ421-422 = 16,000
Set %AQ431-432 = 28,800
(duty cycle (32000 * 0.9))
Set %AQ423-424 = 1,000
Set %AQ433-434 = 1,000
Example 3
Duty Cycle
Frequency
To turn PWM 1 output ON all
the time
Set %AQ421-422 = 32,000
Set %AQ423-424 = Any Value
Example 4
Duty Cycle
Frequency
To turn PWM 1 output OFF all
the time
Set %AQ421-422 = 0
Set %AQ423-424 = Any Value
Table 9.10
–
PWM Examples