2 sheng804643815 sheng804643815 于 2014.05.10 20:53 提问

51单片机编程串口通信问题

#include
unsigned char a[]="i love";
unsigned int b=0;
void love()interrupt 4
{if(TI==1)
TI=0;
}
void delay(unsigned int a)
{a--;
}
void main()
{EA=1;
ES=1;
TMOD=0X20;
TH1=0XFD;
TL1=0;
TR1=1;
SM1=0;
SM1=1;
while(1)
{for(b=0;b<6;b++)
{SBUF=a[b];
delay(40);

}
}
}
1.我想问下为啥代码输出会是这样呢“ieeevvvoooll iiieeevvvoooll iiieeevvvooolll iiieeevvvooolll iiieeeevvooolll iieeeevvooolll iieeeevvvoolll iiieeevvvoolll iiieeevvvoooll iiieeevvvoooll iiieeevvvooolll iiieeevvvooolll iiieeeevvooolll iieeeevvooolll iieeeevvvoolll iiieeevvvoolll iiieeevvvoooll iiieeevvvoooll iiieeevvvooolll iiieeevvvooolll iiieeeevvooolll iieeeevvooolll iieeeevvvoolll iiieeevvvoolll iiieeevvvoooll iiieeevvvoooll iiieeevvvooolll iiieeevvvooolll iiieeeevvooolll iieeeevvooolll iieeeevvvoolll iiieeevvvoolll iiieeevvvoooll iiieeevvvoooll iiieeevvvooolll iiieeevvvooolll iiieeeevvooolll iieeeevvooolll iieeeevvvoolll iiieeevvvoolll iiieeevvvoooll iiieeevvvoooll iiieeevvvooolll iiieeevvvooolll iiieeeevvooolll iieeeevvooolll iieeeevvvoolll iiieeevvvoolll iiieeevvvoooll iiieeevvvoooll iiieeevvvooolll iiieeevvvooolll iiieeeevvooolll iieeeevvooolll iieeeevvvoolll iiieeevvvoolll iiieeevvvoooll iiieeevvvoooll iiieeevvvooolll iiieeevvvooolll iiieeeevvooolll iieeeevvooolll iieeeevvvoolll iiieeevvvoolll iiieeevvvoooll iiieeevvvoooll iiieeevvvooolll iiieeevvvooolll iiieeeevvooolll iieeeevvooolll iieeeevvvoolll iiieeevvvoolll iiieeevvvoooll iiieeevvvoooll iiieeevvvoo”

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!