How to interface Bluetooth with 8086 Lab Trainer Kit
Call for Price
Microcontroller BoardsTransmit & receive the data from host system to 8086 Trainer Board by using Bluetooth module through 8251 interface. The serial data is taken from or sent to the host system by using Bluetooth module through MAX232
Description
8086TRAINER KIT
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
Bluetooth
Bluetooth is a proprietary open wireless technology standard for exchanging data over short distances from fixed and mobile devices, creating personal area networks (PANs) with high levels of security. Bluetooth technology allows electronic devices to communicate wirelessly.
Interfacing Bluetooth
Fig. 1 shows how to interface the Bluetooth with microprocessor. Bluetooth technology handles the wireless part of the communication channel; it transmits and receives data wirelessly between these devices. It delivers the received data and receives the data to be transmitted to and from a host system through a host controller interface (HCI). The most popular host controller interface today is either a UART or a USB. Here, I will only focus on the UART interface; it can be easily show how a Bluetooth module can be integrated on to a host system through a UART
Fig. 1 Interfacing Bluetooth to Microprocessor
Interfacing Bluetooth with 8086
We now want to transmit & receive the data from host system to 8086 trainer board by using Bluetooth module through 8251 interface. The serial data is taken from or sent to the host system by using Bluetooth module through MAX232
Pin Assignment with 8086
|
UART DB-9 Connector |
8251
|
Serial Port Section |
UART0 |
TXD-0 |
19 |
![]() |
RXD-0 |
3 |
Circuit Diagram to Interface Bluetooth with 8086
Assembly Program to transmit data in 8086
**************************************************************************************************************
Title : Program to transmit a character from 8086 through bluetooth
***************************************************************************************************************
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 Bluetooth with 8086
Give +9V power supply to 8086 trainer board; connect the 5V adapter with Bluetooth module which is connected with the 8086 trainer board. There are two Bluetooth modules are required. One is connected with 8086 trainer board 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 Bluetooth modules in 8086 trainer board.
If you are not reading any data from UART, then you just check the jumper connections & just check the serial cable is working.
Pc side Bluetooth module setting
Kit side Bluetooth module setting
Source Code
The Interfacing Bluetooth module with 8086 program is very simple and straight forward, which send a message to mobiles from 8086 trainer through Bluetooth module by using UART. Some delay is occurring when a single data is sent to mobile through UART.
Additional information
Weight | 0.000000 kg |
---|
Reviews
There are no reviews yet.