Main Content

PWM Output

Generate pulse waveform on specified output pin


Simulink Coder Support Package for NXP FRDM-K64F Board

  • PWM Output block


Generate pulse waveform on the specified output pin. You can provide a value between 0 to 100 as the block input. The input value that you provide controls the duty cycle of the pulse waveform. For an input ‘0’, the block produces ‘0’ percent duty cycle and for an input ‘100’, the block produces 100 duty cycle.



Select the output pin to generate the pulse waveform. To view the pin mapping, click View pin map.

Initial frequency (Hz)

Specify the initial frequency in Hertz. The default initial frequency is 2000 Hz.

Initial duty cycle (0 – 100)

Specify the initial duty cycle between 0 to 100. The default initial duty cycle is 0.

See Also