串å£é讯ï¼é¦å
设置波ç¹çï¼å设置串å£æ¨¡å¼ï¼ä¹åå°±å¯ä»¥æ¶åæ°æ®äºãæ¯å¦ï¼
init()
{
TMOD=0x20;
TH1=0xfd;
TL1=0xfd;
TR1=1;
SCON=0x50;
}
send(unsigned char dat)
{
SBUF=dat;
while(TI==0);
TI==0;
}
unsigned char recive()
{
unsigned char dd;
if(RI)
{
dd=SBUF;
RI=0;
}
return(dd);
}