Back to the 2020 paper

Module 5: External Communication Interface

20207m

Explain the interfacing of Bluetooth and Zigbee with the 8051 microcontroller.

Worked SolutionAI Assisted

Interfacing Bluetooth and Zigbee with 8051

Both use UART (RS232 level via MAX232 or 3.3V logic via voltage divider) on P3.0/P3.1.

Bluetooth (e.g., HC-05):

  • VCC 5V/3.3V, GND, TX→8051 RxD (P3.0), RX→8051 TxD (P3.1) via divider, EN/KEY for AT mode.
  • Config 9600 baud (TH1=0FDH). Send AT commands via serial: AT+NAME, AT+PIN.
  • Data: Write SBUF, poll TI; receive interrupt RI. Add 3.3V regulation if needed.

Zigbee (e.g., XBee S2):

  • Pins: VCC 3.3V, GND, DIN→TxD, DOUT→RxD, plus CTS/RTS optional.
  • Uses 802.15.4, mesh. Config via X-CTU: PAN ID, Channel, MY/DH/DL addresses.
  • UART frames same as above; API vs AT mode. Baud 9600/115200.
  • For 5V 8051, level shift 5V→3.3V on DIN.

Software common: Initialize serial mode 1, Timer1 baud, then MOV SBUF,A transmit to module; module handles wireless to peer. Receive bytes via ISR and process.

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.