This code is not working sir.
I have code as
org 0h
AJMP BEGIN
ORG 40h
BEGIN : MOV SCON,#01010000B
MOV TH1,#0FDH
MOV TMOD,#00100000B
MOV P2,#00H
MOV A,#00H
SETB TR1
START: JNB RI,START
MOV A, SBUF
MOV P2, A
CLR RI
AJMP START
END
this code is not working. Data is coming on rxd pin of port 3 .i checked by cro... All bits are coming correctly..
- - - Updated - - -
In starting there is not org 0h,
there is ORG 0.
- - - Updated - - -
Sir you have used
EA =1 AND
ES=1
. Why you used this i know this is ie register for intrpt . What if i do not use this in my programming for only receiving data. I have not clear cut about this.