Monday 23 November 2015

HOW TO INTERFACE ZIGBEE USING PIC 16f877a AND PIC18F4520

ZIGBEE • 
Zigbee module is connected with usart tx or rx pin ,from that we can  send data or receive data  


ZigBee is a specification for a suite of high level communication protocols using small, low-power digital radios based on the IEEE 802.15.4-2003 standard for wireless personal area networks (WPANs) ZigBee is a low data rate, two-way standard for industrial and domestic automation networks. • It uses small very low-power devices to connect together to form a wireless control web. The standard supports 2.4GHz unlicensed radio bands. • Popular name for the IEEE 802.15.4 standard for an extremely low power, and low bit rate wireless PAN technology, Zigbee is designed for wireless automation and other lower data tasks, such as smart home automation and remote monitoring.

Specifications 
 Module – Xbee | Xbee PRO – Specifications – Power output:: 1mW (+0 dBm) International version – Indoor/Urban range: • Up to 100 ft (30 m) • Up to 1 mile (1.6 km) RF LOS (Xbee PRO) – Outdoor/RF line-of-sight range: Up to 300 ft (90 m) – RF data rate: 250 Kbps – Interface data rate: Up to 115.2 Kbps – Operating frequency: 2.4 GHz – Receiver sensitivity: -92 dBmTechnology .


code for uart:

#include<pic.h>
void pic_init();
void uart_init();
void tx(unsigned char);
void string(const char *q);
unsigned char rx();

void main()
{
int a,b,c;
pic_init();
uart_init();
string("R.DINESH KANNAN");
while(1);
}
void pic_init()
{
TRISC7=1;
TRISC6=0;
}
void uart_init()
{
TXSTA=0X24;
RCSTA=0X90;
SPBRG=25;
}
void tx(unsigned char byte)
{
int i;
TXREG=byte;
while(!TXIF)
for(i=0;i<=400;i++);
}
unsigned char rx()
{
while(!RCIF)
return RCREG;
}
void string(const char *q)
{
while(*q)
{
tx(*q++);
}
}


for more details click below link....
HOW TO INTERFACE ZIGBEE USING PIC 16f877a and PIC18F4520

No comments:

Post a Comment