;---------------------------------------
; Reveive Data
;---------------------------------------
RcvData:
MOV A, SBUF
Out1: CJNE A, #00110001b, Out2 ;Check ASSII code of 1
MOV P0, #11000000b ;Display '1' to 7segment
AJMP Dly
Out2: CJNE A, #00110001b, Out3 ;Check ASSII code of 2
MOV P0, #10110110b ;Display '2' to 7segment
AJMP Dly
Out3: CJNE A, #00110000b, Out4 ;Check ASSII code of 3
MOV P0, #11100110b ;Display '3' to 7segment
AJMP Dly
Out4: CJNE A, #00110001b, OutErr ;Check ASSII code of 4
MOV P0, #11001010b ;Display '4' to 7segment
AJMP Dly
OutErr: MOV P0,#00111111b ;Display 'E' to 7segment
AJMP Dly
Dly:
; CALL Delay
; Add your delay here if you want
LJMP EvtChk
;---------------------------------------
; End
;---------------------------------------
END