Introduction - If you have any usage issues, please Google them yourself
void UART_init (){// to initialize the serial port and baud rate generator SCON = 0x58// Select the serial work, open the receiver to allow TMOD = 0x21// Timer 1 in Mode 2, Timer 0 work in a manner 1TH1 = 0xfd// to achieve 9600 baud rate (system clock 11.0592MHZ) TR1 = 1// start the timer T1ET1 = 0 ES = 1// allow the serial port interrupt PS = 1// Design of Serial Port Interrupt Priority class EA = 1// Single-chip Interrupt Enable)