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.
Hello,
I am very new in the area of DSP and just a beginner in C programming. My task is to control a synchronous motor with a vector-orientated control. In the TI motor library, I found an application example, which I would like to use. Unfortunately, this example is only for the fixed-point controller series. What do I have to do to adapt this example to my controller? Any help is appreciated!
Thank you!
The TMS320F28335 will perform fixed point math. In addition, I suspect the motor control library utilizes IQMath which provides floating point capability on a fixed point machine.
You should still be able to use the library on the TMS320F28335.
First of all thanks for the reply! but which of the motor control libraries would you use. I need a FOC control for a 3 ph Permanent Magnet Sync. I have to chose between the F280x and the F281x.
Which of the both controllers are most similar to the F283x? What do I have to adapt?
Thanks for your help!!!
hello84 said:First of all thanks for the reply! but which of the motor control libraries would you use. I need a FOC control for a 3 ph Permanent Magnet Sync. I have to chose between the F280x and the F281x.
Which of the both controllers are most similar to the F283x? What do I have to adapt?
The F280x series is more similar to the F2833x devices due to the control peripheral being similar.
Either way, there is a migration guide from the F280x to F2833x and a migration guide from the F281x to F2833x. These are available on the TMS320F28335 Product Folder
.
Thanks that is a great help!
I am getting familiar with the example project for the F280x now. Is it possible to use the the IQmath library and the DriveLib which is written for the F280x and comes with the example file, or do I have to use the IQmath library for the F283x?
Dear hello84,
I suggest you try VisSim/ECD. It is a block diagram language for embedded control targeted at TI C2000 devices. It has a complete motor control block set that allows off-line simulation, automatic C code generation and CCS compile. It will select the proper TI motor control library for you whether you use LF2407, F2812, F280x, F2833x, F2802x, F2801x etc.
You can switch between F280x, F2801x, F2802x, F282x, F283x processors simply by selecting your desired target from the Config... dialog.
VisSim supports graphical programming for on-chip peripherals like ePWM, eQEP, eCAP, CAN, I2C, SPI, SCI, GPIO, XINT, ADC, SEQnINT, watchdog, etc.
You can enable the High Resolution picosecond edge control for the ePWM units simply by checking the "Hi Res" box in the ePWM config dialog.
VisSim generates code within 5% of the performance of expert hand coded assembler.
You can download a free 2 month trial here: www.vissim.com/downloads/demos.html
Regards,
Pete
Thanks, maybe I try your solution some time it sounds good!
But I still would like to know if I can use the IQmath library which comes in the F280x example for my project. Or do I have to substitute this library with a new IQmath library for the F283x? I am not going to use the Floating Point Unit on the controler!
Generally you need to use all "floating point" versions of libraries and objects to target the F283x parts. Even if there is no actual floating point being done, it still needs to be compiled with the floating point compile flag or the linker will give an error.
So you will need a special "floating point" IQ math lib for the F28335. VisSim uses IQMath, and the download I mentioned includes both fixed point and floating point versions of all libraries DMC and IQMath for targeting all F28x.
VisSim also comes with a CCS plugin to automatically create a CCS project if you want.
Regards