PWM
R2026bPulse width modulation of digital output pin
Libraries:
Embedded Coder Support Package for BeagleBone Black Hardware
Description
Add-On Required: This feature requires the Embedded Coder Support Package for BeagleBone Black Hardware add-on.
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.
Ports
Input
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"beaglebonelib/PWM"
Example: add_block("beaglebonelib/PWM","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2014b