![HORNER HE-XE100 Скачать руководство пользователя страница 93](http://html.mh-extra.com/html/horner/he-xe100/he-xe100_user-manual_2163928093.webp)
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8
P a g e 93 | 158
•
Period Count
This value (%AQ7-8) sets the period of the output signal by specifying the number of
internal PWM counter
counts
before the cycle is reset (larger count results in a smaller
frequency). The duration of each
count
is determined by the pre-scaler value. This
parameter affects the Period of both PWM outputs.
See the previous formula to see how the pre-scale and period counts create an output
frequency. For example, setting the PWM for 1
μ
s resolution (pre-scale=15), and a period
count of 20,000 would result in a 50Hz output.
•
Duty Cycle Count
This value (PWM1: %AQ1-2, PWM2: %AQ3-4) sets the width of the output signal by
specifying the number of internal PWM counter counts that the output is maintained
high. The duration of each count is determined by the pre-scaler value. Each PWM
channel has its own duty cycle count parameter.
Setting the period count to 1000 and the duty cycle count to 500 results in a duty cycle
of 50 percent. Changing just the duty cycle count to a value of 250 results in a duty
cycle of 25%.
Period
Duty Cycle