PWM Output
Generate square wave on the specified output pin
Libraries:
Simulink Coder Support Package for BBC micro:bit/Basic
Simulink Coder Support Package
for STMicroelectronics Nucleo Boards/ Common
Simulink Coder Support Package for STMicroelectronics
Discovery Boards/ STM32F746G-Discovery
Simulink Coder Support Package for STMicroelectronics
Discovery Boards/ STM32F769I-Discovery
Description
The PWM Output block generates square waveform on the specified output pin. The block
input controls the duty cycle of the square waveform. You can provide a value between
0
–100
as the block input. An input value of 0
produces a 0 percent duty cycle and an input value of 100 produces a 100 percent duty
cycle