- Back to Home »
- LCD and KEYPAD interfacing »
- Display pressed key on LCD using 8051 microcontroller
This is a mini project. It is very simple and easy. You are just required to know about the LCD and Keypad interfacing.
Connect the LCD and keypad to microcontroller according to the circuit diagram, I have defined hex value for each key like
0 1 2 3
4 5 6 7
8 9 A B
C D E F
Logic is very simple. It is waiting for key to be pressed. After pressing the hex value for equivalent value is stored in a register and equivalent ASCII value is sent to the LCD to be displayed because LCD always display ASCII value. I have written program in assembly language.