CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Keypad scanning design problem!

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
muahaha



Joined: 11 Oct 2005
Posts: 4

View user's profile Send private message

Keypad scanning design problem!
PostPosted: Wed Jan 04, 2006 4:03 am     Reply with quote

Can anybody help me about finding the nominal time value for a human pressing a key? Then i will try to write a program for keypad debouncing and scanning... I will try to use only two pins of a PIC microcontroller which supports stand by function for reduced power consumption, to scan and check 16 key and i want to catch the pressed key by using a capacitor's charge and discharge time and also i don't know this capacitor value and other remaining resistances. I am open for all design suggestions. Thanks for your interest!

Last edited by muahaha on Wed Jan 04, 2006 4:16 pm; edited 2 times in total
blinky465



Joined: 03 Jan 2006
Posts: 8

View user's profile Send private message

PostPosted: Wed Jan 04, 2006 5:14 am     Reply with quote

I suppose it depends who is doing the typing!
My sister spends ages pressing the keys (especially the tricky little blighters, like x and v which have a habit of becoming invisible on the bottom row) whereas I tend to touch-type quite quickly.

You can introduce hardware limits, but personally I like to control as much as possible in software. I would try to write my scanning routine to run as quickly as possible, include a debounce routine, then put a "check for release or time-out" routine before checking or responding to the same key again.
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Wed Jan 04, 2006 9:01 am     Reply with quote

I use this. Works well.
2.2uF cap
Note the interupt p3.2 which I run into the PIC ext interupt.
http://www.edn.com/contents/images/601828f1.pdf
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group