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

Back to Subject List

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


 
#117205 - really, you can't have it both ways
Responding to: ???'s previous message
Scanning is an ongoing process if you don't want to miss a keystroke. You can, of course, use external hardware, but most people want to avoid that by scanning from the MCU. If you just scan every 1/60 second, that is probably frequently enough. 1/30 is probably frequently enough too. It's up to you. However, if you don't want to miss a keypress, you have to do it all the time.

There are external keypad scanners, e.g. the NSC 74C922 and 923 for 16- and 20-key keypads, respectively, but the added cost can be a problem when you get to review. They often are priced considerably higher than a dedicated 805x would be. They do, however, generate a strobe which will serve as an interrupt, and then present the code representing the key they've sensed pressed.

A pair of priority encoders can be pressed into service, too, or you can build a hardware scanner. I always believed the purpose of MCU's, however, was to reduce the clutter of hardware.

RE






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