Lab 4 - LCD and Keypad Interfacing on Hardware
Lab 4 - LCD and Keypad Interfacing on Hardware
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.
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.
----------------------------------------------