Hello, this is my 1st experience with a microcontrroller. But i am aware of the basics of it. I need some information on how to interface a 8051 with a simple RF module. I just want my transmitter to transmit a small code,say for eg. 101 or 100. I came to know that these modules costs around $5-$10.. the range which i prefer can be a few meters..
Wouldn't that very much depend on what module you have? The first step is for you to figure out what module, and to get the datasheet for that module. That will tell you the operating parameters, and what signals it will accept and you can then figure out what processor pins that may be electrically compatible and suitable for the required timing.
If the module supports serial data and takes a signal with the same logic level as your processor, then it might be a good idea to use the UART. Or maybe generate the data "manually" using a digital output and catch it using a digital input? This would put limits on how fast you can send, but the cheap modules normally already have hard limitations in what baudrate you can transfer with and get a reasonably reliable transfer.
See: www.8052.com/.../160143