Designing a Sinusoidal pwm using the embedded coder blocks in matlab for the f28335 dsp

18 次查看(过去 30 天)
Hello ALL I'm trying to design a sinusoidal pulse width modulation for a boost inverter using the embedded coder blocks. I designed it in matlab and I'm able to see pulses once I simulate the controller in matlab. However when I build and load the program onto the dsp I'm not see anything on the oscilloscope.
I was trying to see if I can use the epwm block to design the spwm but I was unsuccessful. Once I can get this problem solved I can create a unipolar modulation spwm which I would need for my circuit
Can some provide me with some insight in solving this issue?
Thanks!!

回答(1 个)

David Ding
David Ding 2017-1-3
Hello Nadia,
There could be multiple causes as to why you are not seeing the waveform on the oscilloscope. Please try the following:
  • Did you build the model for this particular DSP hardware target? In order to run the code on the DSP, you must compile the code specifically for this hardware. If you need support packages, please type
>>supportPackageInstaller
to download the required support packages to build your model for this particular DSP
  • Is the DSP working and connected properly? Try to connect the input to the DSP to some other source that is known to be working, and see if the oscilloscope is displaying any signals
  • Is the oscilloscope outputting the correct channel? Please enable all channel outputs on the oscilloscope to see if you see any signals
An example regarding working with PWM and DSP is found in the link below:
Good luck!

社区

更多回答在  Power Electronics Control

Community Treasure Hunt

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

Start Hunting!

Translated by