新手上路
- 积分
- 27
- 金钱
- 27
- 注册时间
- 2018-8-23
- 在线时间
- 7 小时
|
楼主 |
发表于 2023-2-19 20:24:46
|
显示全部楼层
sprintf(SEND_BUFFER1,"%055d\n",cnt_drdy);
cnt_drdy++;
然后把发送的内容改为从0开始每次触发中断发送值+1,发送的数据位宽和实际保持一致,然后发现接收到的数据包有丢失,为:
0000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000004
0000000000000000000000000000000000000000000000000000008
0000000000000000000000000000000000000000000000000000010
0000000000000000000000000000000000000000000000000000026
0000000000000000000000000000000000000000000000000000034
0000000000000000000000000000000000000000000000000000051
0000000000000000000000000000000000000000000000000000162
0000000000000000000000000000000000000000000000000000178
0000000000000000000000000000000000000000000000000000179
0000000000000000000000000000000000000000000000000000205
0000000000000000000000000000000000000000000000000000214
0000000000000000000000000000000000000000000000000000227
0000000000000000000000000000000000000000000000000000267
0000000000000000000000000000000000000000000000000000288
0000000000000000000000000000000000000000000000000000289
, |
|