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

  1. Newsgroups: comp.sys.ibm.pc.misc
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!spool.mu.edu!agate!linus!alliant!mydual!olson
  3. From: olson@mydual.uucp (Kirtland H. Olson)
  4. Subject: CORRECTED IBM PC Joystick Diagram and More Data
  5. Message-ID: <1992Dec18.014603.548@mydual.uucp>
  6. Keywords: CORRECTION JOYSTICK VALUES SCHEMATIC DIAGRAM
  7. Reply-To: olson%mydual.uucp@alliant.com
  8. Organization: The Harvard Group, 01451-0667
  9. Date: Fri, 18 Dec 1992 01:46:03 GMT
  10. Lines: 61
  11.  
  12. On Fri Nov 20 08:27:04 EST 1992, message <1992Nov19.174707.8487@mydual.uucp>
  13. I posted a schematic with a confusing error.  Correct version follows:
  14.  
  15. You can attach two joysticks to the controller.  Each joystick follows
  16. this wiring diagram:
  17.  
  18.                    +------------------ 1,9 +5VDC
  19.                    |                   
  20.                    +---/\/\/\-- 0-100K
  21.                    |     ^
  22.                    |     |    X-coord
  23.                    |     +------------ 3,11 Timer
  24.                    |                   
  25.                    +---/\/\/\-- 0-100K
  26.                            ^
  27.                            |  Y-coord
  28.                            +---------- 6,13 Timer
  29.  
  30.                    +------------------ 2,10 To 1k Pullup
  31.                  | o  #1 Button
  32.                  | o
  33.                    +------------------ 4,12 GND
  34.  
  35.                    +------------------ 7,14 To 1k Pullup
  36.                  | o  #2 Button
  37.                  | o
  38.                    +------------------ 4,12 GND
  39.  
  40. Pins 1-7 Are for Joystick A, pins 9-14 are for joystick B.  You can also
  41. use paddles, having only one 0-100K pot and one button per controller. 
  42. The data show up in the same place but are named differently.  Here's a
  43. chart of the the byte at 201H:
  44.  
  45. Bit     |  7  |  6  |  5  |  4  |  3  |  2  |  1  |  0  |
  46. Joystick|B-#2 |B-#1 |A-#2 |A-#1 | B-Y | B-X | A-Y | A-X |
  47. Paddle  |  D  |  C  |  B  |  A  |  D  |  C  |  B  |  A  |
  48. Pin     | 14  | 10  |  7  |  2  | 13  | 11  |  6  |  3  |
  49. Device  |<-------Buttons------->|<------Resistors------>|
  50.  
  51. Explanation and additional info:
  52.  
  53. Well, it confused me--so I got it wrong.  The buttons *do not* go to
  54. one-shots.  On the card, each button connects through 1000 Ohms to      
  55. +5VDC, through 51pF to ground, and to one input of the 74LS244 bus driver.  
  56.  
  57. Here's what the tech reference says:
  58.  
  59. The four digital inputs each have a 1-kilohm pullup resistor to +5 Vdc. 
  60. With no drives on these inputs, a 1 is read.  For a 0 reading, the
  61. inputs must be pulled to ground.
  62.  
  63. The trigger button inputs are read by an In from address hex 201.
  64.  
  65. Now as to the real position of the one-shots, they are on the resistor
  66. inputs to convert resistance to delay time.  
  67.  
  68. My thanks to geir.pedersen@usit.uio.no for questioning the prior post
  69. and makeing me realize my error.  My apologies to the rest of you.
  70.  
  71. -- 
  72. Kirtland H. Olson                     olson%mydual.uucp@alliant.com
  73.