home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / sci / electron / 23567 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.3 KB  |  67 lines

  1. Newsgroups: sci.electronics
  2. Path: sparky!uunet!charon.amdahl.com!amdahl!rtech!pacbell.com!ames!agate!apple!mumbo.apple.com!gallant.apple.com!apple.com!alan
  3. From: alan@apple.com (Alan Mimms)
  4. Subject: Re: Pinouts for 15-pin IBM GamePort?
  5. Sender: news@gallant.apple.com
  6. Message-ID: <1993Jan28.002214.6218@gallant.apple.com>
  7. Date: Thu, 28 Jan 1993 00:22:14 GMT
  8. References: <jeremym.727842907@sfu.ca>
  9. Organization: Apple Computer, Inc.
  10. Lines: 55
  11.  
  12. In article <jeremym.727842907@sfu.ca>, jeremym@fraser.sfu.ca (Jeremy Thomas McDonald) writes:
  13. > Does anyone have the pinouts for the IBM-compatible 15-pin GamePort?
  14. > What is the current rating on the +5v pin, if there is a +5v pin?
  15. > Thanks in advance.
  16. > email to: jeremym@fraser.sfu.ca
  17. > -------------------------------
  18. > yes, a lowly university student
  19.  
  20. I am looking at a thing called "Interfacing to the IBM Personal Computer"
  21. (second edition -- ISBN 0-672-22722-3) which gives the following information:
  22.  
  23. An OUT instruction (any data) to port 0x201 starts four one-shot timers
  24. whose time value is dependent on the value of four external resistors
  25. (presumably pots attached to a joystick).  IN instructions from that
  26. same port show the state of the one-shots and the game port switches
  27. (there are four).
  28.  
  29. Bit     Description        Pin
  30.  
  31.  0      One shot output    n/a
  32.  1      One shot output    n/a
  33.  2      One shot output    n/a
  34.  3      One shot output    n/a
  35.  4      Switch #1 in        2
  36.  5      Switch #2 in        7
  37.  6      Switch #3 in       10
  38.  7      Switch #4 in       14
  39.  
  40. The pinout is as follows
  41.  
  42. Pin #1 is +5V
  43. Pin #2 is switch 1 (ground to turn ON, I think)
  44. Pin #3 is the wiper of potentiometer #1 (other end should be on +5V)
  45. Pin #4 is ground
  46. Pin #5 is ground
  47. Pin #6 is the wiper of potentiometer #2 (other end should be on +5V)
  48. Pin #7 is switch 2 (ground to turn ON, I think)
  49. Pin #8 is +5V
  50. Pin #9 is +5V
  51. Pin #10 is switch 3 (ground to turn ON, I think)
  52. Pin #11 is the wiper of potentiometer #3 (other end should be on +5V)
  53. Pin #12 is ground
  54. Pin #13 is the wiper of potentiometer #4 (other end should be on +5V)
  55. Pin #14 is switch 4 (ground to turn ON, I think)
  56. Pin #15 is +5V
  57.  
  58. The potentiometers govern the (approximate) one-shot time by the formula
  59.  
  60.    time = 24.2 + 0.011 * (resistance)
  61.  
  62. Hope this helps.  By the way, this book is pretty good.
  63.  
  64.