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.

CCS/TMS320F28335: TMS320F28335 Data type for define variable

Part Number: TMS320F28335

Tool/software: Code Composer Studio

Hello,

              I am using TMS320F28335 for inverter application. I use code composer studio. I am using enhanced pulse with modulator (ePWM) for driving IGBT.

When I define a variable as “integer” (int) , program is running but ePWM modüle is not working. Controller can not generate PWM. I observed this situation , without using this variable anywhere.

When I define a variable as “integer 32”,”float”,”long” etc., program is running and ePWM working. Controller generate PWM.

For example I define a variable “i”;

İnt i=0; //Controller can not generate PWM

İnt32 i=0; or Long i=0; or İnt32 i=0 //Controller generate PWM.

I am not using this value anywhere in program in both case.

I want to know reason this situation. Which data type should I use to define a variable?