/*
developed by S4silver
license type - open source
created on - 11/12/2014
modified on - 11/14/2014
modification details - refactored
developer - Frank Hust Jincson
contact mail id - silverembeddedsolutions@gmail.com
web link - http://s4silver.blogspot.in/p/programmers-colony.html
*/
#include <REGX51.H>
int main()
{
unsigned int i;
unsigned char c;
SCON=0x50;
TMOD=0x20;
TH1=-6; // 0xFD=253 9600
TR1=1;
SBUF='v';
while(!TI);
TI=0;
while(1)
{
while(RI==0);
c=SBUF;
RI=0;
SBUF=c;
while(!TI);
TI=0;
}
}
No comments:
Post a Comment