You have no items in your shopping cart.

Subtotal: 0.00

How to Interface Zigbee with 8086 Lab Trainer Kit

8086 trainer board

The 8086 trainer board is specifically designed to help students to master the required skills in the area of embedded systems. The kit is designed in such way that all the possible features of the microprocessor will be easily used by the students. MICROPROCESSOR offers more advantages than conventional discrete hardwired logic circuits. The major advantage is its programmability to adapt to different environment and in addition it reduces the PCB space

ZigBee

ZigBee is a specification for a suite of high level communication protocols using small, low-power digital radios based on an IEEE 802 standard for personal area networks.

Digi ZigBee

The Digi Xbee 802.15.4 modules are the easiest to use, most reliable and cost-effective RF devices we've experienced. The 802.15.4 Xbee modules provide two friendly modes of communication - a simple serial method of transmit/receive or a framed mode providing advanced features. These modules can communicate point to point, from one point to a PC, or in a mesh network.



Fig. 1 Block diagram of Zigbee

Interfacing Zigbee

Fig. 1 shows how to interface the Zigbee with microprocessor. The Xbee modules work at the 2.4 GHz frequency which means smaller board and antenna size. Xbee modules have the ability to transmit Digital, PWM, Analog or Serial RS232 signals wirelessly. To communicate over UART or USART, we just need three basic signals which are namely, RXD (receive), TXD (transmit), GND (common ground). So to interface UART with 8086, we just need the basic signals.



Fig. 1 Interfacing Zigbee to Microprocessor

Interfacing Zigbee with 8086

We now want to interface the ZigBee module with 8086 trainer board for wireless controlling application through UART0. The data communication is done in RF communication by using the ZigBee module through MAX232 (refer serial interfacing with 8086). The serial data from the Zigbee receiver is taken by using the Serial Interrupt of the controller. +5V and ground is connected to provide power to the module. While TX and RX pin is connected for communication.

Pin Assignment with 8086



 

UART DB-9 Connector

8251

 

Serial Port Section

UART0

TXD-0

19

    

RXD-0

3

 



Circuit Diagram to Interface Zigbee with 8086





Assembly Program to transmit data in 8086

****************************************************************************************************

Title : Program to transmit a character from 8086 through zigbee

******************************************************************************************************

1100

Be 00 15

MOV SI,1500H

1103

B0 36

MOV AL,36H

1105

BA 06 FF

MOV DX,FF06

1108

EE

OUT DX,AL

1109

B0 40

MOV AL,40H

110B

BA 04 FF

MOV DX,FF04

110E

EE

OUT DX,AL

110F

B0 01

MOV AL,01H

1111

BA 04 FF

MOV DX,FF04

1114

EE

OUT DX,AL

1115

B1 05

RELOAD: MOV CL,05H

 1117

BA 12 FF

CHECK: MOV DX,FF12

111A

EC

                IN AL,DX

111B

24 04

AND AL,04H

111D

74 F8

JZ CHECK

111F

8A 04

MOV AL,[SI]

1121

BA 10 FF

MOV DX,FF10

1124

EE

OUT DX,AL

1125

46

            INC SI

1126

3C 3F

CMP AL,3FH

1128

75 EB

JNZ RELOAD

112A

FE C9

DEC CL

112C

75 E9

JNZ CHECK

112E

CD 02

INT 02

 



In 1500h memory location enter the data to be sent serially

1500     41h

Testing the ZigBee with 8086

Give +9V power supply to 8086 Trainer board connect the +5V adapter with ZigBee module which is connected with the 8086 Trainer board. There are two ZigBee modules are used. One is connected with 8086 Trainer board UART0; other one is connected with PC.

First connect the serial cable between 8086 Trainer board & PC. Then open the Hyper Terminal screen, select which port you are using and set the default settings. Now the screen should show some text messages. If the messages are correctly displayed in Hyper Terminal, then only connect the ZigBee modules in 8086 Trainer board UART0 & PC.

Pc side Zigbee module setting





Kit side Zigbee module setting