Generating PWM using sawtooth wave

版本 1.1.0.0 (18.6 KB) 作者: Rayyan Akhtar
PWM with variable duty cycle using sawtooth wave.
494.0 次下载
更新时间 2016/8/21

查看许可证

This model can be used to vary the duty cycle of PWM by varying a constant value. Here, duty cycle depends on a constant value which is related to the duty cycle by the given relation. If d is duty cycle and the constant value which will vary the duty cycle is a then, d=(4-a)/8. For example, if you want to create a PWM with duty cycle of 25% or d=0.25 then a will be 2. 'a' may have any value between -4 to 4 depending on the required duty cycle. As the value of a increases, value of d decreases.
Phase shifting is also illustrated in the model.

引用格式

Rayyan Akhtar (2024). Generating PWM using sawtooth wave (https://www.mathworks.com/matlabcentral/fileexchange/58798-generating-pwm-using-sawtooth-wave), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2015b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Pulse and Transition Metrics 的更多信息
社区

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

In model, naming is provided to the input and output ports.

1.0.0.0