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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/06/04 07:22
Read: times


 
#76949 - RE: debouncing for matrix keypad ?
Responding to: ???'s previous message

1- when key is pressed the routine reads correctly a low state at the first reading. then everything is ok because routine correctly reports a key at the first call and in consecutive calls as you said there is abosolutely no worry because it has been debounced anyway.

2- when key is pressed the routine reads falsely a high state at the first reading. then again everything is ok because routine does not report any key at the first call but in the next call it has been debounced anyway and the routine reports a pressed key.



do you want to say

1. scan the key without worriying if it is bouncing. if your ods are in favour you will get it when its is down.which is the best case and in this case nop need to wait for 30 msescs and you get the key instantly.

2. in worst case if you missed it falsely on first scan you will certainly read it correctly if it is down.

if i'm right this can be done following way

1. read the key if it is down go to step 3.
2. perform debaouncing delay. go to step 1
3. exit

in worst case it is similar to our old method.

in best case you will save 100 msecs. but this saving is not significant as you must delay again to achieve certain repeat rate of the keystrokes. this may be benificial if you dont want to repeat the keystroke and use it only once.


abhishek







List of 37 messages in thread
TopicAuthorDate
debouncing for matrix keypad ?            01/01/70 00:00      
   RE: debouncing for matrix keypad ?            01/01/70 00:00      
   correction            01/01/70 00:00      
   RE: debouncing for matrix keypad ?            01/01/70 00:00      
      RE: debouncing for matrix keypad ?            01/01/70 00:00      
         RE: debouncing for matrix keypad ?            01/01/70 00:00      
            RE: debouncing for matrix keypad ?            01/01/70 00:00      
         RE: debouncing for matrix keypad ?            01/01/70 00:00      
            RE: debouncing for matrix keypad ?            01/01/70 00:00      
               RE: debouncing for matrix keypad ?            01/01/70 00:00      
            RE: debouncing for matrix keypad ?            01/01/70 00:00      
               RE: debouncing for matrix keypad ?            01/01/70 00:00      
                  RE: debouncing for matrix keypad ?            01/01/70 00:00      
                     RE: debouncing for matrix keypad ?            01/01/70 00:00      
                        RE: debouncing for matrix keypad ?            01/01/70 00:00      
                           RE: debouncing for matrix keypad ?            01/01/70 00:00      
                              almost            01/01/70 00:00      
                                 RE: almost            01/01/70 00:00      
                                    RE: almost            01/01/70 00:00      
                                       RE: almost            01/01/70 00:00      
         RE: debouncing for matrix keypad ?            01/01/70 00:00      
            RE: debouncing for matrix keypad ?            01/01/70 00:00      
               RE: debouncing for matrix keypad ?            01/01/70 00:00      
                  RE: debouncing for matrix keypad ?            01/01/70 00:00      
                     RE: debouncing for matrix keypad ?            01/01/70 00:00      
                        RE: debouncing for matrix keypad ?            01/01/70 00:00      
            RE: debouncing for matrix keypad ?            01/01/70 00:00      
   my example code            01/01/70 00:00      
      RE: my example code            01/01/70 00:00      
   RE: debouncing for matrix keypad ?            01/01/70 00:00      
      RE: debouncing for matrix keypad ?            01/01/70 00:00      
   RE: debouncing for matrix keypad ?            01/01/70 00:00      
      RE: debouncing for matrix keypad ?            01/01/70 00:00      
   4k7 does not present a strong pull-up!            01/01/70 00:00      
      RE: 4k7 does not present a strong pull-u            01/01/70 00:00      
         RE: 4k7 does not present a strong pull-u            01/01/70 00:00      
            RE: 4k7 does not present a strong pull-u            01/01/70 00:00      

Back to Subject List