本人使用stm32f407;做了个项目,自己的板子上485芯片使用的是MAX487ESA,。
在调试过程中发现,9600bps和14400bps本人的板子收发正常,但是只要超过14400bps,就会出现485接收错误
本来应该接收“00 00 00 00 00 00 00 00 02 FF 00 00 00 00 B6 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4C”
实际上接收到“00 00 12 F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00”
485程序是仿照原子程序写的,由串口2改为串口3.
请各位不吝赐教!! |