Professional Documents
Culture Documents
4x4 Keypad PDF
4x4 Keypad PDF
4x4 Keypad PDF
Features
Contact debouncing.
Easy to interface.
Interfaces to any microcontroller or microprocessor.
Data valid output signal for interrupt activation.
Applications
Vending machines.
Public phones.
Ticketing.
Specifications
Parameter Value
Operating force 60 +/- 20cN
Key lifetime 1x109 million operations
www.researchdesignlab.com
2|P ag e An ISO 9001-2008 Certified Company
4x4 MATRIX KEYPAD Order Code RDL/4X4KP/13/001/V1.0
Pin Details
Pin Name Details
1-4 R0-R3 rows
5-8 C0-C3 columns
Working
www.researchdesignlab.com
3|P ag e An ISO 9001-2008 Certified Company
4x4 MATRIX KEYPAD Order Code RDL/4X4KP/13/001/V1.0
www.researchdesignlab.com
4|P ag e An ISO 9001-2008 Certified Company
4x4 MATRIX KEYPAD Order Code RDL/4X4KP/13/001/V1.0
Sample Application
www.researchdesignlab.com
5|P ag e An ISO 9001-2008 Certified Company
4x4 MATRIX KEYPAD Order Code RDL/4X4KP/13/001/V1.0
Code
(c) Researchdesignlab.com {
MCU: AT89S52 }
sbit en=P3^7; {
www.researchdesignlab.com
6|P ag e An ISO 9001-2008 Certified Company
4x4 MATRIX KEYPAD Order Code RDL/4X4KP/13/001/V1.0
{ en=1;
D7=1; en=0;
rs=0; }
rw=1; //***************************
www.researchdesignlab.com
delay(20);
7|P ag e An ISO 9001-2008 Certified Company
4x4 MATRIX KEYPAD Order Code RDL/4X4KP/13/001/V1.0
colloc1=KeyPort; }
if(colloc1==0x0E) rowloc=2;
{ }
} rowloc=3;
else if(colloc1==0x0D) }
{ return(keypad[rowloc][colloc]);
colloc=1; }while(1);
} }
else if(colloc1==0x0B){ }
} {
} for(i=0;i<time;i++);
rowloc1 = KeyPort; }
if(rowloc1 == 0xE0)
rowloc=0;
www.researchdesignlab.com
8|P ag e An ISO 9001-2008 Certified Company
4x4 MATRIX KEYPAD Order Code RDL/4X4KP/13/001/V1.0
Board Dimensions
60mm
44mm
http://researchdesignlab.com/index.php/interfacing-board/4x4-matrix-keypad.html
www.researchdesignlab.com