This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

serial communication problem

sir.,
i wrote the following code in keil compiler., but eventhough i didnt specified while loop.,the code is executing in infinite loop. may i know y ?

my code:

#include <reg51.h>

void main()

{

TMOD = 0x20;
SCON = 0x50;
TH1 = 0XFD;
TR1 = 1;
TI = 1;
printf ("Hello World\n\r");
TI=0;
}

0