MATLAB Answers

How to generate a pwm signal with duty cycle 30%

9 views (last 30 days)
Harsha Nimje
Harsha Nimje on 18 Nov 2019
Edited: Harsha Nimje on 19 Nov 2019
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

  1 Comment

KALYAN ACHARJYA
KALYAN ACHARJYA on 18 Nov 2019
May be: Do the coding then use in function block??

Sign in to comment.

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
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)

Community Treasure Hunt

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

Start Hunting!

Translated by