Skip to content

Instantly share code, notes, and snippets.

@AmitThakur
Last active August 29, 2015 14:04
Show Gist options
  • Save AmitThakur/8718edd8e42da892d951 to your computer and use it in GitHub Desktop.
Save AmitThakur/8718edd8e42da892d951 to your computer and use it in GitHub Desktop.
Editsworld
#include<reg51.h>
void main()
{
char mybit;
TMOD=0x20;
TH1=0xFD;
TR1=1;
SCON=0x50;
while(1) {
P2=SBUF;
while(RI==0);
RI=0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment