I want to interface with my at89s52 controller..i connected the data pin of the transmitter module to the tx pin of the controller and similarly for the receiver i connected the data pin of the receiver module to the rx pin..i used serial transmission code..but i am not getting any output at the receiver..am i supposed to encode the data using manchester?if so, how to do it..?
Not sure what you mean by transmit and receive sections?
Do you have two arduinos?
From the look of the code you are not using an arduino at all because that is not the way you write arduino code. So what is the physical setup.
i am using 2 microcontrollers...not arduino's.if i am going to use arduino the code complexity will get reduce....i wil use arduino library...all i want to know is if i want to send data using the above module am i supposed to do encoding of data even if the data going to be transmitted is a '1' to make the led on the receiver side on..hope u got my question??
No it should work as long as you are sending an alternating 0 and 1 that pattern should be repeated at the receiver providing it is not too fast. It depends on the transmitter what baud rate it can cope with normally it is less than 9600 baud.
It will not cope with a constant logic level but aysink should have start and stop bits and so should be OK.