SlideShare a Scribd company logo
2
Most read
6
Most read
7
Most read
Interfacing Zigbee
with 8051

www.pantechsolutions.net
ZIGBEE
     • 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.



Technology beyond the Dreams™                        Copyright © 2006 Pantech Solutions Pvt Ltd.
Preface
     • Zigbee Evaluation Board
     • The low-power XBee 802.15.4 and extended-range XBee-PRO 802.15.4
       use the IEEE 802.15.4 networking protocol for fast point-to-multipoint
       or peer-to-peer networking. The XBee 802.15.4 platform features:
     • low-power point-to-multipoint/peer-to-peer networking Fast 250 kbps
       RF data rate No configuration needed for out-of-the-box RF
       communications 128-bit AES encryption.




Technology beyond the Dreams™                        Copyright © 2006 Pantech Solutions Pvt Ltd.
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 dBm



Technology beyond the Dreams™                                    Copyright © 2006 Pantech Solutions Pvt Ltd.
Features
     •   Spread Spectrum type: DSSS (Direct Sequence Spread Spectrum)
     •   Networking topology: Point-to-point, point-to-multipoint, & peer-to-peer
     •   Error handling: Retries & acknowledgements
     •   Filtration options: PAN ID, Channel, and 64-bit addresses
     •   Channel capacity:
          – XBee: 16 Channels
          – XBee-PRO: 12 Channels
     • Addressing: 65,000 network addresses available for each channel




Technology beyond the Dreams™                                 Copyright © 2006 Pantech Solutions Pvt Ltd.
Board Layout




Technology beyond the Dreams™     Copyright © 2006 Pantech Solutions Pvt Ltd.
Zigbee with Host PC

                                                                 Hell
                                                                 o!



                                2.4GHz RF
                                Communicati
                                    on


        Hell
        o!



Technology beyond the Dreams™                 Copyright © 2006 Pantech Solutions Pvt Ltd.
zigbee interface with 8051




Technology beyond the Dreams™   Copyright © 2006 Pantech Solutions Pvt Ltd.
ZIGBEE INTERFACE
                       ASSEMBLY CODE
     Write a program to transfer the message “YES” serially at 9600 baud, 8bit data, 1 stop bit interfacing
         with zigbee module.
      Do this continuously.
     Solution:
                 MOV         TMOD,#20H               ;timer 1, mode 2
                 MOV         TH1,#-3 ;9600 baud
                 MOV         SCON,#50H               ;8-bit, 1 stop bit, REN enabled
                 SETB        TR1                     ;start timer 1
     AGN:        MOV         A,#"Y"                  ;transfer "Y"
                 ACALL       XMIT
                 MOV         A,#"E"                  ;transfer "E"
                 ACALL       XMIT
                 MOV         A,#"S"                  ;transfer "S"
                 ACALL       XMIT
                 SJMP        AGN                     ;keep doing it
                                                     ;serial data transfer subroutine
     XMIT:       MOV         SBUF,A      ;load SBUF
     HERE:       JNB         TI,HERE     ;wait for last bit to transfer
                 CLR         TI                       ;get ready for next byte
                 RET




