Académique Documents
Professionnel Documents
Culture Documents
E &TC SUBJECT: MC
EXPT. NO.: 6 DATE:
PROBLEM STATEMENT:
A. Interface LCD (8 bit mode) to 8051 and write an ALP to display a message “Welcome” on 1st
line and “To PICT” on 2nd line of LCD. Draw a neat interfacing diagram for the same.
OBJECTIVE:
a. To understand the working of Liquid Crystal Display (LCD).
b. To study the LCD interfacing modes and Timing diagram.
c. To study and use of the LCD commands to drive LCD.
d. To interface LCD in 8-bit mode to PIC Microcontroller
1. THEORY
2. Algorithm:
i) Start
ii) Initialize P2 and P1 where DB0 –DB7 and control lines(rs, rw, en) are interfaced respectively
iii) Initialize LCD by sending appropriate commands (38h,0Eh,01h,06h,80h)
iv) While sending commands; the control signals should be rs=0,rw=0,en= H-L
v) Load the data to be displayed on the data bus DB0 to DB7 and give appropriate control signals
(rs=1, rw=0, en=H-L)
vi) Give suitable delay wherever necessary.
vii) Loop in order to send string.
3. Interfacing diagram:
5. References: