Arvind Electrical
Pages
Home
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:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment