Home » Embedded System Keypad Programming

Embedded System Keypad Programming

by Online Tutorials Library

Keypad Programming Using 8051 Microcontroller

Keypad is an analog switching device which is generally available in matrix structure. It is used in many embedded system application for allowing the user to perform a necessary task.

Consider the block diagram representation of interfacing keypad with microcontroller is:-

Keypad Programming1

A matrix keypad is consists of an arrangement of switches connected in matrix format in rows and columns. The rows and columns are connected with a microcontroller such that the rows of switches are connected to one pin and the columns of switches are connected to another pin of a microcontroller.

Consider the interfacing of Keypad with 8051 microcontroller using Proteus based Simulation is:-

Keypad Programming2

Consider the program to toggle the LED by pressing the switch is:-


Consider the program to Switch ON the LED by pressing the key ‘1’ on the keypad is:-

Consider the program to display a number 0, 1, 2,3,4,5 on a seven segment display by pressing the respective key on a keypad are:-

Next TopicLCD Programming

You may also like