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.

register error when using a negative value

hi all
i face i a very amazing issue  when i use 
EDMA3_DRV_setDestIndex();  " EDMA LLD function "

to set dst index , c index is a negative value then when i look at register value it wasn't as i set ?????????

is there a problem with negative values ?? 

  • What is the value you are trying to set it to ? The value you have in the 32 bit unsigned integer is being interpreted by the Code composer studio editor. I would recommend looking at the Param structure to see what 16 bit value has been set in the Param structure (as shown in figure 3 here).  or define the variable as unsigned short and then typecast it to (int ) if the API needs you to pass an int.

    Regards,

    Rahul