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.

Compiler/TMS320F28377D: Why does the compiler warn"176-D expression has no effect "

Part Number: TMS320F28377D

Tool/software: TI C/C++ Compiler

Hi,

     I am using TMS320F28377D, and when I try to assign EPWMReg.CMPA, it will warn the assignment has no effect.

The warning is for Line 1548  "EPwm9Regs.CMPA.bit.CMPA = EPWM_period - 1000", and EPWM_period is a macro definition equal to 2500.

The warning shows:"#176-D expression has no effect".

 I want to know what's wrong with the assignment. Thanks.

Hope for reply.