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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/01/06 03:54
Read: times


 
#119500 - Taking samples
Responding to: ???'s previous message
Suresh said:
The code given in the text 'for scanning and identifying the key that is pressed' takes the switch press as 'continuously pressed' (a delay of 20msec is produced after switch press for debounce) and identifies the correct location(row,column) by setting each row zero and comparing with the column value.

So my doubt is, how would this comparison work? since the switch press would only produce a trigger pulse at the port but not a constant low level.

Yes, that's a weak point of every debouncing scheme! We can only hope, that the switch does only bounce for a certain maximum bounce duration.

Assume that typical bounce time is 5...10msec for a brand new switch, then you can expect a maximum bounce time of about 50msec for the same switch when it's aged. A good bouncing scheme samples the switch as often as possible and accepts a valid key pressing only, when for a period of 50msec there's not even one different reading. So, when you sample at a rate of 10msec, then 5 samples in a row must show an identical reading, and this reading must be in opposite to the last valid and stored key state (here key released) of course.

Kai

List of 36 messages in thread
TopicAuthorDate
4x3 keypad interfacing with At89c51            01/01/70 00:00      
   5 errors            01/01/70 00:00      
      Nice attitude!            01/01/70 00:00      
         If the approach is that anyone can get h            01/01/70 00:00      
            Do we know him?            01/01/70 00:00      
               Switch Depressed?            01/01/70 00:00      
                  continous and continous            01/01/70 00:00      
                     Thanks Erik!            01/01/70 00:00      
                  Taking samples            01/01/70 00:00      
                     debounce scheme.            01/01/70 00:00      
                        How to debounce without jumps and branch            01/01/70 00:00      
                           Thank you Kai...            01/01/70 00:00      
                           Having gone through your detailed descri            01/01/70 00:00      
                              Yes, I think so            01/01/70 00:00      
                                 Could you assist me to know that            01/01/70 00:00      
                                    Vertically incrementing            01/01/70 00:00      
                                       Thanks            01/01/70 00:00      
               Homework it is            01/01/70 00:00      
                  "Guilty"...            01/01/70 00:00      
   Post your code            01/01/70 00:00      
      2            01/01/70 00:00      
         There have been several threads            01/01/70 00:00      
         How to post code            01/01/70 00:00      
         why so complex            01/01/70 00:00      
         What Compiler ?            01/01/70 00:00      
            Compiler.KEIL            01/01/70 00:00      
         general idea            01/01/70 00:00      
            Diodes to prevent ghosting            01/01/70 00:00      
    Algorithm for Scanning 4*4 Keypad            01/01/70 00:00      
      thanks            01/01/70 00:00      
         If you'd searched, you'd have had this            01/01/70 00:00      
            Search term "4x4 keypad"            01/01/70 00:00      
   check this code.            01/01/70 00:00      
      Answers            01/01/70 00:00      
   Sorry kai.            01/01/70 00:00      
      keypad scanner in C            01/01/70 00:00      

Back to Subject List