SlideShare uma empresa Scribd logo
1 de 14
LCD INTERFACING
USING 8051
MICROCONTROLL
ER
In This Project
• We have made LCD interfacing using
8051 microcontroller .
• We have used :-
• 8051 as CPU.
• LCD Display of 2*16 characters for
displaying “ ENTER PASSWORD “
• Basically the circuit has :-
• 1. 8051 IC
• 2. DISPLAY UNIT
• 3. POWER SUPPLY
List of Components Used
Sr. no Equipment Quantity
1 IC- AT89C51 μC 1
2 5V-POWER
SUPPLY(ADAPTER)
+DC CONNECTOR
1
3 BREAD BOARD 1 or 2
4 SOLDERING IRON 1
5 CRYSTAL(11.059MHz
)
1
6 CAPACITORS(33pf) 2
7 PUSH BUTTON
SWITCH
1
8 8.2 KΩ RESISTOR 1
9 560 Ω RESISTOR 1
10 LED 1 or 2
11 16×2 LCD DISPLAY 1
12 10K
POTENTIOMETER(to
1
LCD Interfacing With 8051
LCD Interfacing
• Liquid Crystal Displays (LCDs)
• cheap and easy way to display text
• Various configurations (1 line × 20 characters, 2 lines
×16 characters ).
• The display has two register
– command register
– data register
• By RS you can select register
• Data lines (DB7-DB0) used to transfer data and
commands
Alphanumeric LCD Interfacing
• Pinout
– 8 data pins D7:D0
– RS: Data or Command
Register Select
– R/W: Read or Write
– E: Enable (Latch data)
• RS – Register Select
– RS = 0 → Command Register
– RS = 1 → Data Register
• R/W = 0 → Write , R/W = 1 → Read
• E – Enable
– Used to latch the data present on the data pins.
• D0 – D7
– Bi-directional data/command pins.
– Alphanumeric characters are sent in ASCII format.
E
R/W
RS
DB7–DB0
LCD
controller
communications
bus
Microcontroller
8
LCD Module
LCD Commands
• The LCD’s internal controller can accept several
commands and modify the display accordingly.
These commands would be things like:
– Clear screen
– Return home
– Decrement/Increment cursor
• After writing to the LCD, it takes some time for it to
complete its internal operations. During this time, it
will not accept any new commands or data.
– We need to insert time delay between any two commands or
data sent to LCD
Pin No: Name Function
1 VSS This pin must be connected to the ground
2 VCC Power supply (+5V )
3 VEE Power supply source to control contrast
4 RS Register select,
RS=0 to select command register
RS=1 to select data register
5 R/W Read or write
R/W =0 for write
R/W=1 for read
6 E Enable
7 DB0 8 bit Data bus
8 DB1 8 bit Data bus
9 DB2 8 bit Data bus
10 DB3 8 bit Data bus
11 DB4 8 bit Data bus
12 DB5 8 bit Data bus
13 DB6 8 bit Data bus
14 DB7 8 bit Data bus
15 LED+ Back light LED+
16 LED- Back light LED-
Command Codes
LCD Addressing
CIRCUIT DIAGRAM
Working Of Project
• The 220V AC supply is converted into 5
Volts by using the adapter power supply
section.
• After supplying power to the circuit, it
works according to the programming done
in 8051.
Algorithm of LCD Programming
using 8051
Algorithm to send data to LCD:
1. Make R/W low
2. Make RS=0; if data byte is command
RS=1; if data byte is data (ASCII value)
3. Place data byte on data register
4. Pulse E (HIGH to LOW)
5. Repeat the steps to send another data byte

Mais conteúdo relacionado

Mais procurados

Interfacing adc
Interfacing adcInterfacing adc
Interfacing adc
PRADEEP
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
Dr.YNM
 
Addressing mode and instruction set using 8051
Addressing mode and instruction set using 8051Addressing mode and instruction set using 8051
Addressing mode and instruction set using 8051
logesh waran
 

Mais procurados (20)

Interfacing adc
Interfacing adcInterfacing adc
Interfacing adc
 
8051 MICROCONTROLLER
8051 MICROCONTROLLER 8051 MICROCONTROLLER
8051 MICROCONTROLLER
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
Timer counter in arm7(lpc2148)
Timer counter in arm7(lpc2148)Timer counter in arm7(lpc2148)
Timer counter in arm7(lpc2148)
 
Introduction to ARM LPC2148
Introduction to ARM LPC2148Introduction to ARM LPC2148
Introduction to ARM LPC2148
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
Addressing mode and instruction set using 8051
Addressing mode and instruction set using 8051Addressing mode and instruction set using 8051
Addressing mode and instruction set using 8051
 
8051 microcontroller and it’s interface
8051 microcontroller and it’s interface8051 microcontroller and it’s interface
8051 microcontroller and it’s interface
 
Serial Peripheral Interface
Serial Peripheral InterfaceSerial Peripheral Interface
Serial Peripheral Interface
 
Serial peripheral Interface - Embedded System Protocol
Serial peripheral Interface - Embedded System ProtocolSerial peripheral Interface - Embedded System Protocol
Serial peripheral Interface - Embedded System Protocol
 
8051 interrupts
8051 interrupts8051 interrupts
8051 interrupts
 
water level controller using 8051 microcontroller
water level controller using 8051 microcontrollerwater level controller using 8051 microcontroller
water level controller using 8051 microcontroller
 
4.programmable dma controller 8257
4.programmable dma controller 82574.programmable dma controller 8257
4.programmable dma controller 8257
 
I2C
I2CI2C
I2C
 
Intel 8051 - pin description
Intel 8051  - pin descriptionIntel 8051  - pin description
Intel 8051 - pin description
 
Water level controller using 8051 microcontroller
Water level controller using 8051 microcontrollerWater level controller using 8051 microcontroller
Water level controller using 8051 microcontroller
 
8051 ch9-950217
8051 ch9-9502178051 ch9-950217
8051 ch9-950217
 
Key board interfacing with 8051
Key board interfacing with 8051Key board interfacing with 8051
Key board interfacing with 8051
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086
 

Semelhante a Lcd

Cockpit White Box
Cockpit White BoxCockpit White Box
Cockpit White Box
ncct
 
digitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdfdigitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdf
satyamsinha37
 

Semelhante a Lcd (20)

Lcd interfacing with microprocessor 8051
Lcd interfacing with microprocessor 8051Lcd interfacing with microprocessor 8051
Lcd interfacing with microprocessor 8051
 
LCD WITH 8051.docx
LCD WITH 8051.docxLCD WITH 8051.docx
LCD WITH 8051.docx
 
Badal sharma
Badal sharmaBadal sharma
Badal sharma
 
report cs
report csreport cs
report cs
 
Calculator design with lcd using fpga
Calculator design with lcd using fpgaCalculator design with lcd using fpga
Calculator design with lcd using fpga
 
ELECTRICAL ENGINEERING PROJECT
ELECTRICAL ENGINEERING PROJECTELECTRICAL ENGINEERING PROJECT
ELECTRICAL ENGINEERING PROJECT
 
electrical engineering project
electrical engineering projectelectrical engineering project
electrical engineering project
 
Cockpit White Box
Cockpit White BoxCockpit White Box
Cockpit White Box
 
LCD Interacing with 8051
LCD Interacing with 8051LCD Interacing with 8051
LCD Interacing with 8051
 
Upfc ppt
Upfc pptUpfc ppt
Upfc ppt
 
Digital voltmeter using 89c51 microcontroller
Digital voltmeter using 89c51 microcontrollerDigital voltmeter using 89c51 microcontroller
Digital voltmeter using 89c51 microcontroller
 
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLERDIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
 
AUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCY
AUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCYAUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCY
AUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCY
 
File 1389427052
File 1389427052File 1389427052
File 1389427052
 
digitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdfdigitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdf
 
8051interfacing 190425062221
8051interfacing 1904250622218051interfacing 190425062221
8051interfacing 190425062221
 
8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
 
5 FINAL PROJECT REPORT
5 FINAL PROJECT REPORT5 FINAL PROJECT REPORT
5 FINAL PROJECT REPORT
 
Blinking Of LEDs On LPC2148 ARM 7 TDMIS Based Microcontroller
Blinking Of LEDs On LPC2148 ARM 7 TDMIS Based MicrocontrollerBlinking Of LEDs On LPC2148 ARM 7 TDMIS Based Microcontroller
Blinking Of LEDs On LPC2148 ARM 7 TDMIS Based Microcontroller
 
embedded system
embedded systemembedded system
embedded system
 

Último

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 

Último (20)

ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 

Lcd

  • 2. In This Project • We have made LCD interfacing using 8051 microcontroller . • We have used :- • 8051 as CPU. • LCD Display of 2*16 characters for displaying “ ENTER PASSWORD “
  • 3. • Basically the circuit has :- • 1. 8051 IC • 2. DISPLAY UNIT • 3. POWER SUPPLY
  • 4. List of Components Used Sr. no Equipment Quantity 1 IC- AT89C51 μC 1 2 5V-POWER SUPPLY(ADAPTER) +DC CONNECTOR 1 3 BREAD BOARD 1 or 2 4 SOLDERING IRON 1 5 CRYSTAL(11.059MHz ) 1 6 CAPACITORS(33pf) 2 7 PUSH BUTTON SWITCH 1 8 8.2 KΩ RESISTOR 1 9 560 Ω RESISTOR 1 10 LED 1 or 2 11 16×2 LCD DISPLAY 1 12 10K POTENTIOMETER(to 1
  • 6. LCD Interfacing • Liquid Crystal Displays (LCDs) • cheap and easy way to display text • Various configurations (1 line × 20 characters, 2 lines ×16 characters ). • The display has two register – command register – data register • By RS you can select register • Data lines (DB7-DB0) used to transfer data and commands
  • 7. Alphanumeric LCD Interfacing • Pinout – 8 data pins D7:D0 – RS: Data or Command Register Select – R/W: Read or Write – E: Enable (Latch data) • RS – Register Select – RS = 0 → Command Register – RS = 1 → Data Register • R/W = 0 → Write , R/W = 1 → Read • E – Enable – Used to latch the data present on the data pins. • D0 – D7 – Bi-directional data/command pins. – Alphanumeric characters are sent in ASCII format. E R/W RS DB7–DB0 LCD controller communications bus Microcontroller 8 LCD Module
  • 8. LCD Commands • The LCD’s internal controller can accept several commands and modify the display accordingly. These commands would be things like: – Clear screen – Return home – Decrement/Increment cursor • After writing to the LCD, it takes some time for it to complete its internal operations. During this time, it will not accept any new commands or data. – We need to insert time delay between any two commands or data sent to LCD
  • 9. Pin No: Name Function 1 VSS This pin must be connected to the ground 2 VCC Power supply (+5V ) 3 VEE Power supply source to control contrast 4 RS Register select, RS=0 to select command register RS=1 to select data register 5 R/W Read or write R/W =0 for write R/W=1 for read 6 E Enable 7 DB0 8 bit Data bus 8 DB1 8 bit Data bus 9 DB2 8 bit Data bus 10 DB3 8 bit Data bus 11 DB4 8 bit Data bus 12 DB5 8 bit Data bus 13 DB6 8 bit Data bus 14 DB7 8 bit Data bus 15 LED+ Back light LED+ 16 LED- Back light LED-
  • 13. Working Of Project • The 220V AC supply is converted into 5 Volts by using the adapter power supply section. • After supplying power to the circuit, it works according to the programming done in 8051.
  • 14. Algorithm of LCD Programming using 8051 Algorithm to send data to LCD: 1. Make R/W low 2. Make RS=0; if data byte is command RS=1; if data byte is data (ASCII value) 3. Place data byte on data register 4. Pulse E (HIGH to LOW) 5. Repeat the steps to send another data byte