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.

Problem using TMS320F28335

Other Parts Discussed in Thread: TMS320F28335

Good Day,

 

I am working on a Simulink Model and embed it using Code Composer Studio 3.3 provided to me on CD with the ezdsp kit for TMS320F28335 Controller.

Problem is that my model works on double precision and not on single precision. When i declare a variable it allows me to define it as double, and shows it double even in CCS rtw library. But the problem is even if i amend the constant from 'double' to 'long double', The constant shows exact in memory as i declared but i cannot use it with same precision. I cannot convert my model from double to single precision as it will lose accuracy.

Please help me out to maintenane the accuracy of my simulink model.

 

Regards,

 

Owais

  • Owais,

    I'm not sure if I understand the exact problem.  One thing to keep in mind is that "float" and "double" on C28x are both 32-bits.  Long double is 64-bits.    The C28x FPU can generate hardware instructions for 32-bit float.  For 64-bit float you will be making use of the runtime support library.   A lot of standard functions, however, are only defined for 32-bit float arguments (example sin/cos).

    For Simulink specific questions I suggest contacting mathworks at c2000_expert@mathworks.com

    Regards,

    -Lori

  • I am Harikrishna, doing masters in POWER ELECTRONICS. Iam working on TMS320f28335 Micro controller ( C2000 family). I did my controller design in simulink platform and able to get the required pulses. And im able to interface the same design with code composer studio v3.3  to generate the code and loading the same code  into TMS320f28335 controller. But when im giving dc offset values as inputs to the controller, it is unable to generate  the output pulses from  that controller. what are the input and output pins I need to give? To the two GPIO pins 60 and 61 are given.kindly help me.

  • Hi Hari,

    Please avoid posting your queries to existing threads. As you've already posted the same in  a new thread, its fine.

    Regards,

    Gautam