electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

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


Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> Help !! I want to interface 8051 with the 4x4 matrix keypad
Author Message
sky524810



Joined: 05 Nov 2006
Posts: 5


Post05 Nov 2006 9:54   

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


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!
Back to top
Google
AdSense
Google Adsense




Post05 Nov 2006 9:54   

Ads




Back to top
IanP



Joined: 05 Oct 2004
Posts: 6490
Helped: 1542
Location: West Coast


Post05 Nov 2006 10:16   

Re: Help !! I want to interface 8051 with the 4x4 matrix key


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

Regards,
IanP
Back to top
sky524810



Joined: 05 Nov 2006
Posts: 5


Post05 Nov 2006 10:45   

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
Back to top
IanP



Joined: 05 Oct 2004
Posts: 6490
Helped: 1542
Location: West Coast


Post05 Nov 2006 11:02   

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
Back to top
sky524810



Joined: 05 Nov 2006
Posts: 5


Post05 Nov 2006 11:08   

Re: Help !! I want to interface 8051 with the 4x4 matrix key


Thanks
Back to top
eng/mahmoud



Joined: 04 Oct 2006
Posts: 10


Post09 Nov 2006 13:12   

Re: Help !! I want to interface 8051 with the 4x4 matrix key


i will help u my friend read this file


Sorry, but you need login in to view this attachment

Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> Help !! I want to interface 8051 with the 4x4 matrix keypad
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Question how to interface 8051 with the 4x4 matrix keypad (6)
Interface to 4x4 Keypad - how to scan the keypad correctly? (3)
4x4 matrix keypad with 16f690 (4)
need help in interfacing 4x4 matrix keypad (2)
interface 4x4 keypad with Atmel AT89S52 (1)
MATRIX 4x4 keypad - Four digit (1)
Connect 4x4 dot matrix keypad to mcu only 2 wire (8)
lcd interfacing with 8051 and 4*4 matrix keypad (1)
4x4 Keypad with PIC18F4520 (6)
Matrix keypad - confusion with the keys (9)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS