How to interface key pad with less number of MCU Pins ?

Microcontroller Topics
Post Reply
User avatar
kapila
Posts: 1
Joined: Sat Jul 18, 2009 11:47 pm

How to interface key pad with less number of MCU Pins ?

Post by kapila » Mon Jul 20, 2009 7:20 am

Hi All ,

I am making some application using 8 pin microcontroller. I want to make some hardware to enter 4 digit number , which is goint to interface with
the microcontroller. I have not enough microcontroler pins , to connect 10 switches ( to feed digit 0 - to 9 ). Because for reduce the cost and space , I must use 8 pin MCU. Can any body tell me , is there any easy way to do this using 1 or 2 microcontroller pins ?

Thanks,
Kapila
User avatar
Magneto
Major
Major
Posts: 430
Joined: Wed Jul 15, 2009 1:52 pm
Location: London

Re: How to interface key pad with less number of MCU Pins ?

Post by Magneto » Mon Jul 20, 2009 7:25 am

Hi Friend ,

You can easily do this by one MCU pin , if your MCU have some ADC pins. then you have to make some hardware using voltage deviding resistors ,
which apply unique voltage on a ADC pin . when pressing each of the numeric switches ( 0 to 9 ).

Then you have to decode the voltage values into nemeric key values ,in the Microcontroller program ?

Good Luck
Post Reply

Return to “Microcontrollers”