Académique Documents
Professionnel Documents
Culture Documents
Introduction:
LCD or Liquid Crystal Display is an output
device used in many processor based applications
like calculators, Xerox machines, speedometers etc.
The 8086 kit, which you use in the lab, also uses a
LCD display to view the data entered into and
coming out of the processor.
Types of LCD Modules:
2 X 16 LCD
2 Lines
16 characters per
line
4 lines
40 characters per
line
4 lines
20 characters per
line
Pin diagram of HD44780 LCD module:
1. Display Screen
a. Single or multiple lines
b. Multiple characters per line
2. Cursor
a. Blinking cursor or Stable cursor
b. Right moving cursor or left moving cursor
3. Each character can be displayed by using
a. 5 X 10 dots or
b. 5 X 7 dots
4.Interface to the processor
a. 4 line interface or
b. 8 line interface
So there are number of possibilities coming
up when you attempt to use any LCD. You have to
address these prior to displaying anything.
Every LCD module has a controller built inside
it. This controller incorporates two RAMs
a. Control RAM
b. Data RAM
Initially you send a series of control words
each specifying in which of above 4 functionalities
you want to configure the LCD device. Control
words are sent to control RAM.
Once configured you transmit actual data to Data
RAM which ultimately appears on the screen.
Format of control words:
Unlike other devices the LCD module can be
configured with several control words. Each
control word will be specific to each of the
possible functionality. The following table will
illustrate type of control word formats to be sent
to Control RAM to get the assigned functionality.
Here only a few control word formats are given.
In practice there are more control words.
D D D D D D D D
Command
7 6 5 4 3 2 1 0
D
Function Set 0 0 1 N F X X
L
Enable Display/ Cursor 0 0 0 0 1 D C B
Clear Display 0 0 0 0 0 0 0 1
S R
Move Cursor 0 0 0 1 X X
C L
0 1 line display
F display format: In a LCD display each character is
displayed by activating individual dots on the surface. You
have two options:
0 Display off
C=1 Cursor on
0 Cursor off
B=1 Cursor Blink on
Move Cursor:
SC = 1 Shift cursor on
By,
C.R.Sridhar,
S.Naga Subramanian,
S.Naresh Ajay.