Component:

  1. 8051 Development Board
  2. 16x2 Lcd

Get Datasheet:

Download Datasheet form below link

Please read important topics from datasheet. 
  • Features
  • Absolute Maximum
  • Electronic Characteristics
  • Pin Assignment
  • Instruction Table

Photo:



LCD Basic Circuit Diagram

 

LCD and 8051 Pin 8 bit mode Connections

LCD

8051

D0

P0^0

D1

P0^1

D2

P0^2

D3

P0^3

D4

P0^4

D5

P0^5

D6

P0^6

D7

P0^7

RS

P1^0

RW

P1^1

E

P1^2

LCD and 8051 Pin 4 bit mode Connections

LCD

8051

D4

P0^4

D5

P0^5

D6

P0^6

D7

P0^7

RS

P1^0

RW

P1^1

E

P1^2


RS, RW, E, and D0-D7

D0-D7 is represent as 8bit data-bus
RS=0 means instruction or command
RS=1 means data
E = enable or latch the information from data-bus

Instruction or Command of LCD 16x2

Command Hex

Description

1

Clear display screen

2

Return home

4

Decrement cursor (shift left)

6

Increment cursor (shift right)

0x38

2 lines 5x7 matrix

E

Display on cursor blinking

80

1st line position 0

C0

2nd line position 0

LCD 8bit mode Program

programs in different Categories.


LCD 4bit mode Program

programs in different Categories.

Thank You