pratheeshprm143
Newbie level 6
Hai,
I have a pair of zigbee (X bee), when I am interfacing I hve the followin g problem.
1.When tx is my pc and receiver is 89c51 the o/p is ok and reverse is also ok.
2.When both tx and rx are 89c51 o/p dosen't get.
I have no doubt on Xbee bcoz both (Tx & Rx) are working well.
Also 89c51 (Tx & Rx) are good with pc communication.
But when interfacing with two 89c51 Xbee o/p dosen't occur.
Here is my program for Tx and Rx.
program for receiver........
ORG 00H
AJMP MAIN
ORG 30H
MAIN: MOV SCON,#50H
MOV TMOD,#20H
MOV TH1,#-3
CLR RI
SETB TR1
BACK: JNB RI,$
MOV A,SBUF
MOV P2,A
CLR RI
SJMP BACK
END
program for transmitter.............
ORG 00H
AJMP MAIN
ORG 30H
MAIN: MOV SCON,#50H
MOV TMOD,#20H
MOV TH1,#-3
SETB TR1
SETB P2.0
MOV A,#00H
HERE: JB P2.0,HERE
INC A
MOV SBUF,A
H: JNB TI,H
CLR TI
JNB P2.0,$
SJMP HERE
END
I used 9600 baud and 11.0592Mhz with two 89c51.
please help me....
Thanks
I have a pair of zigbee (X bee), when I am interfacing I hve the followin g problem.
1.When tx is my pc and receiver is 89c51 the o/p is ok and reverse is also ok.
2.When both tx and rx are 89c51 o/p dosen't get.
I have no doubt on Xbee bcoz both (Tx & Rx) are working well.
Also 89c51 (Tx & Rx) are good with pc communication.
But when interfacing with two 89c51 Xbee o/p dosen't occur.
Here is my program for Tx and Rx.
program for receiver........
ORG 00H
AJMP MAIN
ORG 30H
MAIN: MOV SCON,#50H
MOV TMOD,#20H
MOV TH1,#-3
CLR RI
SETB TR1
BACK: JNB RI,$
MOV A,SBUF
MOV P2,A
CLR RI
SJMP BACK
END
program for transmitter.............
ORG 00H
AJMP MAIN
ORG 30H
MAIN: MOV SCON,#50H
MOV TMOD,#20H
MOV TH1,#-3
SETB TR1
SETB P2.0
MOV A,#00H
HERE: JB P2.0,HERE
INC A
MOV SBUF,A
H: JNB TI,H
CLR TI
JNB P2.0,$
SJMP HERE
END
I used 9600 baud and 11.0592Mhz with two 89c51.
please help me....
Thanks