Technology beyond the Dreams™                                             Copyright © 2006 Pantech Solutions Pvt Ltd.
ZIGBEE C CODE
     // Connect the zigbee board with the controller using serial port cable
     // Connect the second zigbee module to PC using serial port cable . Execute the program the
         data is //transferred from between the zigbee modules
     #include <REG51.H>           /* special function register declarations */
     #include <stdio.h>       /* prototype declarations for I/O functions */

     void serial_init(void);
     void serial_init(void)
     {
       SCON = 0x50;           /* SCON: mode 1, 8-bit UART, enable rcvr                          */
       TMOD |= 0x20; /* TMOD: timer 1, mode 2, 8-bit reload */




Technology beyond the Dreams™                                     Copyright © 2006 Pantech Solutions Pvt Ltd.
C CODE CONTD

      TH1 = 0xFD; /* TH1: reload value for 9600 baud @ 11.0592MHz*/
       TR1 = 1;                /* TR1: timer 1 run                */
       TI = 1; void main(void)
     {
         serial_init();
         printf (" PS - PrimerC51 UART Demonnr");
         while (1)
         {
         printf ("Hello World!! nr"); /* Print "Hello World" */
         }
     }




Technology beyond the Dreams™                              Copyright © 2006 Pantech Solutions Pvt Ltd.
For More Tutorials
           www.pantechsolutions.net
           http://www.slideshare.net/pantechsolutions
           http://www.scribd.com/pantechsolutions
           http://www.youtube.com/pantechsolutions




Technology beyond the Dreams™               Copyright © 2006 Pantech Solutions Pvt Ltd.

More Related Content

PPT
single-phase-induction-motor.ppt
PPTX
Infinite bus bar in power system
PPT
Microcontroller-8051.ppt
DOC
Cyclo converters
PPTX
Single phase ac voltage controller
PPTX
Second order effects
PPT
Unijunction transistor (ujt)
PPTX
Speed control of 3 phase induction motor
single-phase-induction-motor.ppt
Infinite bus bar in power system
Microcontroller-8051.ppt
Cyclo converters
Single phase ac voltage controller
Second order effects
Unijunction transistor (ujt)
Speed control of 3 phase induction motor

What's hot (20)

DOC
PIC MICROCONTROLLERS -CLASS NOTES
PPTX
Induction motor
PDF
Embedded C programming based on 8051 microcontroller
PPTX
Inverter ppt
PPTX
Fabrication of diodes, resistors, capacitors, fe ts
PPTX
Layout & Stick Diagram Design Rules
PDF
Power Electronics - DIAC & TRIAC
PPTX
Three Phase to Three phase Cycloconverter
PPTX
Dc fed chopper
PPTX
Pulse width modulation (PWM)
PDF
Interconnect Parameter in Digital VLSI Design
PPTX
Speed Control of Synchronous Motor
PPT
Induction machines
PPTX
Vector Control of AC Induction Motors
PPTX
speed control of three phase induction motor
PPTX
R2 r dac
PPTX
Lecture3 IC fabrication process
PDF
Automatic voltage regulator(avr)
PIC MICROCONTROLLERS -CLASS NOTES
Induction motor
Embedded C programming based on 8051 microcontroller
Inverter ppt
Fabrication of diodes, resistors, capacitors, fe ts
Layout & Stick Diagram Design Rules
Power Electronics - DIAC & TRIAC
Three Phase to Three phase Cycloconverter
Dc fed chopper
Pulse width modulation (PWM)
Interconnect Parameter in Digital VLSI Design
Speed Control of Synchronous Motor
Induction machines
Vector Control of AC Induction Motors
speed control of three phase induction motor
R2 r dac
Lecture3 IC fabrication process
Automatic voltage regulator(avr)
Ad

Similar to 8051 zigbee interface (20)

PPTX
Zigbee module interface with ARM 7
PPTX
Final presentation
PDF
Eb051 30-1
PDF
Datasheet Module Wifii Xbee Series 2
PDF
RF Management Applications Using ZigBee Networks
PPTX
Zigbee based metal detecting robot to assist bomb detection and rescue team
PPTX
Zigbee based metal detecting robot to assist bomb detection and rescue team
PDF
Defcon 2011 - Penetration Testing Over Powerlines
PPTX
Wireless stepper motor control using zigbee
PDF
Flyport openPicus datasheet
PDF
ZigBee module
DOC
Project
PDF
OpenPicus FlyPort Technology Introduction
PPTX
Embedded systems by n sri prakash,unit-1
PPT
Zigbee intro v5
PDF
Mobile robotic platform to gathering real time sensory data in wireless perso...
PDF
Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009
KEY
Building a Wireless Mesh Network Temperature Sensor
PPTX
A zigbee wireless sensor network and multiple way bus communication meduim ca...
PPTX
Wireless notice board using zigbee
Zigbee module interface with ARM 7
Final presentation
Eb051 30-1
Datasheet Module Wifii Xbee Series 2
RF Management Applications Using ZigBee Networks
Zigbee based metal detecting robot to assist bomb detection and rescue team
Zigbee based metal detecting robot to assist bomb detection and rescue team
Defcon 2011 - Penetration Testing Over Powerlines
Wireless stepper motor control using zigbee
Flyport openPicus datasheet
ZigBee module
Project
OpenPicus FlyPort Technology Introduction
Embedded systems by n sri prakash,unit-1
Zigbee intro v5
Mobile robotic platform to gathering real time sensory data in wireless perso...
Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009
Building a Wireless Mesh Network Temperature Sensor
A zigbee wireless sensor network and multiple way bus communication meduim ca...
Wireless notice board using zigbee
Ad

More from Pantech ProLabs India Pvt Ltd (20)

PDF
Registration process
PPTX
Choosing the right processor for embedded system design
PPT
Brain Computer Interface
PPTX
Electric Vehicle Design using Matlab
PPTX
Image processing application
PPTX
Internet of Things using Raspberry Pi
PPTX
Internet of Things Using Arduino
PPTX
Brain controlled robot
PPTX
Brain Computer Interface-Webinar
PPTX
Development of Deep Learning Architecture
PPTX
Gate driver design and inductance fabrication
PPTX
Brainsense -Brain computer Interface
PPT
Median filter Implementation using TMS320C6745
PPT
Introduction to Code Composer Studio 4
PPT
Waveform Generation Using TMS320C6745 DSP
PPT
Interfacing UART with tms320C6745
PPT
Switch & LED using TMS320C6745 DSP
PPT
Led blinking using TMS320C6745
PPT
Introduction to tms320c6745 dsp
Registration process
Choosing the right processor for embedded system design
Brain Computer Interface
Electric Vehicle Design using Matlab
Image processing application
Internet of Things using Raspberry Pi
Internet of Things Using Arduino
Brain controlled robot
Brain Computer Interface-Webinar
Development of Deep Learning Architecture
Gate driver design and inductance fabrication
Brainsense -Brain computer Interface
Median filter Implementation using TMS320C6745
Introduction to Code Composer Studio 4
Waveform Generation Using TMS320C6745 DSP
Interfacing UART with tms320C6745
Switch & LED using TMS320C6745 DSP
Led blinking using TMS320C6745
Introduction to tms320c6745 dsp

Recently uploaded (20)

PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
Classroom Observation Tools for Teachers
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Pre independence Education in Inndia.pdf
PPTX
Cell Structure & Organelles in detailed.
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Institutional Correction lecture only . . .
PDF
Basic Mud Logging Guide for educational purpose
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
2.FourierTransform-ShortQuestionswithAnswers.pdf
01-Introduction-to-Information-Management.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
Cell Types and Its function , kingdom of life
Classroom Observation Tools for Teachers
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Pre independence Education in Inndia.pdf
Cell Structure & Organelles in detailed.
Microbial diseases, their pathogenesis and prophylaxis
Supply Chain Operations Speaking Notes -ICLT Program
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Week 4 Term 3 Study Techniques revisited.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Institutional Correction lecture only . . .
Basic Mud Logging Guide for educational purpose
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPH.pptx obstetrics and gynecology in nursing
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Anesthesia in Laparoscopic Surgery in India
102 student loan defaulters named and shamed – Is someone you know on the list?

8051 zigbee interface

  • 2. ZIGBEE • 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. Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.
  • 3. Preface • Zigbee Evaluation Board • The low-power XBee 802.15.4 and extended-range XBee-PRO 802.15.4 use the IEEE 802.15.4 networking protocol for fast point-to-multipoint or peer-to-peer networking. The XBee 802.15.4 platform features: • low-power point-to-multipoint/peer-to-peer networking Fast 250 kbps RF data rate No configuration needed for out-of-the-box RF communications 128-bit AES encryption. Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.
  • 4. 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 dBm Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.
  • 5. Features • Spread Spectrum type: DSSS (Direct Sequence Spread Spectrum) • Networking topology: Point-to-point, point-to-multipoint, & peer-to-peer • Error handling: Retries & acknowledgements • Filtration options: PAN ID, Channel, and 64-bit addresses • Channel capacity: – XBee: 16 Channels – XBee-PRO: 12 Channels • Addressing: 65,000 network addresses available for each channel Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.
  • 6. Board Layout Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.
  • 7. Zigbee with Host PC Hell o! 2.4GHz RF Communicati on Hell o! Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.
  • 8. zigbee interface with 8051 Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.
  • 9. ZIGBEE INTERFACE ASSEMBLY CODE Write a program to transfer the message “YES” serially at 9600 baud, 8bit data, 1 stop bit interfacing with zigbee module. Do this continuously. Solution: MOV TMOD,#20H ;timer 1, mode 2 MOV TH1,#-3 ;9600 baud MOV SCON,#50H ;8-bit, 1 stop bit, REN enabled SETB TR1 ;start timer 1 AGN: MOV A,#"Y" ;transfer "Y" ACALL XMIT MOV A,#"E" ;transfer "E" ACALL XMIT MOV A,#"S" ;transfer "S" ACALL XMIT SJMP AGN ;keep doing it ;serial data transfer subroutine XMIT: MOV SBUF,A ;load SBUF HERE: JNB TI,HERE ;wait for last bit to transfer CLR TI ;get ready for next byte RET Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.
  • 10. ZIGBEE C CODE // Connect the zigbee board with the controller using serial port cable // Connect the second zigbee module to PC using serial port cable . Execute the program the data is //transferred from between the zigbee modules #include <REG51.H> /* special function register declarations */ #include <stdio.h> /* prototype declarations for I/O functions */ void serial_init(void); void serial_init(void) { SCON = 0x50; /* SCON: mode 1, 8-bit UART, enable rcvr */ TMOD |= 0x20; /* TMOD: timer 1, mode 2, 8-bit reload */ Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.
  • 11. C CODE CONTD TH1 = 0xFD; /* TH1: reload value for 9600 baud @ 11.0592MHz*/ TR1 = 1; /* TR1: timer 1 run */ TI = 1; void main(void) { serial_init(); printf (" PS - PrimerC51 UART Demonnr"); while (1) { printf ("Hello World!! nr"); /* Print "Hello World" */ } } Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.
  • 12. For More Tutorials www.pantechsolutions.net http://www.slideshare.net/pantechsolutions http://www.scribd.com/pantechsolutions http://www.youtube.com/pantechsolutions Technology beyond the Dreams™ Copyright © 2006 Pantech Solutions Pvt Ltd.