We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
Well, what is happening is that when the transceiver on micro1 is in transmitting mode and ready to switch to receive mode, it looks like the transceiver on the other micro2 must first switch to transmit mode first before the transceiver on micro1 changes to receive mode. That is to change from one mode to another the two transceivers must go through the transition where both be in transmit mode first then a change of mode can take place and that what is making it difficult. I wish someone who had experience with this type of transceiver from ABACOM could help us in writing the assembly code with the 8051.