📄 上海齐济电子-应用技巧-pic16系列单片机与pc机串行通信的软硬件实现.htm
字号:
lang=ZH-CN>Rcvr </FONT></SPAN></TD>
<TD height=20 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;未检测到起始位</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=20 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>movlw</FONT></SPAN></P></TD>
<TD height=20 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>8</FONT></SPAN></TD>
<TD height=20 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;检测到起始位</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=20 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>movwf</FONT></SPAN></P></TD>
<TD height=20 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>R_CNT</FONT></SPAN></TD>
<TD height=20 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;8位数据位</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=20 width="16%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>Rnext</FONT></SPAN></TD>
<TD height=20 width="15%"></TD>
<TD height=20 width="45%"></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=20 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>call</FONT></SPAN></P></TD>
<TD height=20 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>Delay</FONT></SPAN></TD>
<TD height=20 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;延时B/2秒</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=22 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>bcf</FONT></SPAN></P></TD>
<TD height=22 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>STATUS,C</FONT></SPAN></TD>
<TD height=22 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;清进位标志</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=21 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>rrf</FONT></SPAN></P></TD>
<TD height=21 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>RevReg</FONT></SPAN></TD>
<TD height=21 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;LSB在先</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=21 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>btfsc</FONT></SPAN></P></TD>
<TD height=21 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>RA,DR</FONT></SPAN></TD>
<TD height=21 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;该位为0</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=18 width="16%">
<BLOCKQUOTE>
<P> </P></BLOCKQUOTE></TD>
<TD height=18 width="15%"></TD>
<TD height=18 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;还是为1</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=21 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>bsf</FONT></SPAN></P></TD>
<TD height=21 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>RcvReg,MSB</FONT></SPAN></TD>
<TD height=21 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;为1</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=21 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>call</FONT></SPAN></P></TD>
<TD height=21 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>Delay</FONT></SPAN></TD>
<TD height=21 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;延时B/2秒</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=21 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>decfsz</FONT></SPAN></P></TD>
<TD height=21 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>R_CNT</FONT></SPAN></TD>
<TD height=21 width="45%"></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=21 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>goto</FONT></SPAN></P></TD>
<TD height=21 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>Rnext</FONT></SPAN></TD>
<TD height=21 width="45%"></TD><FONT
lang=ZH-CN></FONT></TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD height=21 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>retlw0</FONT></SPAN></P></TD>
<TD height=21 width="15%"></TD>
<TD height=21 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;返回</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=18 width="16%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;发送子程序</FONT></SPAN></TD>
<TD height=18 width="15%"></TD>
<TD height=18 width="45%"></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=21 width="16%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>Xmtr</FONT></SPAN></TD>
<TD height=21 width="15%"></TD>
<TD height=21 width="45%"></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=21 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>clrwdt</FONT></SPAN></P></TD>
<TD height=21 width="15%"></TD>
<TD height=21 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;清片内看门狗</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=18 width="16%"></TD>
<TD height=18 width="15%"></TD>
<TD height=18 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;定时器</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=18 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>movlw</FONT></SPAN></P></TD>
<TD height=18 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>8</FONT></SPAN></TD>
<TD height=18 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;发送位数为8</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=18 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>movwf</FONT></SPAN></P></TD>
<TD height=18 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>X_CNT</FONT></SPAN></TD>
<TD height=18 width="45%"></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=18 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>bcf</FONT></SPAN></P></TD>
<TD height=18 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>RA,DX</FONT></SPAN></TD>
<TD height=18 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;发送起始位</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=18 width="16%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>Xnext</FONT></SPAN></TD>
<TD height=18 width="15%"></TD>
<TD height=18 width="45%"></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=18 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>call</FONT></SPAN></P></TD>
<TD height=18 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>Delay</FONT></SPAN></TD>
<TD height=18 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;延时B/2秒</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=18 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>call</FONT></SPAN></P></TD>
<TD height=18 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>Delay</FONT></SPAN></TD>
<TD height=18 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;延时B/2秒</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=18 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>rrf</FONT></SPAN></P></TD>
<TD height=18 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>XmtReg</FONT></SPAN></TD>
<TD height=18 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;LSB在先</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=18 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>btfsc</FONT></SPAN></P></TD>
<TD height=18 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>STATUS,C</FONT></SPAN></TD>
<TD height=18 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;检测将要发送</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=18 width="16%">
<BLOCKQUOTE>
<P> </P></BLOCKQUOTE></TD>
<TD height=18 width="15%"></TD>
<TD height=18 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;的数据位</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=18 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>bsf</FONT></SPAN></P></TD>
<TD height=18 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>RA,DX</FONT></SPAN></TD>
<TD height=18 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;数据位为1</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=18 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>btfss</FONT></SPAN></P></TD>
<TD height=18 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>STATUS,C</FONT></SPAN></TD>
<TD height=18 width="45%"></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=18 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>bcf</FONT></SPAN></P></TD>
<TD height=18 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>RA,DX</FONT></SPAN></TD>
<TD height=18 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>;数据位为0</FONT></SPAN></TD><FONT lang=ZH-CN></FONT></TR>
<TR>
<TD height=18 width="16%">
<P align=center><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>decfsz</FONT></SPAN></P></TD>
<TD height=18 width="15%"><SPAN style="FONT-SIZE: 9pt"><FONT
lang=ZH-CN>X_CNT</FONT></SPAN></TD>
<TD height=18 width="45%"><SPAN style="FONT-SIZE: 9pt"><FONT
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -