Friday, February 7, 2014

INTERFACING OF LCD DISPLAY TO MICRO-CONTROLLER 8051

INTERFACING OF LCD DISPLAY TO MICRO-CONTROLLER MC8051

The LCD used here is LM016L and Micro-controller is 8051(P89V51RD2).

It is 16 pin Lcd display in which 3 pin are dedicated as control pin and 8 pin for data transfer.


Here I had Connected the Port 0 of MC to LCD and P2(0,1,2) pin to control pin of LCD.


NOTE: 3 control pins are RS = Register Select, RW = Read/Write, and E = Enable.


The working of LCD main depends on this 3 control pin:
  • When RS = 0, Means Register selected is Command register and the data send are command for LCD.
  • When RS = 1, Means Register Selected is Data register and the data is directly send to DDRAM (Display Data RAM) for displaying the String.
  • RW pin is Read or Write enable pin. RW = 0, Means Write functions is select so that we can write data or command into LCD RAM.
  • RW pin when is set as 1, means Read function is selected. We only read the status of LCD DDRAM, i.e. whether it’s Busy or ready to accept the data.
  • E = Enable pin is used to latch the data send from Micro-controller to LCD.
  • When E get high to low pulse it latch the data into LCD RAM.
  • So for every data or command to be send to LCD display the E pin must have high to low pulse.


























Important Command of LCD:
  • Clear the display = 0x01;
  • Display on and cursor blinking = 0x0E;
  • Display on and cursor blinking off = 0x0C;
  • Cursor incrementing = 0x06;
  • 1st location in the 1st line of lcd display = 0x80;
  • 1st location in the 2nd line of lcd display = 0xC0;
  • For Left Shifting the data of lcd = 0x18;
  • For Right shifting the data of lcd = 0x1C;






In this method I have used the pointer to send of number string
This method is called as pass by Reference.

Any Queries Plz Do Comment.

For Video on this example: Click on this link for video

No comments:

Post a Comment