ORL PCON, #0x80 ; SET DOUBLE BAUD RATE
ANL TMOD, #0x0F ; CLEAR ALL TIMER1 BITS IN TMOD
ORL TMOD, #0x20 ; TIMER1 = 8 BIT AUTO RELOAD
CLR TR1 ; MAKE SURE TIMER1 ISN'T RUNNING
CLR TF1
MOV A, #253
MOV TH1, A ; SET TIMER1 RATE
MOV TL1, A
MOV SCON, #0x50 ; CONFIG SERIAL PORT
SETB TR1 ; START TIMER1
MOV A,#'x'
LCALL COUT
SJMP *
;**************************************************************
; PRINTS CHARACTER IN ACC TO SERIAL PORT
;**************************************************************
COUT: MOV SBUF, A
JNB TI, *
CLR TI ;CLR TI AFTER SENDING
RET