You are currently viewing How to Interface Bluetooth with 8051 Lab Trainer Kit

How to Interface Bluetooth with 8051 Lab Trainer Kit

Spread the love

This blog post summarize how to interface Bluetooth with 8051 using assembly programming

PS-TRAINER-8051 trainer kit is proposed to smooth the progress of learning and developing designs of MCU from Intel and NXP. It has the facility to connect PC’s 101/104 Keyboard, to enter user programs in Assembly languages. Serial communication achieved using 8051. It also supports C & assembly language in standalone kit (P89V51RD2). It’s designed as to facilitate On-board Programmer for NXP 8051 MCU through ISP on serial port.

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 with 8051

Fig. 1 shows how to interface the Bluetooth with microcontrollerBluetooth 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 connection.

Interface Bluetooth with 8051

We now want to transmit & receive the data from host system to PS-2 8051 Trainer by using Bluetooth module through UART0. The serial data is taken from or sent to the host system by using Bluetooth module through MAX232 into the SBUF register of 8051 microcontroller (refer serial interfacing with 89V51RD2). The serial data from the host device is taken by using the Serial Interrupt of the 8051 controller. The UART0 pin lines are used to transmit & receive operations in PS-2 8051 Trainer

Pin assignment with 8051

Circuit diagram to Interface Bluetooth with 8051

Assembly program to interface Bluetooth with 8051

MEMORY ADDRESSOPCODEMNEMONICS
850075,89,21MOV TMOD,#21
850375 8D FDMOV TH1,#FD
 850675 98 52MOV SCON,#52
8509D2 8ESETB TR1
850B74 41H:MOV A,#41
850DB1 11ACALL TXMT
850F80 FASJMP H
851130 99 FDTXMT:JNB TI,TXMT
8514 C2 99CLR TI
8516F5 99MOV SBUF,A
851822RET

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.