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.

4x4keypad code of pic16f877 in C language needed

Status
Not open for further replies.

osha

Member level 2
Joined
Nov 20, 2005
Messages
42
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Location
egypt
Activity points
1,623
it is important

hi
i want 4x4keypad code of pic16f877 without using encoder in interface
please with c languge i ask about it more time in forum there is no any on give me perfect answer:cry: .
any way thanks for any help
 

Re: it is important

Hi Osha,
Don't worry here is the solution to your problem.
1) Firstly take a voltmeter and determine the coded sequence of the keyborad you have for each key now you know the hex code for each key. Now save these values in a lookup table.
2) Now for each key test the values with the mask set against a port where you ahve interface the keyborad with say 30ms dealy for debounce.
3) if this values is still available at the port accept it or reject it.

There is another way to this that will eliminate the sofware loops and dealys for you that would be by building a "chatter-free ciruit" at keyboard interface. For this you need a latch which detects the level transition in voltage when a key is pressed for you you just have to read the value straight from the port.

~Kalyan.
 

Re: it is important

How about this
 

Re: it is important

i think this solution(measure coded value if i have encoder) or what?


and ican't understand 2nd solution ,how?

for 2nd answer this code for avr iwant code for pic 16f877

please more detail,thanks.
 

Re: it is important

I can only give you info about AVR. But if you Google I think you can find a lot of info.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top