在main里定义了一个变量,
unsigned char u8Num=0;
程序里对这个变量作了累加,u8Num++;
把这个数通过板上的DA输出,跑了会,发现程序跑得不太对劲,打断点一看,u8Num居然是个大于255的数。
怎么会是这样呢?开发环境用的是CCS3.3。
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.