home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / msdos / programm / 2993 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  2.7 KB

  1. Path: sparky!uunet!olivea!hal.com!darkstar.UCSC.EDU!helios.UCSC.EDU!ted
  2. From: ted@helios.UCSC.EDU (Ted Cantrall)
  3. Newsgroups: alt.msdos.programmer
  4. Subject: Re: Two Joystick Port prob
  5. Message-ID: <1h7cj2INNe9r@darkstar.UCSC.EDU>
  6. Date: 22 Dec 92 15:34:58 GMT
  7. References: <1992Dec10.205227.14353@news2.cis.umn.edu> <1gj859INNd2t@flop.ENGR.ORST.EDU> <1gkrapINN606@nz12.rz.uni-karlsruhe.de>
  8. Organization: UCO/Lick Observatory
  9. Lines: 59
  10. NNTP-Posting-Host: helios.ucsc.edu
  11.  
  12. Here is part of a post I snagged from the net a while back.
  13.  
  14. In article <724450360.15021@minster.york.ac.uk> wgt-a@minster.york.ac.uk writes:
  15. >Help! Does anyone know what value variable-resistors
  16. >are required for the joysick port on an IBM PC?
  17.  
  18. 100K
  19.  
  20. >And, as an aside, can anyone give a good reason why
  21. >they used open ended resistors, necessitating (SP?)
  22. >particular value resistors, when a potentiometer
  23. >setup (as in the good ol' BBC) would have
  24. >been MUCH more sensible?
  25.  
  26. Because it's the timing resistor of a circuit whose pulse width can be
  27. counted.  
  28.  
  29. Here are the details of the joystick connection.
  30.  
  31. You can attach two joysticks to the controller.  Each joystick follows
  32. this wiring diagram:
  33.  
  34.                    +------------------ 1,9 +5VDC
  35.                    |                   
  36.                    +---/\/\/\-- 0-100K
  37.                    |     ^
  38.                    |     |    X-coord
  39.                    |     +------------ 3,11 Timer
  40.                    |                   
  41.                    +---/\/\/\-- 0-100K
  42.                            ^
  43.                            |  Y-coord
  44.                            +---------- 6,13 Timer
  45.  
  46.                    +------------------ 2,10 One-Shots
  47.                  | o  #1 Button
  48.                  | o
  49.                    +------------------ 4,12 GND
  50.  
  51.                    +------------------ 7,14 One-Shots
  52.                  | o  #2 Button
  53.                  | o
  54.                    +------------------ 4,12 GND
  55.  
  56. Pins 1-7 Are for Joystick A, pins 9-14 are for joystick B.  You can also
  57. use paddles, having only one 0-100K pot and one button per controller. 
  58. The data show up in the same place but are named differently.  Here's a
  59. chart of the the byte at 201H:
  60.  
  61. Bit     |  7  |  6  |  5  |  4  |  3  |  2  |  1  |  0  |
  62. Joystick|B-#2 |B-#1 |A-#2 |A-#1 | B-Y | B-X | A-Y | A-X |
  63. Paddle  |  D  |  C  |  B  |  A  |  D  |  C  |  B  |  A  |
  64. Pin     | 14  | 10  |  7  |  2  | 13  | 11  |  6  |  3  |
  65. Device  |<-------Buttons------->|<------Resistors------>|
  66.  
  67. ----------------------------Univ Calif @ Santa Cruz----------------------------
  68. ted@helios.ucsc.edu |"He has showed you, O man, what is good; and what does the
  69. W (408)459-2110     |Lord require of you but to do justice and to love kindness
  70. H (408)423-2444     |and to walk humbly with your God?" Micah 6:8 (RSV)
  71.