PWM
Generate pulse width modulated signal of digital output pin
Libraries:
Raspberry Pi Blockset /
Basic
Description
Use the PWM block to vary the power output of a digital output pin. This block enables a digital output to provide a range of different power levels, similar to that of an analog output.
During simulations without the hardware, this block does nothing. See Block Produces Zeros or Does Nothing in Simulation (Simulink).
Note
To generate code C/C++ code for this block, you must have an Embedded Coder® license.
Ports
Input
Parameters
Extended Capabilities
Version History
Introduced in R2016b