完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
#include "reg51.h" #include #include unsigned char *receive='0'; ***it LED0=P1^0; ***it LED1=P1^1; void DelayMS(unsigned char x) { unsigned char a,b; for(b=102*x;b>0;b--) for(a=3;a>0;a--); } void Uartinit() { SCON=0X50; TMOD=0X20; PCON=0X80; TH1=0XF3; TL1=0XF3; TR1=1; EA=1; ES=1; } void SendByte(unsigned char dat) { SBUF = dat; while(!TI); TI = 0; } void SendString(unsigned char *s) { while(*s!=' |