![HORNER XL7 OCS User Manual Download Page 102](http://html.mh-extra.com/html/horner/xl7-ocs/xl7-ocs_user-manual_2163915102.webp)
MAN0974-09-EN_XL7_UserManual
March 4
th
, 2019
Page 102 | 185
12.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 12.10
–
PWM Examples