amijoy.rst 11 KB

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