MAN1106-07-EN_XL+_UserManual
M a y 6
t h
, 2 0 2 0
P a g e 103 | 192
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.6
–
PWM Examples