PWM Write
R2026bSend pulse width modulation (PWM) signal configuration to PWM Interface block
Libraries:
SoC Blockset for AMD /
SoC System Simulation /
Processor I/O
Description
The PWM Write block sets the duty cycle for a PWM peripheral. In simulation, the block passes through the duty cycle input to drive the PWM Interface block that simulates the PWM switching signals produced by the hardware. When deployed to hardware, the PWM Write block writes to the appropriate PWM drivers on the hardware.
Ports
Input
Output
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.
"prociolib/PWM Write"
Example: add_block("prociolib/PWM Write","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2020b