LCD pin descriptions:
The LCD discussed in this section has 14 pins. The function of each pin is given in table.

LCD pin descriptions

LCD pin desciptions
Vcc, Vss, and VEE:
While Vcc and Vss provide +5V and ground, respectively, VEE is used for controlling LCD contrast.
RS – register select:
There are two very important registers inside the LCD. The RS pin is used for their selection as follows. If RS = 0, the instruction command code register is selected, allowing the user to send a command such as clear display, cursor at home, etc. If RS = 1 the data register is selected, allowing the user to send data to be displayed on the LCD.
R/W – read/write:
R/W input allows the user to write information to the LCD or read information from it. R/W = 1 when reading; R/W =0 when writing.
E – enable:
The enable pin is used by the LCD to latch information presented to its data pins. When data is supplied to data pins, a high to low pulse must be applied to this pin in order for the LCD to latch in the data present at the data pins. This pulse must be a minimum of 450 ns wide.
D0 – D7:
The 8 bit data pins, D0 – D7, are used to send information to the LCD or read the contents of the LCD’s internal registers.
To display letters and numbers, we send ASCII codes for the letters A – Z, a – z, and numbers 0 – 9 to these pins while making RS = 1.
There are also instructions command codes that can be sent to the LCD to clear the display or force the cursor to the home position or blink the cursor. Table below lists the instruction command codes.

LCD Commands table
We also use RS = 0 to check the busy flag bit to see if the LCD is ready to receive information. The busy flag is D7 and can be read when R/W =1 and RS = 0, as follows: if R/W =1, RS =0. When D7 = 1(busy flag = 1), the LCD busy taking care of internal operations and will not accept any new information. When D7 = 0, the LCD is ready to receive new information. Note: It is recommended to check the busy flag before writing any data to the LCD.
Example programs are given in the next page.
Pages: 1 2
Description :
This is the one stop educational site for all Electronic and Computer students. If you want to learn something new then we are here to help. We work on Microcontroller projects, Basic Electronics, Digital electronics, Computer projects and also in basic c/c++ programs.
#Home #Sitemap #Submit #Terms of Use
Copyright©2011 electrofriends.com All Rights Reserved
Contact:info@electrofriends.com | Powered by Dhyeya
April 21st, 2009 at 8:50 pm
Can i get more detail about it
July 12th, 2009 at 10:18 pm
good one…. nice!!!!!!!!1
October 11th, 2009 at 10:24 am
This is a tutorial on alphanumeric 16×2 lcd interfacing with AT89C51.The programming algorithm is compatible with HITACHI HD44780U lcd controller .Complete programming code is given with neat circuit diagram.
November 30th, 2009 at 9:53 pm
Hi there, I just found this website whilst searching around the Internet as I am looking for some info on LCD TVs!. It’s an informative blog so I have bookmarked your site and I intend to return tomorrow to enjoy a proper read when I have more time.
February 10th, 2010 at 12:54 am
please send me more details about microcontroller 8951
May 8th, 2010 at 1:57 pm
thx alot im elahe ,student of electronic engineering i use it for my project of 8051
January 30th, 2011 at 3:02 pm
Dear sir,
Thanks for posting the project.
i am running through the last semester. Would you please provide us the complete circuit diagram of this project?
February 2nd, 2011 at 11:19 pm
the complete circuit diagram of this project would be really helpful, thank u
February 11th, 2011 at 6:11 pm
i want the interfacing circuit of lcd and adc 0804 for 89c51 microprocessor
February 14th, 2011 at 2:10 pm
how to produce backlight in 2×16 lcd display
July 8th, 2011 at 6:26 pm
hi i want to know how to deal with 8951
August 25th, 2011 at 7:35 pm
I am in my final year computer engineering, thanks the project has helped me in my final year project
October 4th, 2011 at 4:34 pm
I want the circuit & layout of the lcd interfacing with 89v51 microcontroller.
October 12th, 2011 at 11:45 am
i want some idea of the lcd coding in embedded c….
October 18th, 2011 at 11:41 am
I need more embedded kind of projects….
December 8th, 2011 at 12:13 pm
hai i want 8051 interfacing with lcd source code could u tell me