Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Tarang RF module Interfacing with 8052

Status
Not open for further replies.

aameer

Full Member level 4
Full Member level 4
Joined
May 12, 2010
Messages
216
Helped
33
Reputation
64
Reaction score
32
Trophy points
1,308
Location
Bangalore
Visit site
Activity points
2,503
Hello friends,

I am trying to interface tarang RF module with AT89S52.

But i am facing a weird problem...
the 2 zigbee module are working fine on 2 hyper terminal windows.
i connect rs232 wire to micro controller it is also working fine
but when i connect 1 zigbee module to micro controller side and other to pc.
i am able to receive only from micro controller to PC but i cannot transmit data to micro controller.
when i type something in hyper terminal is sending junk value back to PC
I am confused where is the problem
Zigbee modules are working fine ,program is also fine


This is the code

Code:
#include<Reg52.h>
sbit led=P1^0;
unsigned char value;
void main() // main function
{
  TMOD=0x20;
  SCON=0x50;
  TH1=0xfd;
  TR1=1;
  SBUF='A';
while(TI==0);
TI=0;
led=0;
while(1)
{
while(RI==0);
value=SBUF;
RI=0;
if(value=='A')
  led=1;
else
 led=0;
}
 

thanks anjalinidhuna...but there was incomplete i did all that things.but still i am recieving unknown value..........
can any one else please..its urgent
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top