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.

Zigbee communication (at89s52+zigbee)

Status
Not open for further replies.

regin

Junior Member level 1
Joined
Oct 11, 2011
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,430
HI,

i wish to receive data from keyboard and send to controller via zigbee technology.
i am able to transmit the data ,but failed to receive.

please provide embedded c code for this interfacing.


parts of code i got are,


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
unsigned char c,f;      //for receiving character from keyboard
while(1)
{
c=_getchar();
f=putchar(c);
}
 
 
 
void serial_init()  //SERIAL INITIALIZATION
{
TMOD=0X20;
SMOD=0X50;
TH1=1;
TR1=1;
}
 
unsigned char temp,k; // serial receiving 
while(RI==0)
{
temp=sbuf;
f=temp;
RI=0;
}




these three piece of code are collected from net.
i am a beginner please help to work on this.
 
Last edited by a moderator:

Does your zigbee configured correctly?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top