Quantcast
Channel: Dave (Wisconsin) Wilson's Activities
Viewing all articles
Browse latest Browse all 534

Attempting to "code" using MATLAB R2013b or similar software (without writing code)

$
0
0

Hello! 

I am new to TI DSPs and find learning and programming pretty tedious and difficult. I'm trying to control 3 phase inverters (6 switches - for IM and PM machines) and also 2 phase switching legs with varying duty cycles and phase shifts (for power converters) using suitable PWM signals on the TMS320F28335 Delfino microcontroller with the Peripheral Explorer c2000 board.

Three basic functions that I want to implement are

1. Changing the frequency of the PWM output using an ADC input from a potentiometer on the board connected to pin A0 of the control card

2. Changing the phase shift of PWM 2A and 2B wrt PWM 1A and 1B and 3A and 3B wrt. 1A and 1B (etc.) to a suitable value

3. Applying a suitable dead time so as not to short any switching legs

I have configured matlab to do this since I still have major problems with coding. I've also tried SIMCODER (PowerSim), but in this program, the provision to change the switching frequency of the PWM as an input from the ADC is not available. Also, even without using the switching frequency variation, SIMCODER has problems in creating a sinusoidally modulated PWM signal.

I have 3 basic questions

1. Does anyone have any suggestions about software other than PSIM and MATLAB which can do this easily, without the need to code and also to be able to see the simulation of the whole system with the micro.. in the loop, so to speak. 

2. Can anyone share a basic project with code (in CCS V5 - that actually works!) to achieve these functions for the ePWM module, so that I can get an idea of things.. even one properly configured PWM pair will do, I can edit the code from there. It's a bigger problem to write from scratch without any prior experience. Right now I've tried to write code a few times, but I'm not comfortable with the coding environment and it takes a lot of time to get it right. I'm not sure I'll ever be able to do it on my own. I use CCS5 with XDS 100V2 and control suite and a blackhawk emulator, but I don't particularly understand all of it in a high degree of detail

3. Does anyone have any comments about the pros and cons about using MATLAB (embedded coder) and PSIM (simcoder) or any other software..

It would also be a great help if anyone could tell me if there is a "simulator" for the TMS320F28335.. a program which could show me what the board will do - at the pins and the LEDs etc. when a certain .out file is uploaded onto it.

Many thanks!


Viewing all articles
Browse latest Browse all 534

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>