標(biāo)題:
各位老師,我這個(gè)程序片段想實(shí)現(xiàn)如下功能:
[打印本頁]
作者:
liuyang
時(shí)間:
2013-5-7 23:48
標(biāo)題:
各位老師,我這個(gè)程序片段想實(shí)現(xiàn)如下功能:
if( RI )
{
RI = 0;
zimo
= SBUF;
if(zimo
== 0xff)
{
for(m=0;m<i;m++)
{
send_char(zimo[m]);
}
}
else
i++;
}
各位老師,我這個(gè)程序片段想實(shí)現(xiàn)如下功能:
從串口調(diào)試助手發(fā)送一系列十六進(jìn)制數(shù)據(jù)到單片機(jī),直到出現(xiàn)數(shù)據(jù)為“ff”的時(shí)候則將開始接收到的數(shù)據(jù)全部發(fā)送到串口調(diào)試助手,但是現(xiàn)在現(xiàn)象是比如我發(fā)送“01,02,03,04,05“這五個(gè)數(shù)據(jù),當(dāng)我發(fā)送”ff“的時(shí)候,返回的數(shù)據(jù)確是”00,00,00,00,05”,我覺得多半是我的指針數(shù)據(jù)哪里沒學(xué)好,所以才出現(xiàn)這個(gè)問題的。。求各位給一點(diǎn)提示,謝謝了。。
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1