This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Generation Sine wave for 3 phase

Other Parts Discussed in Thread: TMS320F28035, CONTROLSUITE

I am using TMS320F28035 DSP for 10KVA inverator.I want 50hz sine wave for 3 phase .Cany u give me any document or code .

Thank u

  • Hello Anil!

    Perhaps you are looking for it: ti\controlSUITE\libs\dsp\SGEN. This library supports both fixed and floating point math.

    Regards,

    Igor

  • Hi,

    In ti\controlSuite\libs\dsp\SGEN for TMS320F28035 not present.

  • Hi Anil,

    Did you try porting/modifying the code for F28035?

    Regards,

    Gautam

  • Hello Anil!

    Mentioned SGEN code for F28335 could be ported for F28035. You just need to use device support library from ti\controlSUITE\device_support\f2803x\v127\ and SGEN library for fixed point C28x_SGEN_Lib_fixed.lib from ti\controlSUITE\libs\dsp\SGEN\v101\lib\. Description of SGEN library you can find in ti\controlSUITE\libs\dsp\SGEN\v101\doc\.

    Regards,

    Igor 

  • Hi Gorbachev,

    I saw that SGEN pdf. I am trying to import that project but it is showing error.

    If u did this sine wave before can u mail me code to my mail(anilksahu007@gmail.com).

    thanks

    Anil

  • Hello Dear Anil!

    It seems you're quite lazy my friend :-) (Do not get angry. Frankly, I'm too.) All the work on porting the code takes half an hour. I have taken 2833x_SGENT3 for basis and I have checked that it is compiled successfully at the first step. Now this project is adopted for 28035 (correcting "Include paths", "Source modules (asm + c)", 28035_RAM_lnk.cmd (inserting needed sections according 28335_SGEN_RAM_lnk.cmd)). Perhaps you will need to correct "Include path" and "File Search Path" project options according the placement of your CCS and Workspace on your hard disk. Here my attachment for you 7220.28035_SGENT3.rar (CCSv5.2, C2000 compiler 6.1.0).

    Good luck,

    Regards,

    Igor 

    PS  I can not guarantee efficiency of the project because I do not have F28035 and I can not check. Perhaps debugging will be required.

  • Hello Gorbachev,

    Error comming like this "could not open source file ".

  • Hi,

    I didn't go through the relevant TI document, but if your task is generation of a sine wave, u can do it by a simple lookup table.

    I suggest that u use xls or preferably matlab and create sample points of a sine wave. A good table can be obtained by oversampling by 20 times or more, i.e. 1000 hz in your case. The data set obtained will have values proportional to amplitude of a sine wave with respect to time. U can then use these values to load pwm registers to create pwm modulated sine wave.

    Jawwad

  • Hi Anil!

    Anil Sahu said:

    Error comming like this "could not open source file ".

    Check please "Include path" and "File Search Path" project's options carefully and set these options according your paths on hard disk. There are no other problems (at least with compiling) except incorrect paths for your PC. This project is compiled successfully on my PC. I have no reason to mislead you. I believe you will cope with this task.

    Regards,

    Igor 

  • Igor, you are really helping, still more help.

    Anil,

    See the settings below to match 035 controller. Folder version may be different in your installation.

  • Thanks, Joy. 

    Well what can I do about it? Unfortunately correcting include paths is first problem which beginners face to...Most recently, I myself was the same.

    Regards,

    Igor