Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

Help! regarding keypad and microcontroller at89c51

Status
Not open for further replies.

mmuntaha

Newbie level 3
Joined
Jan 6, 2011
Messages
4
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,305
can any one plz guide me how to interface keypad with at89c51 microcontroller i followed the cct diagrame that was given on net but my cct is not detecting any input on keypad and on my lcd there are only black boxes.
plz can any one can guide me.
 

The normal way to read the keypad is

set pins connected to A,B,C,D as input with internal pull up,
set pins connected to 1,2,3 as output and low state.
then read which one of A,B,C or D is not 1 anymore, a button in this line is pressed, you have found the line pressed

To find the row apply high to row 1 , if the grounded pin is no longer 0 then the row 1 was pressed
if not apply high to row 2 , if the grounded pin is no longer 0 then the row 2 was pressed
if not apply high to row 3 , if the grounded pin is no longer 0 then the row 3 was pressed or you can assume it was that one since it wasn't one of the other two.

You either have a problem with your code or it is a problem with the internal pull ups (i think your chip has open drain outputs).
You can connect 4 pull up resistors (10K) from Vcc to A,B,C and D and try again.

Alex
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top