I need to transmit a string of message between two Radio frequency transmitter. The message will be stored a microcontroller (e.g. 8051). How to go about writing a program for it and how to interface between the micrcontroller and the transmitters. I am still an amauteur when comes to embeded programming. Any source code or info on this ?
Alan, it's really quite easy to solve your problem. Let me give you a few pointers. Most of the 8051 family microcontrollers are equipped with a serial port. The micro itself has two pins named TxD and RxD (Transmit and Receive). If you connect these two pins to the transmitter and receiver, you're halfway done! Now you have to set up the serial port, and write out whatever you want. This is done by printf() eg. printf("Hello") writes the string "Hello" to the transmitter. This is just a quick overview. If you're interested, let me know what Baud rate you want to use, and I'll send you a sample program.
Thanks for your reply. The buad rate is not an issue as I just need to send maybe five to six digits of numbers over on the transmitter side. On the receiving end , there will be a look-up table to compare the message it received. If the message matches the codes in the look-up table, some action will be taken (e.g announcement). I would appreciate if you could send me a sample program to give me a headstart to my project. Pls send to fowler10@singnet.com.sg. Thank You.
You can find sample serial IO code in the Support section of this site, and in the Examples folder in your C51 installation. The fact that there is an RF portion in the serial link is of no consequence whatsoever. (in fact, for debugging, you should start with a direct-connected link, before introducing the vagaries of RF...)
View all questions in Keil forum