0% found this document useful (0 votes)
52 views10 pages

LCD Interfacing W LPC2148

Uploaded by

Sania Kawade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views10 pages

LCD Interfacing W LPC2148

Uploaded by

Sania Kawade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

LCD interfacing with

LPC2148
LCD Interfacing

• Liquid Crystal Displays (LCDs)


• Cheap and easy way to display text
• Integrated controller
• The display has two register
• Command register
• Data register
• By Register Select(RS) you can select register for commands or
data
• Data lines (D7-D0) used to transfer data and commands
Pin Description Pin No: Name Function
1 VSS This pin must be connected to the ground
2 VDD Positive supply voltage pin (5V DC)
3 VEE Contrast adjustment
4 RS Register selection
5 RW Read or write
6 E Enable
7 D0 Data
8 D1 Data
9 D2 Data
10 D3 Data
11 D4 Data
12 D5 Data
13 D6 Data
14 D7 Data
15 LED+ Back light LED+
16 LED- Back light LED-
Alphanumeric LCD Interfacing
• Pinout
• 8 data pins D7:D0
• RS: Data or Command Register Select
• RW: Read or Write
• E: Enable (Latch data)
• RS – Register Select
• RS = 0 → Command Register
• RS = 1 → Data Register

• RW = 0 → Write , RW = 1 → Read

• E – Enable
• Used to latch the data present on the data pins. A High to low pulse is required on Enable line

• D0 – D7
• Bi-directional data/command pins.
• Alphanumeric characters are sent in ASCII format.

• 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
Command Codes
Interfacing LCD with LPC2148
Steps for LCD initialization
• Send 38H to the 8 bit data line for initialization for use of 2 lines and
5×7 matrix
• Send 0EH for making LCD ON, cursor ON and cursor blinking ON.
• Send 01H for clearing the display and return the cursor.
• Send 06H for incrementing cursor position to right.
Sending command to the LCD

• Send code on the port connected to LCD

• Make RS=0 for command

• Make R/W low for write.

• Send a pulse from high to low on E.

• RET
Sending data to the LCD
• Send code on the port connected to LCD

• Make RS=1 for data

• Make R/W low for write.

• Send a pulse from high to low on E.

• RET

You might also like