標題: stc12單片機程序移植stc15w408s,串口通信用不了怎么回事? [打印本頁]

作者: w14    時間: 2018-3-10 10:01
標題: stc12單片機程序移植stc15w408s,串口通信用不了怎么回事?
stc12單片機程序移植stc15w408s,串口通信沒反應(yīng)怎么回事?

作者: YJGG    時間: 2018-3-10 10:39
看看寄存器的地址定義
作者: 13976778401    時間: 2018-3-10 17:09
串口設(shè)置不對
作者: hejianhuan    時間: 2018-3-10 21:49
波特率?
作者: wulin    時間: 2018-3-11 08:26

stc12與stc15w408s的串口波特率設(shè)置有區(qū)別,stc12的串口2有獨立波特率發(fā)生器,stc15w的串口2是定時器2(16位自動重載)用作波特率發(fā)生器。




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1