2945| 8
|
往串口中断服务函数中加入LED灯闪烁函数,数据发送出现问题 |
2金钱
最佳答案中断里面不要搞其他的,只接受数据。对数据的处理和其他的操作放到主程序去。
中断里面的LED操作延时200ms,波特率115200,你的数据早发完了但是你的延时200ms还远没结束呢
| ||
| ||
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.
过于执着就会陷入其中,迷失自己,困住自己。 |
||
| ||
| ||
| ||
| ||
| ||
| ||
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-24 06:07
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网