0% found this document useful (0 votes)
6 views

Lab 4 - LCD and Keypad Interfacing on Hardware

The document outlines the objectives and tasks for Experiment #4 in the Digital Systems & Microprocessors Lab, focusing on the hardware implementation of a 4x3 keypad and LCD interfacing with a PIC MCU. Students are required to build the circuit, display a string and their registration number, and ensure proper connections and code adjustments. Additionally, a concise report must be prepared in groups, adhering to specified formatting and including relevant images and comments.

Uploaded by

qubabaig63
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Lab 4 - LCD and Keypad Interfacing on Hardware

The document outlines the objectives and tasks for Experiment #4 in the Digital Systems & Microprocessors Lab, focusing on the hardware implementation of a 4x3 keypad and LCD interfacing with a PIC MCU. Students are required to build the circuit, display a string and their registration number, and ensure proper connections and code adjustments. Additionally, a concise report must be prepared in groups, adhering to specified formatting and including relevant images and comments.

Uploaded by

qubabaig63
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Digital Systems & Microprocessors Lab

Session: 2022 (AVE-8) – Spring 2024

Experiment # 4
Digital I/O interfacing Applications: LCD &
Keypad (Hardware Implementation)
Objective
• Hardware implementation of 4*3 keypad & LCD Interfacing with PIC MCU

Task 1: Interface 4*3 Keypad & LCD (in 4bit Mode) with PIC MCU on Hardware
a) As you’ve already done this task on Proteus in Lab 3 (Task#4). Now, burn the .hex file on PIC
MCU. (Before burning the .hex file, read the manual to end and modify your code where needed.)
b) Build the circuit on real hardware. Connect LCD (in 4-bit Mode) with PIC MCU and display the
following string in the first row:

Then shift the cursor to second row and print your registration number using the 4*3 Keypad.

Important Instructions:
• Be careful, while working with real hardware & make sure your connections are accurate and in
accordance with the component pinouts.
• For LCD, connect a potentiometer at VSS, VDD & VE(Contrast) pins. Connect Ground at Cathode
and VSS, and +5V at VDD & Anode of LCD. The remaining connections will be same as you did on
Proteus.

Department of Avionics Engineering Page 1|2


Institute of Space Technology, Islamabad
Digital Systems & Microprocessors Lab
Session: 2022 (AVE-8) – Spring 2024
• For Keypad, connect pull-down resistors to the input pins of MCU. Most importantly, add a suitable
delay in your code to overcome switch-bouncing issue and add a little delay between column/row
switching of Keypad function.
• Use PortB of PIC16F877A for Keypad from pin B7 to B1 for R1 to C1 of Keypad respectively. It
will ease you to plug in the Keypad header directly to your PIC MCU.
• Show your connections to Lab Staff/Instructor before powering the circuit.

Task 2:
• Compose a concise report for submission in the forthcoming lab session, presenting it in hard copy
format.
• Reports should be submitted in groups of 3 students.
• On the title page of your report, include only the following details: Experiment number and name,
Your name, Registration number, Section, and a thumbnail (optional).
• Adhere strictly to a professional format for the entire report.
• Ensure that the report is printed on both sides of the paper.
• Include images of your code, circuit diagram and hardware working, along with your comments for
all tasks within the report.

----------------------------------------------

Department of Avionics Engineering Page 2|2


Institute of Space Technology, Islamabad

You might also like