We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
Looks like the UART is not correctly initialized (and this is now detected under uVision3). Take a look the classic Hello example.