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.

Uint8,显示16位



我现在使用的是TMS320x28335,CCS3.3版本进行仿真,watch window中8位变量显示为16位,例如:

Uint8 uc_BufTdSci[700];

Uint8 uc_BufRdSci[20];

还有在做数据拷贝的时候,也碰到同样的问题:

memcpy((Uint8 *)&uc_BufTdSci[11], (Uint8 *)&s_ACSRealData.ui_U[0], 2);

此时s_ACSRealData.ui_U[0]=0x55F0,按照标准C函数,结果应该是uc_BufTdSci[11]=0xF0,uc_BufTdSci[12]=0x55。但实际上,看到的结果是uc_BufTdSci[11]=0x55F0。

请群里的高手帮忙看看是什么问题,谢谢!