home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / sci / electron / 18703 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.6 KB  |  35 lines

  1. Newsgroups: sci.electronics
  2. Path: sparky!uunet!think.com!yale.edu!spool.mu.edu!umn.edu!doug.cae.wisc.edu!kolstad
  3. From: kolstad@cae.wisc.edu (Joel Kolstad)
  4. Subject: Re: Keypad interface to HC11
  5. Organization: U of Wisconsin-Madison College of Engineering
  6. Date: 10 Nov 92 19:46:10 CST
  7. Message-ID: <1992Nov10.194610.8179@doug.cae.wisc.edu>
  8. References: <92315.190637DI3QC@CUNYVM.BITNET>
  9. Lines: 24
  10.  
  11. In article <92315.190637DI3QC@CUNYVM.BITNET> <DI3QC@CUNYVM.BITNET> writes:
  12. >     I am planning to interface a keypad to the io lines of an hc11. Does anyon
  13. >e have any suggestions on connecting a keypad. I was planning to scan the keypa
  14. >d by driving one of the rows hi and testing the columns. I was planning on test
  15. >ing this every 20ms. How would I take care of debouncing etc. Any suggestions.
  16.  
  17. You're on the right track...
  18.  
  19. Various places sell row/column encoded keypads.  Even Newark has some new
  20. 4x4 keypads that I like a lot (nice feel, you can get different colored
  21. keys, etc.) for a very reasonable $10-$15.  Surplus places often have 
  22. keypads for $1 or less, if you don't care what you're getting. :-)
  23.  
  24. If you scan every 20ms, you simply don't need to take care of debouncing --
  25. switches don't bounce for anywhere _near_ that long!  (Consider that most
  26. humans can hit a switch twice in somewhat <20ms -- go play with a stop
  27. watch...).
  28.  
  29. If you're lucky, someone will have already done the code for this, since
  30. it's a pretty common application (although it doesn't take very long to
  31. do it yourself, either).  You might want to check the Motorola BBS for
  32. this stuff.
  33.  
  34.                         ---Joel Kolstad
  35.