How can I generate simulink model of Sinusoidal PWM for TI launchpad c2000

13 views (last 30 days)
I have generated ePWM using block given in library. but I am unable to generate SPWM and also facing the problem to have phase shift in generated PWM.
  2 Comments
Venkatachala Sarma
Venkatachala Sarma on 6 May 2016
Hi Swapnil,
1. What are the settings you have made in the ePWM block?
2. How are you providing the input to the ePWM block?
3. What output are you observing at the output of ePWM block?

Sign in to comment.

Answers (2)

Pouriya Boostani
Pouriya Boostani on 31 Jul 2017
Hello,
In ePWM module go to ePWMA or ePWMB tab and set "Specify CMPx via" on "Input port", then connect
the Wx input port to a sine wave block.
In sine wave block set "sine type" on "sample based".
  1 Comment
MArtin
MArtin on 2 Dec 2017
Could you share a detailed account of the solution?I tried your method, but it didn't work. The pulse width of PWM signal generated was still the same.

Sign in to comment.


Nafis Subhani
Nafis Subhani on 21 Dec 2018
I have used launchpad F28027 with simulink to generate code from direct simulink model. But when I tried to generate the code from one of my model which I need mainly I am facing error. I dont know what is the problem exactly. I want to generate 10KHz switching signals for my Z-source inverter......
Can you help me solving the problem.
Error.png

Communities

More Answers in the  Power Electronics Control

Community Treasure Hunt

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

Start Hunting!