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

Printf problem in PK51

I have written a program just to print the string "Hello World". My program looks like below

void main(void)
  {
     SCON = 0x50;
     TMOD = 0x20;
     TH1  = 0xFD;
     TL1  = 0x00;
     TR1  = 0x01;

     SBUF=' ';
     printf("\n Hello World");
     TI = 0;

     Delay(1000);

     while(1);
  }

This program runs well with uVision 2.0. I can get the Hello World in the serial port.

But the same program if i run in uVision 3 i.e PK51 the serial port is running infinite times.

I dont know the reason? Can anybody tell me what might the problem.

0