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; }