Department of Electronics Engineering: Experiment No

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

INTER

DEPARTMENT OF
Experiment No.
3
FACIN
Semester
Subject
ELECTRONICS ENGINEERING
T.E. Semester V – Electronics Engineering
Microcontrollers & Applications (MCA)
Subject Professor In-charge Prof. Manoj Suryawanshi, Prof. Savio Moraes

G OF
Assisting Teachers
Laboratory
Prof. Manoj Suryawanshi, Prof. Savio Moraes
M-516 – Microprocessors and Microcontrollers Laboratory

16 x2
ALPHA
NUME
RIC
LIQUI
D
CRYST
AL
Student Name PRATIK SHANKAR TELANG

DISPL
Roll Number 18103B0002

Grade and Subject Teacher’s


AY
Signature

[LCD]
TO 3.1
DEPARTMENT OF
ELECTRONICS ENGINEERING
Experiment No.
3
Write an 8051 Assembly Language Program to display your Name and Roll
Number on the interfaced 16 x 2 LCD Module.

3.2
DEPARTMENT OF
ELECTRONICS ENGINEERING
Experiment No.
3

3.3
DEPARTMENT OF
ELECTRONICS ENGINEERING
Experiment No.
3

POST LAB QUESTIONS [PLQs]

[Handwritten Answers must be provided by the student]

1. How do you adjust the contrast of the LCD Module?

To adjust the contrast of the LCD module, a potentiometer (10k ohms) is used. The potentiometer is
connected across the Vcc and ground and the variable terminal is connected to pin no 3 (contrast pin) of the
LCD display.

2. Why is delay subroutine called after every command write subroutine and data write subroutine?
The LCD displays the characters for a split second before refreshing and going back to default. The delay
Is used to flash the characters for some time

3. Explain function of RS, R/W and EN terminals of LCD Module.


 Function of RS: The RS pin is used to select the internal register of the LCD module.
The LCD module has two registers that we use, viz. COMMAND register and DATA register.
If RS = 0, the LCD selects the COMMAND register,
If RS = 1, the LCD selects the DATA register.

 Function of R/W: The value of input on this pin determines if we want to read the data or write it.
If R/W = 0, The LCD is in write mode,
If R/W = 1, The LCD is in read mode.

 Function of EN: The enable pin is used to execute any specific instruction using a negative edge
trigger. The input to enable is made high and then made low to execute any instruction.

4. Why is delay subroutine called in Command Write and Data Write subroutines?
It is used to give the LCD display some time before it refreshes and executes other instructions.

5. Modify the program to display special characters like #, $ % ^ & *@!()_+ on the LCD screen.
This modification can be done by moving the ASCII value of the concerned character in the accumulator
and executing the display instructions.

3.4
DEPARTMENT OF
ELECTRONICS ENGINEERING
Experiment No.
3

Problem Based Learning

1. Repeat the above program making use of Read/Write pin to read LCD Module status.

2. Display “Vidyalankar” using 16 X 2 Alphanumeric LCD Display and roll it from left to right and right to left

3.5
DEPARTMENT OF
ELECTRONICS ENGINEERING
Experiment No.
3

3.6
DEPARTMENT OF
ELECTRONICS ENGINEERING
Experiment No.
3

3.7

You might also like