Jump to content
Sign in to follow this  

How to create phase shifted PWM signals on c2000

Recommended Posts

Attached is a model that will allow you to adjust the phase lag between PWM1A and PWM2A on a F28069M launchpad.  First generate code from the compound block entitled "PWM Phase Control" located in the "PWM with PhaseShiftv2.vsm" source model. Next, open the model "PWM with PhaseShiftv2-d.vsm", make sure the target interface block is pointing to the ".out" file you created in the first step, and run it.  You will be able to adjust the duty cycle fraction as well as the phase angle fraction using the sliders.  


PWM with Phase Shiftv2.vsm

PWM with Phase Shiftv2-d.vsm



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this