8/11/2019 LCD Interfacing of
1/15
LCD InterfacingUSING 8051 C PROGRAMMING
BY VINAY KULKARNI
8/11/2019 LCD Interfacing of
2/15
LCD
LCD (Liquid Crystal Display) screen is an electronic display module , A 16x2 Lvery basic module and is very commonly used in various devices and circuitusing the same in our experiments .
8/11/2019 LCD Interfacing of
3/15
Characteristics of LCD display module .
A 16x2 LCDmeans it can display 16 characters per line and
such lines.
In this LCD each character is displayed in 5x7 pixel matrix.This LCD has two registers, namely, Command and Data.
The command register stores the command instructions giv
A command is an instruction given to LCD to do a predefine
initializing it, clearing its screen, setting the cursor p
controlling display etc.The data register stores the data to be displayed on the LCD
The data is the ASCII value of the character to be displayed
8/11/2019 LCD Interfacing of
4/15
Pin Description
8/11/2019 LCD Interfacing of
5/15
8/11/2019 LCD Interfacing of
6/15
The steps that has to be done for initializing th
display is given below and these steps are comalmost all applications :1.Send 38Hto the 8 bit data line for initializat2.Send 0FHfor making LCD ON, cursor ON andblinking ON.3.Send06H for incrementing cursor position.4.Send 01Hfor clearing the display and returncursor.
8/11/2019 LCD Interfacing of
7/15
Sending Data to LCDMake R/W low. // indicating write operation.
Make RS=0 if data byte is a command and mak
if the data byte is a data to be displayed.
Place data byte on the data register.
Pulse EN from high to low. // EN=enable
Repeat above steps for sending another data.
8/11/2019 LCD Interfacing of
8/15
8/11/2019 LCD Interfacing of
9/15
8/11/2019 LCD Interfacing of
10/15
void main(void)
{
unsigned char arr[15]={'S','D','M','C','E','T','C','S','E',' ','D','E','P','T'};
unsigned char i;
//initializationlcd_init();
while(1)
{
lcd(0x80, 0); // Address of the first line in the LCD
for(i = 0; i
8/11/2019 LCD Interfacing of
11/15
//funcion for command write into lcd
void lcd(unsigned char addr, bit flag)
{
P0 = addr;
rs = flag; //register control select
rw=0; //write enable
en=1;
en=0;
delay1(500);
en = 1;
}
void delay1 (unsigned int del)
{
while(--del);
}
8/11/2019 LCD Interfacing of
12/15
8/11/2019 LCD Interfacing of
13/15
8/11/2019 LCD Interfacing of
14/15
For Further Reference check out :
http://www.dnatechindia.com/Tutorial/8051-Tutorial/Interfacing-L
8051.html
http://www.pantechsolutions.net/project-kits/interfacing-lcd-with-
http://www.engineersgarage.com/microcontroller/8051projects/in
lcd-at89c51-circuit
http://www.circuitstoday.com/interfacing-16x2-lcd-with-8051
http://www.dnatechindia.com/Tutorial/8051-Tutorial/Interfacing-LCD-to-8051.htmlhttp://www.dnatechindia.com/Tutorial/8051-Tutorial/Interfacing-LCD-to-8051.htmlhttp://www.dnatechindia.com/Tutorial/8051-Tutorial/Interfacing-LCD-to-8051.htmlhttp://www.pantechsolutions.net/project-kits/interfacing-lcd-with-8051http://www.engineersgarage.com/microcontroller/8051projects/interface-lcd-at89c51-circuithttp://www.engineersgarage.com/microcontroller/8051projects/interface-lcd-at89c51-circuithttp://www.circuitstoday.com/interfacing-16x2-lcd-with-8051http://www.circuitstoday.com/interfacing-16x2-lcd-with-8051http://www.circuitstoday.com/interfacing-16x2-lcd-with-8051http://www.circuitstoday.com/interfacing-16x2-lcd-with-8051http://www.circuitstoday.com/interfacing-16x2-lcd-with-8051http://www.circuitstoday.com/interfacing-16x2-lcd-with-8051http://www.circuitstoday.com/interfacing-16x2-lcd-with-8051http://www.circuitstoday.com/interfacing-16x2-lcd-with-8051http://www.circuitstoday.com/interfacing-16x2-lcd-with-8051http://www.circuitstoday.com/interfacing-16x2-lcd-with-8051http://www.engineersgarage.com/microcontroller/8051projects/interface-lcd-at89c51-circuithttp://www.engineersgarage.com/microcontroller/8051projects/interface-lcd-at89c51-circuithttp://www.engineersgarage.com/microcontroller/8051projects/interface-lcd-at89c51-circuithttp://www.engineersgarage.com/microcontroller/8051projects/interface-lcd-at89c51-circuithttp://www.engineersgarage.com/microcontroller/8051projects/interface-lcd-at89c51-circuithttp://www.engineersgarage.com/microcontroller/8051projects/interface-lcd-at89c51-circuithttp://www.pantechsolutions.net/project-kits/interfacing-lcd-with-8051http://www.pantechsolutions.net/project-kits/interfacing-lcd-with-8051http://www.pantechsolutions.net/project-kits/interfacing-lcd-with-8051http://www.pantechsolutions.net/project-kits/interfacing-lcd-with-8051http://www.pantechsolutions.net/project-kits/interfacing-lcd-with-8051http://www.pantechsolutions.net/project-kits/interfacing-lcd-with-8051http://www.pantechsolutions.net/project-kits/interfacing-lcd-with-8051http://www.pantechsolutions.net/project-kits/interfacing-lcd-with-8051http://www.dnatechindia.com/Tutorial/8051-Tutorial/Interfacing-LCD-to-8051.htmlhttp://www.dnatechindia.com/Tutorial/8051-Tutorial/Interfacing-LCD-to-8051.htmlhttp://www.dnatechindia.com/Tutorial/8051-Tutorial/Interfacing-LCD-to-8051.htmlhttp://www.dnatechindia.com/Tutorial/8051-Tutorial/Interfacing-LCD-to-8051.htmlhttp://www.dnatechindia.com/Tutorial/8051-Tutorial/Interfacing-LCD-to-8051.htmlhttp://www.dnatechindia.com/Tutorial/8051-Tutorial/Interfacing-LCD-to-8051.htmlhttp://www.dnatechindia.com/Tutorial/8051-Tutorial/Interfacing-LCD-to-8051.htmlhttp://www.dnatechindia.com/Tutorial/8051-Tutorial/Interfacing-LCD-to-8051.htmlhttp://www.dnatechindia.com/Tutorial/8051-Tutorial/Interfacing-LCD-to-8051.html8/11/2019 LCD Interfacing of
15/15
THANK YOU
VINAY KULKARNI