home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / ibm / pc / hardware / 33588 < prev    next >
Encoding:
Text File  |  1992-12-18  |  3.4 KB  |  90 lines

  1. Newsgroups: comp.sys.ibm.pc.hardware
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!agate!linus!alliant!mydual!olson
  3. From: olson@mydual.uucp (Kirtland H. Olson)
  4. Subject: CORRECTED Joystick Diagram and More Data
  5. Message-ID: <1992Dec18.013143.476@mydual.uucp>
  6. Keywords: CORRECTION JOYSTICK VALUES PINOUT
  7. Reply-To: olson%mydual.uucp@alliant.com
  8. Organization: The Harvard Group, 01451-0667
  9. References: <724450360.15021@minster.york.ac.uk> <1992Dec16.153527.7309@mydual.uucp>
  10. Date: Fri, 18 Dec 1992 01:31:43 GMT
  11. Lines: 77
  12.  
  13. In article <1992Dec16.153527.7309@mydual.uucp> olson%mydual.uucp@alliant.com writes:
  14.  
  15. >In article <724450360.15021@minster.york.ac.uk> wgt-a@minster.york.ac.uk writes:
  16. >>Help! Does anyone know what value variable-resistors
  17. >>are required for the joysick port on an IBM PC?
  18. >
  19. >100K
  20. >
  21. >>And, as an aside, can anyone give a good reason why
  22. >>they used open ended resistors, necessitating (SP?)
  23. >>particular value resistors, when a potentiometer
  24. >>setup (as in the good ol' BBC) would have
  25. >>been MUCH more sensible?
  26. >
  27. >Because it's the timing resistor of a circuit whose pulse width can be
  28. >counted.  
  29. >
  30. >Here are the details of the joystick connection.
  31. >
  32. >You can attach two joysticks to the controller.  Each joystick follows
  33. >this wiring diagram:
  34. >
  35. >                   +------------------ 1,9 +5VDC
  36. >                   |                   
  37. >                   +---/\/\/\-- 0-100K
  38. >                   |     ^
  39. >                   |     |    X-coord
  40. >                   |     +------------ 3,11 Timer
  41. >                   |                   
  42. >                   +---/\/\/\-- 0-100K
  43. >                           ^
  44. >                           |  Y-coord
  45. >                           +---------- 6,13 Timer
  46. >
  47. >                   +------------------ 2,10 To 1k Pullups
  48. >                 | o  #1 Button
  49. >                 | o
  50. >                   +------------------ 4,12 GND
  51. >
  52. >                   +------------------ 7,14 To 1k Pullups
  53. >                 | o  #2 Button
  54. >                 | o
  55. >                   +------------------ 4,12 GND
  56. >
  57. >Pins 1-7 Are for Joystick A, pins 9-14 are for joystick B.  You can also
  58. >use paddles, having only one 0-100K pot and one button per controller. 
  59. >The data show up in the same place but are named differently.  Here's a
  60. >chart of the the byte at 201H:
  61. >
  62. >Bit     |  7  |  6  |  5  |  4  |  3  |  2  |  1  |  0  |
  63. >Joystick|B-#2 |B-#1 |A-#2 |A-#1 | B-Y | B-X | A-Y | A-X |
  64. >Paddle  |  D  |  C  |  B  |  A  |  D  |  C  |  B  |  A  |
  65. >Pin     | 14  | 10  |  7  |  2  | 13  | 11  |  6  |  3  |
  66. >Device  |<-------Buttons------->|<------Resistors------>|
  67. >
  68.  
  69.  
  70. Well, it confused me--so I got it wrong.  The buttons *do not* go to
  71. one-shots.  On the card, each button connects through 1000 Ohms to      
  72. +5VDC, through 51pF to ground, and to one input of the 74LS244 bus driver.  
  73.  
  74. Here's what the tech reference says:
  75.  
  76. The four digital inputs each have a 1-kilohm pullup resistor to +5 Vdc. 
  77. With no drives on these inputs, a 1 is read.  For a 0 reading, the
  78. inputs must be pulled to ground.
  79.  
  80. The trigger button inputs are read by an In from address hex 201.
  81.  
  82. Now as to the real position of the one-shots, they are on the resistor
  83. inputs to convert resistance to delay time.  
  84.  
  85. My thanks to geir.pedersen@usit.uio.no for questioning the prior post
  86. and makiing me realize my error.  My apologies to the rest of you.
  87.  
  88. -- 
  89. Kirtland H. Olson                     olson%mydual.uucp@alliant.com
  90.