Using the PWM block

Block Category: Real Time

The PWM block has two inputs: frequency and % Duty Cycle (or pulse width).

Combined, these two inputs form a signal with the specified frequency and duty cycle. The duty cycle indicates the percent of time the signal is in an ON state. The PWM block sends the signal to the specified channel on the 9513 counter output.

Although you can dynamically change the input values simultaneously, you typically vary one or the other input at a time. For example, for power modulation, keep the frequency fixed at a constant value while varying the pulse width. Conversely, for pure frequency output, fix the pulse width and vary the frequency.