student52
Junior Member level 2
Hi all,
I have programmed 8051 to receive data serially but I couldn't see the data getting copied in the simulator. Please help here is the code I have done
MOV TMOD,#20H
MOV TH1,#-3
MOV SCON,#50H
SETB TR1
up: JNB RI,up
MOV A,SBUF
MOV P1,A
CLR RI
SJMP up
end
As per the code data should be found in P1. But it is not. Kindly help!!!!!!!!!!!!!!
Thanks in Advance,
Regards.
I have programmed 8051 to receive data serially but I couldn't see the data getting copied in the simulator. Please help here is the code I have done
MOV TMOD,#20H
MOV TH1,#-3
MOV SCON,#50H
SETB TR1
up: JNB RI,up
MOV A,SBUF
MOV P1,A
CLR RI
SJMP up
end
As per the code data should be found in P1. But it is not. Kindly help!!!!!!!!!!!!!!
Thanks in Advance,
Regards.