Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
void initUART(void) {
SCON=0x53; //serial port as regular UART
TH1=0xFD; //9600 baud with 11.059 MHz xtal
TL1=0xFD;
TR1=1; //start baid rate generator
}
// serial character input function
char getchar(void);
// serial character output function
void putchar(char c);
// serial string output function
void puts(const char *string);
// serial string input function
char *gets (char *string, /* string to read */
int len); /* maximum characters to read */