MPMC PRJ Report 108122090, 108122092
MPMC PRJ Report 108122090, 108122092
MPMC PRJ Report 108122090, 108122092
Electronics and
Communications Engineering
ECLR13 MICROPROCESSOR AND MICROCONTROLLER
LABORATORY
SUBMITTED TO:
Theory -
Components:
8051 is an 8 – bit Microcontroller i.e. the data bus of the 8051 Microcontroller
(both internal and external) is 8 – bit wide. It is a CISC based Microcontroller with
Harvard Architecture (separate program and data memory).
Since the basic layout of a microcontroller includes a CPU, ROM, RAM, etc. the
8051 microcontroller also has a similar layout. The following image shows a brief
layout of a typical 8051 Microcontroller.
8051 Microcontroller Features
PIN CONFIGURATION -
• 1-Pin1 (Ground/Source Pin): This is a GND pin of display, used to connect the GND
terminal of the microcontroller unit or power source.
• 2-Pin2 (VCC/Source Pin): This is the voltage supply pin of the display, used to
connect the supply pin of the power source.
• 3-Pin3 (V0/VEE/Control Pin): This pin regulates the difference of the display, used
to connect a changeable POT that can supply 0 to 5V.
• 4-Pin4 (Register Select/Control Pin): This pin toggles among the command or data
register, used to connect a microcontroller unit pin and obtains either 0 or 1(0 = data
mode, and 1 = command mode).
• 5-Pin5 (Read/Write/Control Pin): This pin toggles the display among the read or
writes operation, and it is connected to a microcontroller unit pin to get either 0 or 1
(0 = Write Operation, and 1 = Read Operation).
• 6-Pin 6 (Enable/Control Pin): This pin should be held high to execute the Read/Write
process, and it is connected to the microcontroller unit & constantly held high.
• 7-Pins 7-14 (Data Pins): These pins are used to send data to the display. These
pins are connected in two-wire modes like 4-wire mode and 8-wire mode. In 4-wire
mode, only four pins are connected to the microcontroller unit like 0 to 3, whereas
in 8-wire mode, 8-pins are connected to microcontroller unit like 0 to 7.
• 8-Pin15 (+ve pin of the LED): This pin is connected to +5V
• 9-Pin 16 (-ve pin of the LED): This pin is connected to GND.
Circuit Diagram:
Embedded C Program
//CODE of lcd interfacing with 8051 microcontroller
RESULT -
➢ BLUETOOTH ROBOT -
➢ MOVING FORWARD –
➢ MOVING BACKWARD-
➢ MOVING LEFT -
➢ MOVING RIGHT -
➢ STOP