Key board interface

Dec 03, 2003 3 Replies

Hi all, I want to interface a 42 key keypad with 8051. I am a newbie to 8051. Any help, schematic, ideas, references are welcome. Thanks in advance.



Manikandan.P


I assume it's a 6 by 7 unencoded keypad? The usual way is to attach the columns to one port and the rows to another port. You set one port to output all ones except the one you are interested in. You read the other port. The bit with the

0 tells you which switch was being pushed (if any).

columns

ones

with the

Don't forget to add some debounce code afterwards ----------

Philips WEB site has an application in the micro's apps section

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required