MATLAB Answers

0

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

Asked by Nadia Smith on 27 Dec 2016
Latest activity Answered by David Ding
on 3 Jan 2017
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!!

  0 Comments

Sign in to comment.

1 Answer

Answer by David Ding
on 3 Jan 2017

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!

  0 Comments

Sign in to comment.