How to create phase shifted PWM signals on c2000

Ric_22025
Ric_22025
Altair Employee
edited October 2020 in Community Q&A

I want to create two pwm signals with the same duty cycle but one having a phase offset from the other

Answers

  • Ric_22025
    Ric_22025
    Altair Employee
    edited November 2018

    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.  

     

    <?xml version="1.0" encoding="UTF-8"?>image.png

    <?xml version="1.0" encoding="UTF-8"?>image.png

    Unable to find an attachment - read this blog