Pages

Powered By Blogger

Saturday, 11 June 2011

Serial Rx


#include<reg51.h>

void main()
{
unsigned char z;
TMOD=0x20;
TH1=0xFD;
SCON=0x50;
TR1=1;
while(1)
{
while(RI==0);
z=SBUF;
P1=z;
RI=0;
}
}

No comments: