定义一个字符串RxBuf[]
Print_Char(RxBuf[0]);
Print_Char(RxBuf[1]);
Print_Char(RxBuf[2]);
Print_Char(RxBuf[3]);
Print_Char(RxBuf[4]);
Print_Char(RxBuf[5]);
Print_Char(RxBuf[6]);
Print_Char(RxBuf[7]);
Print_Char(RxBuf[8]);
Print_Char(RxBuf[9]);
Print_Char(RxBuf[10]);
Print_Char(RxBuf[11]);
Print_Char(RxBuf[12]);
Print_Char(RxBuf[13]);
Print_Char(RxBuf[14]);
Print_Char(RxBuf[15]);
给单片机发送ABC不加回车,单片机接收:41 42 43 0D 0A 0D 0A 0D 0A 0D 0A 00 00 00 00 00
。。。。。。。。加回车 单片机接收: 41 42 43 0D 0A 0D 0A 0D 0A 0D 0A 00 00 00 00 00
什么也不发送 单片机接收:0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 00 00
神马个情况???虽然不影响接收的有用数据
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
那是默認發送 ASCII 給你看, 自動換行的結果
選用16進制發送會解決嗎 ?
不行就換另外的 傳口調試軟件
俺用這個純軟件的, 不用 硬件的邏輯分析儀
http://www.sudt.com/cn/index.html
那是默認發送 ASCII 給你看, 自動換行的結果
選用16進制發送會解決嗎 ?
不行就換另外的 傳口調試軟件
俺用這個純軟件的, 不用 硬件的邏輯分析儀
http://www.sudt.com/cn/index.html
个人感觉是PC机工具的问题,换个串口工具试试,推荐SSCOM 记得取消“发送新行”,再不行就用串口抓包工具 抓包看看串口工具究竟发送了什么数据?
如果排除了PC机发送的问题,就得仔细看看单片机程序了,不介意的话,可以贴完整的程序出来给各位看看呗!
一周热门 更多>