PWM
 
Component PWM
Pulse width modulation
Component Level: High
This component implements a pulse-width modulation generator that generates a signal with variable duty and fixed frequency (period).

After the initialization of the PWM component, when the component is disabled (or has not been enabled yet) the output is set to the value specified by the Initial polarity property. This value also represents value of the output which is active during the "duty" part of the cycle (tD) when the component is enabled and output signal is generated. For details on timing and initial polarity options please see the pictures below.

Example of generated signal:

Initial polarity is Low, Ratio is 20%

Initial polarity is High, Ratio is 80%

Initial polarity is Low, Ratio is 80%

Initial polarity is High, Ratio is 20%

SetValue and ClrValue methods allow user to control polarity of output signal when the component doesn't generate the output (i.e. is disabled or has not been enabled).