This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

code for connecting two 8051 each to AT-XTR-903-A9

I would be so greatful if anyone could help me in providing me a code for the following situation.

I have two 8051 micros each connected to XTR-903 Transceiver. The freq. used is 433MHz and baudrate is 9600. I have managed to write an assembly code to Transmit from one micro and receive on the other micro.
The problem i'm facing now is when I want to transmit and rceieve on each micro, that is when the first micro finishes transmitting, I need it to switch to receiving mode and vice versa and when the second micro receives it should switch itself to transmit mode and vice versa
I tried to have a button and an LED connected to each micro so that when button1 is pressed, micro1 sends a character "A" for example to Micro2 which turns on an LED.
Then when button2 which is attached to micro2 is pressed, micro2 would send a character "A" to micro1 which then switches an LED on micro1 side and so on.
Kindly, if anyone can help would be so much appreciated.

Thanks
Amjed

0