Part Number: TMS320F280039C
Dear Champs,
I am asking this for our customer.
In their CLA task 8 (as background), they use shift operation like below,
D2D_i16InjectAcNoiseCmd = i16InjectAcNoiseCmd >> 5;
D2D_i16InjectAcNoiseCmd is in type short.
The user expected the result should be i16InjectAcNoiseCmd/32, but they found the result was wrong from CCS watch window.
Why D2D_i16InjectAcNoiseCmd became 2044 after i16InjectAcNoiseCmd (294) >> 5?
But if they changed to use D2D_i16InjectAcNoiseCmd = i16InjectAcNoiseCmd / 32, then the result was expected.
Is there any concern when using shift operation (right shift or left shift) in CLA?


Wayne Huang
