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.

3x3 keyboard interfacing with msp430

Status
Not open for further replies.

skarthikshines

Member level 5
Joined
Feb 21, 2011
Messages
81
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
2,060
hi,
i am beginner in programing. i tried to interface the keyboard with msp430 and i did successfully.. i referred some example circuit to interface keyboard. in one example they used pullup resistors with rows and column , and in second example they did t use the pull up resistors and in some other example they connect the column via diode and row with the pull up resistors.. i need to know what is the difference between this three example and which circuit will be a better one???
 

There are numerous ways of interfacing a keypad to a MCU, even a single wire interface is possible.

Can you post the schematics of the three examples? So that we may examine them and discuss their individual pros and cons.

Most keypad interfaces fall into two categories, Polling or Interrupt Serviceable.

BigDog
 

first one d.JPG
second one2.JPG
third one3.JPG
and i did coding for first method and its working perfectly.. suggest me which one is good..
 

They are all the same method - output one bit at a time and read back to see which input sees the bit.

There is another completely different method which most people overlook:
1. Drive all outputs high simultaneously,
2. Read back the inputs. Zero = no keys are pressed, otherwise...
3. Swap inputs and outputs over and drive the new outputs high simultaneously.
4. Read back the inputs.

You now have the row and column coordinates of the pressed key.
In PIC language it can be coded in very few instructions.

Brian.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top