I need to transmit a string of data between two RF modules. The data will store into 8051. How to write a program to interface the microntroller and transmitter using embeded programming? Beside that how to write a program to send out the data.
http://www.keil.com/forum/docs/thread6623.asp
over there dont mention much about the program. we have done some of the part but we not sure is it working or not.
"we have done some of the part but we not sure is it working or not." What have you done so far? How did you plan to test it? What problem(s) are you having in deciding whether it's working or not?
1)As it is wireless, we are using the procotol analyser to check the string of data we send to the other RF module whether does it match the data we send out from the program.e.g 0x88. As such, when we send out the data, we suspect that the RF module is not transmitting therefore what are the ways we can check that it is transmitting. 2)On the other hand, it seem that we cant receive as well.FYI, we used the procotol anaylser to view the data. As such, over at the receiving module, we cant see the data at all. What could be the possible errors? 3)TCON = 0xCC; /* Set Timer 1 as counter*/ SCON = 0x52; /* 8 bit UART, SM2 =1, serial reception enabled.*/ CKCON = 0x00; /* set to 6 clk mode*/ ES = 1; /* Enable UART interupt*/ TH1 = 0xFA;/* Set baud rate to 19.2k baud*/ PCON = 0x80; /* Set SMOD =1*/ TMOD = 0x20; /* TImer 1, 8 bit auto-reload Timer*/ T0 = 0x00; /* Enabled AUX serial port*/ PSW =0x00; the above mention program are some of the procotol we set..therefore im wondering whether is it correct or not?
sorrie to disturb you again. We did a another test to make sure our SBUF for the receive and transmit is working by using a Null Moderm connection. Now we are sure there is nothing wrong with the SBUF in 80C251. Now we think the main problem is the RF module unable to communicate to each other. We using 434 MHz channel to communicate. Can u give any sugguestion to help us. Thank...
"We did a another test to make sure our SBUF for the receive and transmit is working by using a Null Moderm connection. Now we are sure there is nothing wrong with the SBUF in 80C251." Very good - you should always test with a wired link first before bringing in the wireless modules and all the vagaries of RF links. " Now we think the main problem is the RF module unable to communicate to each other" You are now beyond the scope of this forum. This forum is for discussing Keil tools - you've established that this bit is working. You need to contact the module supplier regarding problems with the modules. Anyhow, you haven't stated what module you're using - how can anyone help without that basic information?!