How to create a pulse wave with a variable duty cycle?

I am working on a simulation for maximum power point tracking of a solar module, using the P & O method. I need to control the duty cycle of a pulse wave controlling the switch of a buck converter. I used a matlab function from the file exchange, whose output is the duty cycle (between 0 and 1), which varies according to the function. I need to create a pulse wave with this variable duty cycle, so I can connect the pulse wave to the MOSFET switch of the buck converter. Thanks. Regards, Omar

Answers (1)

You can use PWM generator (DC_DC) block or you can build it by your self by using saw tooth and function to make sawtooth from 0 to 1 and compare it with the duty cycle come from function and output from compare to mosfet

Categories

Asked:

on 2 Dec 2015

Answered:

on 24 Dec 2015

Community Treasure Hunt

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

Start Hunting!