Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Help !! I want to interface 8051 with the 4x4 matrix keypad

Status
Not open for further replies.

sky524810

Newbie level 3
Joined
Nov 5, 2006
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,314
I want to ask how to write a program with assembly language to scans my keyboard and displays any character pressed by the user on the LCD.

For example, displays keys 0-9 as numbers 0-9 on the LCD while keys 10,11,12,13,14,15 are displayed as letters A,B,C,D,E and F, respectively.

I use uVision program.

Help!!

Thanks for reading my article!
 

IanP

Advanced Member level 5
Joined
Oct 5, 2004
Messages
7,942
Helped
2,308
Reputation
4,618
Reaction score
531
Trophy points
1,393
Location
West Coast
Activity points
66,459
Re: Help !! I want to interface 8051 with the 4x4 matrix key

Take a look at this example:
http://www.8052.com/codelib/4x4key scan
Instead of displaying the result on an LCD panel it sends it out in ASCII format through the serial port ..

Regards,
IanP
 

sky524810

Newbie level 3
Joined
Nov 5, 2006
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,314
Re: Help !! I want to interface 8051 with the 4x4 matrix key

thanks for your reply

I would like to ask may I use this program directly to 8051
 

IanP

Advanced Member level 5
Joined
Oct 5, 2004
Messages
7,942
Helped
2,308
Reputation
4,618
Reaction score
531
Trophy points
1,393
Location
West Coast
Activity points
66,459
Re: Help !! I want to interface 8051 with the 4x4 matrix key

This code has been written for the AT89C2051 which is reduced-pin version of the 8051 microcontroller ..
It can be DIRECTLY use with any 8051-derivative ..
Just check Input/Output pin configuration/deffinition .. that's all ..

Inputs:
Code:
	ROW0             EQU          P1.0
	ROW1             EQU          P1.1
	ROW2             EQU          P1.2            
	ROW3             EQU          P1.3

	CLMN0            EQU          P1.7
	CLMN1            EQU          P1.6
	CLMN2            EQU          P1.5
 	CLMN3            EQU          P1.4
Output:
Code:
		ALERT            EQU          P3.7   ;goes low when any key's pressed
Regards,
IanP
 

eng/mahmoud

Newbie level 5
Joined
Oct 4, 2006
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,312
Re: Help !! I want to interface 8051 with the 4x4 matrix key

i will help u my friend read this file
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top