How to generate a pwm signal with duty cycle 30%

1 view (last 30 days)
How to generate a pwm signal with duty cycle 30% without using any of the source blocks.
Want to use the simulink library but not the blocks present in the sources

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 18 Nov 2019
Use a resetable integrator to generate a sawtooth wave, compare it with a constant value, you'll get a PWM wave. The value of the constant determines the duty cycle.
  1 Comment
Harsha Nimje
Harsha Nimje on 19 Nov 2019
Edited: Harsha Nimje on 19 Nov 2019
can u please elaborate? which signal to be connected to the 1st input port , 2nd input port what should be the reset condition?

Sign in to comment.

More Answers (0)

Products


Release

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!