experiment 4

2
Experiment No. 4 AIM: Interface LCD with the microcontroller. Display your name on the LCD. Apparatus required: 89s5x trainer kit. Circuit Diagram: Fig.1: Circuit diagram of interfacing of LCD with 8051.

Upload: indira-kundu

Post on 08-Nov-2015

214 views

Category:

Documents


3 download

DESCRIPTION

Embedde lab experiment4

TRANSCRIPT

Experiment No. 4AIM: Interface LCD with the microcontroller. Display your name on the LCD.Apparatus required: 89s5x trainer kit.

Circuit Diagram:Fig.1: Circuit diagram of interfacing of LCD with 8051.

Worksheet1) Modify LCD program to display two lines: WELCOME TO E.C. on first line and

Embedded lab on the second line. Execute program in your hardware. 2) Explain the pin out diagram of LCD 16x2.

3) Interface LCD with the microcontroller in 4-bit mode. Display your name on the LCD. 4) How does the LCD distinguish between data and command?

5) How does the busy flag aid in making the LCD program more efficient?

6) For a 16x2 LCD, the location of the last character of line 1 is 8FH (its command code). Show how this value was calculated? Hint: Prefer data sheet of LCD7) Draw the circuit diagram of interfacing of 20x2 LCD with 8051?