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

MPI - LAB - 6 (Spring - 2024)

The document describes an experiment to interface a 4x4 keypad and 4-bit 16x2 LCD display using an STM32 microcontroller. The objectives are to read input from the keypad and display it on the LCD. The document provides instructions for configuring I/O pins, implementing the setup in a simulator, hardware implementation, code details and results that should be included in the report.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

MPI - LAB - 6 (Spring - 2024)

The document describes an experiment to interface a 4x4 keypad and 4-bit 16x2 LCD display using an STM32 microcontroller. The objectives are to read input from the keypad and display it on the LCD. The document provides instructions for configuring I/O pins, implementing the setup in a simulator, hardware implementation, code details and results that should be included in the report.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

MICROPROCESSOR & INTERFACING LAB

Exp 6. Interfacing 4x4 Keypad and 4-bit 16x2 LCD display using
STM32CubeMX and Keil-Version5
Objectives

✓ To read digital input form 4x4 grid Keypad.


✓ To interface 4x4 Keypad and 16x2 LCD display at specific pins of stm32f103c8.
✓ To Display the input read from keypad on LCD display.
Pre-Lab Tasks
✓ Read and understand the internal structure and operation of 4x4 Keypad for digital input
with ARM CORTEX based stm32f103c8 microcontroller.
✓ Understand the configuration of pins using STM32CubeMX for I/O operation and
interfacing 4x4 Keypad and 16x2 LCD display.
✓ Understand the interfacing of 16x2 LCD display and 4x4 matrix Keypad using Keil-
Version5 and c programming.

Lab Tasks

✓ Configure I/O ports using STM32CubeMX environment for 4-bit 16x2 LCD display with
4x4 matrix Keypad based digital input
✓ Generate and modify the code using Keil-Version5 and c programming to alter the status
of LCD display with Input from Keypad.
✓ Upon each input the code should detect the number pressed from the Keypad and display
on the second line of the LCD display.
✓ Explain the given code and its working using IDE debugging.
✓ Verify the functionality by implementing the circuit (interface 4x4 Kaypad and 16x2 LCD
display at specific GPIOx pins) on the Proteus simulator.
✓ Implement the task on MDB hardware and verify its working by thorough testing and
validation.

Report should include:

6.1. Diagram for configuration of I/O pins in STM32CubeMX

6.2. Diagram for implementation of the setup in proteus simulator along with its working
MICROPROCESSOR & INTERFACING LAB

6.3. Diagram for hardware implementation of the code.

6.4. List of important parameters to be considered for configuration of 4x4 matrix Kaypad for
input.

6.5. Detail of code and experimental set-up for the instructed task.

6.6. Complete working code along with comments


MICROPROCESSOR & INTERFACING LAB
----- Small fonts (9) -----

6.7. Results and Observation regarding working of code and hardware outputs (snaps and
explanation)
MICROPROCESSOR & INTERFACING LAB

6.8. Concluding remarks


MICROPROCESSOR & INTERFACING LAB
Report Format

1. Title
2. Objectives
3. Apparatus/Tools used
4. Procedure
5. Code
6. Simulation/Results (Proteus)
7. Experimental Results (Hardware)
8. Lesson Learnt/Discussion
9. Conclusion

CLO1 CLO2 CLO3 CLO4 CLO5


lab

lab
instruction and use

Individual and Team


equipment effectively

and
Total for CLO2

Report Writing
the

Implementation

Comprehension
Pre-lab/Design

Discipline
Follow

Total
ethics
Work 100
15 20 20 10 50 20 5 10

You might also like