2359| 7
|
【求助】串口接收解析数据速率 |
8金钱
最佳答案这个模块一圈也就90个包,处理方法是申请了90个包的数组,进中断就直接判断属于第几包然后直接存放到数组里面,
程序里面再取用数组里的数据,虽然在取用数据的时候,会被中断打断,改变数据值,但是正好是最新的数据,符合要求,
中断只写,处理只读,所以不会造成其他的冲突。
| ||
茵茵猪头
|
||
| ||
茵茵猪头
|
||
| ||
| ||
茵茵猪头
|
||
| ||
成功没有捷径
|
||
| ||
| ||
| ||
He who fights with monsters should look to it that he himself does not become a monster, when you gaze long into the abyss, the abyss also gazes into you.
过于执着就会陷入其中,迷失自己,困住自己。 |
||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-5-23 20:37
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网