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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/29/06 01:58
Read: times


 
#117207 - Keypad
Responding to: ???'s previous message

The usual way is to scan the keypad as you know. I usually have a timer tick interrupt for my system timing and I would usually have it do the keypad scanning also. The keypad scan normally doesn't have much overhead so it usually won't impact on the system unduly. To retrieve the keypresses I have a task that runs regularly that determines the key pressed and processes that key. Since I use a co-operative task switcher, I write my code so that it does what it needs to and exits - this usually means using a 'finite state machine' to create a menu system.

Using these techniques I easily write code that can process serial communications, have a user interface, do various control logic and convert analog inputs - all without having to resort to a RTOS.

List of 28 messages in thread
TopicAuthorDate
passive matrix keyboard readout            01/01/70 00:00      
   yep use the dallas switch debouncers            01/01/70 00:00      
      really, you can't have it both ways            01/01/70 00:00      
   Keypad            01/01/70 00:00      
      what???long weekend maybe            01/01/70 00:00      
         dedicated HW in some '51s            01/01/70 00:00      
   watch human reaction speed            01/01/70 00:00      
   derivative with interrupt on pin change            01/01/70 00:00      
      Or use a maxim 6816            01/01/70 00:00      
         I use SW debouncing...            01/01/70 00:00      
   Can reduce time spent in ISR Key Scan            01/01/70 00:00      
   Use tiny slave micro            01/01/70 00:00      
      Makes sense!            01/01/70 00:00      
         Programming the slave micro            01/01/70 00:00      
            $0            01/01/70 00:00      
               Non-zero cost            01/01/70 00:00      
                  who cares            01/01/70 00:00      
                     The folks who pay will care            01/01/70 00:00      
                        You apply what I said about apples to or            01/01/70 00:00      
                           you missed my meaning            01/01/70 00:00      
                              OK, I'll clarify            01/01/70 00:00      
            Costs? He needs to solve it anyway...            01/01/70 00:00      
               Tme is money            01/01/70 00:00      
                  contradictory            01/01/70 00:00      
         Key bounce.            01/01/70 00:00      
            use a LPC            01/01/70 00:00      
               any MCU will work            01/01/70 00:00      
                  with a LPC you can do either            01/01/70 00:00      

Back to Subject List