Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/22/08 07:43
Read: times


 
#157653 - One Suggestion
Responding to: ???'s previous message
Dear Chaitanya,

I have one suggestion that DONOT wait for a key press(while(col==0xff); use a timer isr instead(if your application permits).

Do it as follows,

1. for each instance of isr scan only one column check if you read any 0 bit on rows. If yes store it in one variable
2. ofcourse next instance will scan next column.
3. in this fashion 8 instances will cover 8 columns(lets call this as on set of scans).
4. if you find same key pressed for atleast (M) sets of scans, treat it as valid key(decide M by time of debounce required & what is configured in THx & TLx)
5. if you find 2 of the columns (N)th & (N + i)th has a key press; then depending on your need can ignore both or ignore one & store only another in variable.

Regards,
Mahesh


List of 15 messages in thread
TopicAuthorDate
problem in 8x8 keypad            01/01/70 00:00      
   I see ...            01/01/70 00:00      
      this code with correction            01/01/70 00:00      
         Try the Insert Code button.            01/01/70 00:00      
            code with comment            01/01/70 00:00      
               Lots of things to look into            01/01/70 00:00      
                  reply            01/01/70 00:00      
                     One way to debounce            01/01/70 00:00      
               One Suggestion            01/01/70 00:00      
                  the easy way to do keypads            01/01/70 00:00      
   indent, indent, indent            01/01/70 00:00      
   problem in keypad            01/01/70 00:00      
      Where is the code?            01/01/70 00:00      
         code of 8x8 keypad            01/01/70 00:00      
            Simplify and think about debounce            01/01/70 00:00      

Back to Subject List