而且接下来直接打印串口的数据也发生了问题,打印代码如下
while(1)
{
while(ri_u0c1 == 0){}
ch = (u08)u0rbl;
int k=0;k++;
if((k%16)==0){DBG_MSG("\r\n");}//打印换行
DBG_MSG("%X",ch);//打印串口获取的数据
}
现象:
//打印没有加逗号的数据
0xE10x610x000x000x000x300x300x310x000x000x000x000x000x000x00
0x2E0x300x000x000x000x080x000x000x000x000xDF0x000x000x000x000x00
0x000x000x230x410x000x890x000x000x000x000x000x000x2F0x000x000x00
0x000x000x800xFE
//打印逗号的数据
0xE1,0x83,0x00,0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x2E,0x31,0x00,
0x00,0x08,0x00,0x00,0x00,0xDF,0x00,0x00,0x00,0x00,0x00,0x00,0x23,0x00,0x80,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0xFE, |