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

  1. Newsgroups: sci.electronics
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!ames!sun-barr!cs.utexas.edu!convex!constellation!osuunx.ucc.okstate.edu!olesun!gcouger
  3. From: gcouger@olesun.okstate.edu (Gordon Couger)
  4. Subject: Re: Keypad interface to HC11
  5. Message-ID: <1992Nov11.054300.11569@osuunx.ucc.okstate.edu>
  6. Sender: news@osuunx.ucc.okstate.edu (USENET News System)
  7. Nntp-Posting-Host: olesun.agen.okstate.edu
  8. Organization: Oklahoma State University, Stillwater
  9. References: <92315.190637DI3QC@CUNYVM.BITNET>
  10. Date: Wed, 11 Nov 1992 05:43:00 GMT
  11. Lines: 22
  12.  
  13. In article <92315.190637DI3QC@CUNYVM.BITNET> <DI3QC@CUNYVM.BITNET> writes:
  14. >     I am planning to interface a keypad to the io lines of an hc11. Does anyon
  15. >e have any suggestions on connecting a keypad. I was planning to scan the keypa
  16. >d by driving one of the rows hi and testing the columns. I was planning on test
  17. >ing this every 20ms. How would I take care of debouncing etc. Any suggestions.
  18.  
  19. I have come up with several solutions. Use a telephone key pad it fits on a 
  20. single port and much more elegant solution is to connect resistors
  21. across the key pad and using it for a voltage divider, saw this in Electronics
  22. & wireless  World. Hook up the key pad with the resister and put a resistor
  23. in series with the  key pad v+ and v-. Hook one of the pins of port 
  24. E (watch out putting it on E0 if you are using BUFFALO it jumps to EEPROM
  25. if E is high. and do an  A/D  and find the key board data using a single port.
  26.  
  27. A good deal of  thought is required to figure out the resistor net work. 
  28. Diodes might be need to prevent unwanted current paths.
  29.  
  30. Hope this helps,
  31. Gordon
  32.  
  33. AB5Dg   Agriculture Engineering Oklahoma State University
  34. gcouger@olesun.agen.okstate.edu 405-744-6514 day 744-2794 evenings   
  35.