amijoy.txt 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. Amiga 4-joystick parport extension
  2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3. Parallel port pins:
  4. (2) - Up1 (6) - Up2
  5. (3) - Down1 (7) - Down2
  6. (4) - Left1 (8) - Left2
  7. (5) - Right1 (9) - Right2
  8. (13) - Fire1 (11) - Fire2
  9. (18) - Gnd1 (18) - Gnd2
  10. Amiga digital joystick pinout
  11. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  12. (1) - Up
  13. (2) - Down
  14. (3) - Left
  15. (4) - Right
  16. (5) - n/c
  17. (6) - Fire button
  18. (7) - +5V (50mA)
  19. (8) - Gnd
  20. (9) - Thumb button
  21. Amiga mouse pinout
  22. ~~~~~~~~~~~~~~~~~~
  23. (1) - V-pulse
  24. (2) - H-pulse
  25. (3) - VQ-pulse
  26. (4) - HQ-pulse
  27. (5) - Middle button
  28. (6) - Left button
  29. (7) - +5V (50mA)
  30. (8) - Gnd
  31. (9) - Right button
  32. Amiga analog joystick pinout
  33. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34. (1) - Top button
  35. (2) - Top2 button
  36. (3) - Trigger button
  37. (4) - Thumb button
  38. (5) - Analog X
  39. (6) - n/c
  40. (7) - +5V (50mA)
  41. (8) - Gnd
  42. (9) - Analog Y
  43. Amiga lightpen pinout
  44. ~~~~~~~~~~~~~~~~~~~~~
  45. (1) - n/c
  46. (2) - n/c
  47. (3) - n/c
  48. (4) - n/c
  49. (5) - Touch button
  50. (6) - /Beamtrigger
  51. (7) - +5V (50mA)
  52. (8) - Gnd
  53. (9) - Stylus button
  54. -------------------------------------------------------------------------------
  55. NAME rev ADDR type chip Description
  56. JOY0DAT 00A R Denise Joystick-mouse 0 data (left vert, horiz)
  57. JOY1DAT 00C R Denise Joystick-mouse 1 data (right vert,horiz)
  58. These addresses each read a 16 bit register. These in turn
  59. are loaded from the MDAT serial stream and are clocked in on
  60. the rising edge of SCLK. MLD output is used to parallel load
  61. the external parallel-to-serial converter.This in turn is
  62. loaded with the 4 quadrature inputs from each of two game
  63. controller ports (8 total) plus 8 miscellaneous control bits
  64. which are new for LISA and can be read in upper 8 bits of
  65. LISAID.
  66. Register bits are as follows:
  67. Mouse counter usage (pins 1,3 =Yclock, pins 2,4 =Xclock)
  68. BIT# 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
  69. JOY0DAT Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 X7 X6 X5 X4 X3 X2 X1 X0
  70. JOY1DAT Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 X7 X6 X5 X4 X3 X2 X1 X0
  71. 0=LEFT CONTROLLER PAIR, 1=RIGHT CONTROLLER PAIR.
  72. (4 counters total). The bit usage for both left and right
  73. addresses is shown below. Each 6 bit counter (Y7-Y2,X7-X2) is
  74. clocked by 2 of the signals input from the mouse serial
  75. stream. Starting with first bit received:
  76. +-------------------+-----------------------------------------+
  77. | Serial | Bit Name | Description |
  78. +--------+----------+-----------------------------------------+
  79. | 0 | M0H | JOY0DAT Horizontal Clock |
  80. | 1 | M0HQ | JOY0DAT Horizontal Clock (quadrature) |
  81. | 2 | M0V | JOY0DAT Vertical Clock |
  82. | 3 | M0VQ | JOY0DAT Vertical Clock (quadrature) |
  83. | 4 | M1V | JOY1DAT Horizontal Clock |
  84. | 5 | M1VQ | JOY1DAT Horizontal Clock (quadrature) |
  85. | 6 | M1V | JOY1DAT Vertical Clock |
  86. | 7 | M1VQ | JOY1DAT Vertical Clock (quadrature) |
  87. +--------+----------+-----------------------------------------+
  88. Bits 1 and 0 of each counter (Y1-Y0,X1-X0) may be
  89. read to determine the state of the related input signal pair.
  90. This allows these pins to double as joystick switch inputs.
  91. Joystick switch closures can be deciphered as follows:
  92. +------------+------+---------------------------------+
  93. | Directions | Pin# | Counter bits |
  94. +------------+------+---------------------------------+
  95. | Forward | 1 | Y1 xor Y0 (BIT#09 xor BIT#08) |
  96. | Left | 3 | Y1 |
  97. | Back | 2 | X1 xor X0 (BIT#01 xor BIT#00) |
  98. | Right | 4 | X1 |
  99. +------------+------+---------------------------------+
  100. -------------------------------------------------------------------------------
  101. NAME rev ADDR type chip Description
  102. JOYTEST 036 W Denise Write to all 4 joystick-mouse counters at once.
  103. Mouse counter write test data:
  104. BIT# 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
  105. JOYxDAT Y7 Y6 Y5 Y4 Y3 Y2 xx xx X7 X6 X5 X4 X3 X2 xx xx
  106. JOYxDAT Y7 Y6 Y5 Y4 Y3 Y2 xx xx X7 X6 X5 X4 X3 X2 xx xx
  107. -------------------------------------------------------------------------------
  108. NAME rev ADDR type chip Description
  109. POT0DAT h 012 R Paula Pot counter data left pair (vert, horiz)
  110. POT1DAT h 014 R Paula Pot counter data right pair (vert,horiz)
  111. These addresses each read a pair of 8 bit pot counters.
  112. (4 counters total). The bit assignment for both
  113. addresses is shown below. The counters are stopped by signals
  114. from 2 controller connectors (left-right) with 2 pins each.
  115. BIT# 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
  116. RIGHT Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 X7 X6 X5 X4 X3 X2 X1 X0
  117. LEFT Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 X7 X6 X5 X4 X3 X2 X1 X0
  118. +--------------------------+-------+
  119. | CONNECTORS | PAULA |
  120. +-------+------+-----+-----+-------+
  121. | Loc. | Dir. | Sym | pin | pin |
  122. +-------+------+-----+-----+-------+
  123. | RIGHT | Y | RX | 9 | 33 |
  124. | RIGHT | X | RX | 5 | 32 |
  125. | LEFT | Y | LY | 9 | 36 |
  126. | LEFT | X | LX | 5 | 35 |
  127. +-------+------+-----+-----+-------+
  128. With normal (NTSC or PAL) horiz. line rate, the pots will
  129. give a full scale (FF) reading with about 500kohms in one
  130. frame time. With proportionally faster horiz line times,
  131. the counters will count proportionally faster.
  132. This should be noted when doing variable beam displays.
  133. -------------------------------------------------------------------------------
  134. NAME rev ADDR type chip Description
  135. POTGO 034 W Paula Pot port (4 bit) bi-direction and data, and pot counter start.
  136. -------------------------------------------------------------------------------
  137. NAME rev ADDR type chip Description
  138. POTINP 016 R Paula Pot pin data read
  139. This register controls a 4 bit bi-direction I/O port
  140. that shares the same 4 pins as the 4 pot counters above.
  141. +-------+----------+---------------------------------------------+
  142. | BIT# | FUNCTION | DESCRIPTION |
  143. +-------+----------+---------------------------------------------+
  144. | 15 | OUTRY | Output enable for Paula pin 33 |
  145. | 14 | DATRY | I/O data Paula pin 33 |
  146. | 13 | OUTRX | Output enable for Paula pin 32 |
  147. | 12 | DATRX | I/O data Paula pin 32 |
  148. | 11 | OUTLY | Out put enable for Paula pin 36 |
  149. | 10 | DATLY | I/O data Paula pin 36 |
  150. | 09 | OUTLX | Output enable for Paula pin 35 |
  151. | 08 | DATLX | I/O data Paula pin 35 |
  152. | 07-01 | X | Not used |
  153. | 00 | START | Start pots (dump capacitors,start counters) |
  154. +-------+----------+---------------------------------------------+
  155. -------------------------------------------------------------------------------