joystick-parport.rst 21.1 KB
Newer Older
1 2 3 4
.. include:: <isonum.txt>

.. _joystick-parport:

5
==============================
6
Parallel Port Joystick Drivers
7
==============================
8 9 10 11 12 13 14 15 16 17 18

:Copyright: |copy| 1998-2000 Vojtech Pavlik <vojtech@ucw.cz>
:Copyright: |copy| 1998 Andree Borrmann <a.borrmann@tu-bs.de>


Sponsored by SuSE

Disclaimer
==========

Any information in this file is provided as-is, without any guarantee that
L
Linus Torvalds 已提交
19 20 21 22
it will be true. So, use it at your own risk. The possible damages that can
happen include burning your parallel port, and/or the sticks and joystick
and maybe even more. Like when a lightning kills you it is not our problem.

23 24
Introduction
============
25 26

The joystick parport drivers are used for joysticks and gamepads not
L
Linus Torvalds 已提交
27 28 29 30 31 32
originally designed for PCs and other computers Linux runs on. Because of
that, PCs usually lack the right ports to connect these devices to. Parallel
port, because of its ability to change single bits at will, and providing
both output and input bits is the most suitable port on the PC for
connecting such devices.

33 34 35 36
Devices supported
=================

Many console and 8-bit computer gamepads and joysticks are supported. The
L
Linus Torvalds 已提交
37 38
following subsections discuss usage of each.

39 40 41 42
NES and SNES
------------

The Nintendo Entertainment System and Super Nintendo Entertainment System
L
Linus Torvalds 已提交
43 44 45 46 47
gamepads are widely available, and easy to get. Also, they are quite easy to
connect to a PC, and don't need much processing speed (108 us for NES and
165 us for SNES, compared to about 1000 us for PC gamepads) to communicate
with them.

48
All NES and SNES use the same synchronous serial protocol, clocked from
L
Linus Torvalds 已提交
49
the computer's side (and thus timing insensitive). To allow up to 5 NES
50 51 52
and/or SNES gamepads and/or SNES mice connected to the parallel port at once,
the output lines of the parallel port are shared, while one of 5 available
input lines is assigned to each gamepad.
L
Linus Torvalds 已提交
53

54
This protocol is handled by the gamecon.c driver, so that's the one
55
you'll use for NES, SNES gamepads and SNES mice.
L
Linus Torvalds 已提交
56

57
The main problem with PC parallel ports is that they don't have +5V power
L
Linus Torvalds 已提交
58 59 60 61 62
source on any of their pins. So, if you want a reliable source of power
for your pads, use either keyboard or joystick port, and make a pass-through
cable. You can also pull the power directly from the power supply (the red
wire is +5V).

63
If you want to use the parallel port only, you can take the power is from
L
Linus Torvalds 已提交
64 65 66
some data pin. For most gamepad and parport implementations only one pin is
needed, and I'd recommend pin 9 for that, the highest data bit. On the other
hand, if you are not planning to use anything else than NES / SNES on the
67
port, anything between and including pin 4 and pin 9 will work::
L
Linus Torvalds 已提交
68

69
    (pin 9) -----> Power
L
Linus Torvalds 已提交
70

71
Unfortunately, there are pads that need a lot more of power, and parallel
L
Linus Torvalds 已提交
72 73
ports that can't give much current through the data pins. If this is your
case, you'll need to use diodes (as a prevention of destroying your parallel
74
port), and combine the currents of two or more data bits together::
L
Linus Torvalds 已提交
75

76 77 78 79 80 81 82 83 84 85
	      Diodes
    (pin 9) ----|>|-------+------> Power
			|
    (pin 8) ----|>|-------+
			|
    (pin 7) ----|>|-------+
			|
    <and so on>         :
			|
    (pin 4) ----|>|-------+
L
Linus Torvalds 已提交
86

87 88
Ground is quite easy. On PC's parallel port the ground is on any of the
pins from pin 18 to pin 25. So use any pin of these you like for the ground::
L
Linus Torvalds 已提交
89

90
    (pin 18) -----> Ground
L
Linus Torvalds 已提交
91

92
NES and SNES pads have two input bits, Clock and Latch, which drive the
L
Linus Torvalds 已提交
93
serial transfer. These are connected to pins 2 and 3 of the parallel port,
94
respectively::
L
Linus Torvalds 已提交
95

96 97
    (pin 2) -----> Clock
    (pin 3) -----> Latch
L
Linus Torvalds 已提交
98

99 100
And the last thing is the NES / SNES data wire. Only that isn't shared and
each pad needs its own data pin. The parallel port pins are::
L
Linus Torvalds 已提交
101

102 103 104 105 106
    (pin 10) -----> Pad 1 data
    (pin 11) -----> Pad 2 data
    (pin 12) -----> Pad 3 data
    (pin 13) -----> Pad 4 data
    (pin 15) -----> Pad 5 data
L
Linus Torvalds 已提交
107

108
Note that pin 14 is not used, since it is not an input pin on the parallel
L
Linus Torvalds 已提交
109 110
port.

111
This is everything you need on the PC's side of the connection, now on to
L
Linus Torvalds 已提交
112 113 114 115 116 117
the gamepads side. The NES and SNES have different connectors. Also, there
are quite a lot of NES clones, and because Nintendo used proprietary
connectors for their machines, the cloners couldn't and used standard D-Cannon
connectors. Anyway, if you've got a gamepad, and it has buttons A, B, Turbo
A, Turbo B, Select and Start, and is connected through 5 wires, then it is
either a NES or NES clone and will work with this connection. SNES gamepads
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
also use 5 wires, but have more buttons. They will work as well, of course::

  Pinout for NES gamepads                 Pinout for SNES gamepads and mice

             +----> Power                   +-----------------------\
             |                            7 | o  o  o  o |  x  x  o  | 1
   5 +---------+  7                         +-----------------------/
     | x  x  o   \                            |  |  |  |          |
     | o  o  o  o |                           |  |  |  |          +-> Ground
   4 +------------+ 1                         |  |  |  +------------> Data
       |  |  |  |                             |  |  +---------------> Latch
       |  |  |  +-> Ground                    |  +------------------> Clock
       |  |  +----> Clock                     +---------------------> Power
       |  +-------> Latch
       +----------> Data

  Pinout for NES clone (db9) gamepads     Pinout for NES clone (db15) gamepads

        +---------> Clock                    +-----------------> Data
        | +-------> Latch                    |             +---> Ground
        | | +-----> Data                     |             |
        | | |                              ___________________
L
Linus Torvalds 已提交
140 141 142 143
    _____________                        8 \ o x x x x x x o / 1
  5 \ x o o o x / 1                         \ o x x o x x o /
     \ x o x o /                          15 `~~~~~~~~~~~~~' 9
    9 `~~~~~~~' 6                             |     |     |
144 145 146 147 148 149
         |   |                                |     |     +----> Clock
         |   +----> Power                     |     +----------> Latch
         +--------> Ground                    +----------------> Power

Multisystem joysticks
---------------------
L
Linus Torvalds 已提交
150

151
In the era of 8-bit machines, there was something like de-facto standard
L
Linus Torvalds 已提交
152 153 154 155 156 157
for joystick ports. They were all digital, and all used D-Cannon 9 pin
connectors (db9). Because of that, a single joystick could be used without
hassle on Atari (130, 800XE, 800XL, 2600, 7200), Amiga, Commodore C64,
Amstrad CPC, Sinclair ZX Spectrum and many other machines. That's why these
joysticks are called "Multisystem".

158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
Now their pinout::

        +---------> Right
        | +-------> Left
        | | +-----> Down
        | | | +---> Up
        | | | |
    _____________
  5 \ x o o o o / 1
     \ x o x o /
    9 `~~~~~~~' 6
         |   |
         |   +----> Button
         +--------> Ground

However, as time passed, extensions to this standard developed, and these
were not compatible with each other::


          Atari 130, 800/XL/XE                   MSX

                                           +-----------> Power
        +---------> Right                  | +---------> Right
        | +-------> Left                   | | +-------> Left
        | | +-----> Down                   | | | +-----> Down
        | | | +---> Up                     | | | | +---> Up
        | | | |                            | | | | |
    _____________                        _____________
  5 \ x o o o o / 1                    5 \ o o o o o / 1
     \ x o o o /                          \ o o o o /
    9 `~~~~~~~' 6                        9 `~~~~~~~' 6
         | | |                              | | | |
         | | +----> Button                  | | | +----> Button 1
         | +------> Power                   | | +------> Button 2
         +--------> Ground                  | +--------> Output 3
                                            +----------> Ground

          Amstrad CPC                           Commodore C64

                                           +-----------> Analog Y
        +---------> Right                  | +---------> Right
        | +-------> Left                   | | +-------> Left
        | | +-----> Down                   | | | +-----> Down
        | | | +---> Up                     | | | | +---> Up
        | | | |                            | | | | |
    _____________                        _____________
  5 \ x o o o o / 1                    5 \ o o o o o / 1
     \ x o o o /                          \ o o o o /
    9 `~~~~~~~' 6                        9 `~~~~~~~' 6
         | | |                              | | | |
         | | +----> Button 1                | | | +----> Button
         | +------> Button 2                | | +------> Power
         +--------> Ground                  | +--------> Ground
                                            +----------> Analog X

          Sinclair Spectrum +2A/+3           Amiga 1200

      +-----------> Up                     +-----------> Button 3
      | +---------> Fire                   | +---------> Right
      | |                                  | | +-------> Left
      | |   +-----> Ground                 | | | +-----> Down
      | |   |                              | | | | +---> Up
      | |   |                              | | | | |
    _____________                        _____________
  5 \ o o x o x / 1                    5 \ o o o o o / 1
     \ o o o o /                          \ o o o o /
    9 `~~~~~~~' 6                        9 `~~~~~~~' 6
       | | | |                              | | | |
       | | | +----> Right                   | | | +----> Button 1
       | | +------> Left                    | | +------> Power
       | +--------> Ground                  | +--------> Ground
       +----------> Down                    +----------> Button 2
L
Linus Torvalds 已提交
230 231 232

  And there were many others.

233 234 235 236
Multisystem joysticks using db9.c
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For the Multisystem joysticks, and their derivatives, the db9.c driver
L
Linus Torvalds 已提交
237 238 239
was written. It allows only one joystick / gamepad per parallel port, but
the interface is easy to build and works with almost anything.

240 241
For the basic 1-button Multisystem joystick you connect its wires to the
parallel port like this::
L
Linus Torvalds 已提交
242

243 244
    (pin  1) -----> Power
    (pin 18) -----> Ground
L
Linus Torvalds 已提交
245

246 247 248 249 250
    (pin  2) -----> Up
    (pin  3) -----> Down
    (pin  4) -----> Left
    (pin  5) -----> Right
    (pin  6) -----> Button 1
L
Linus Torvalds 已提交
251

252
However, if the joystick is switch based (eg. clicks when you move it),
L
Linus Torvalds 已提交
253
you might or might not, depending on your parallel port, need 10 kOhm pullup
254
resistors on each of the direction and button signals, like this::
L
Linus Torvalds 已提交
255

256 257 258
    (pin 2) ------------+------> Up
              Resistor  |
    (pin 1) --[10kOhm]--+
L
Linus Torvalds 已提交
259

260
Try without, and if it doesn't work, add them. For TTL based joysticks /
L
Linus Torvalds 已提交
261 262
gamepads the pullups are not needed.

263 264
For joysticks with two buttons you connect the second button to pin 7 on
the parallel port::
L
Linus Torvalds 已提交
265

266
    (pin 7) -----> Button 2
L
Linus Torvalds 已提交
267

268
And that's it.
L
Linus Torvalds 已提交
269

270
On a side note, if you have already built a different adapter for use with
L
Linus Torvalds 已提交
271 272 273
the digital joystick driver 0.8.0.2, this is also supported by the db9.c
driver, as device type 8. (See section 3.2)

274 275 276 277
Multisystem joysticks using gamecon.c
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For some people just one joystick per parallel port is not enough, and/or
L
Linus Torvalds 已提交
278 279 280 281
want to use them on one parallel port together with NES/SNES/PSX pads. This is
possible using the gamecon.c. It supports up to 5 devices of the above types,
including 1 and 2 buttons Multisystem joysticks.

282
However, there is nothing for free. To allow more sticks to be used at
L
Linus Torvalds 已提交
283 284 285 286 287
once, you need the sticks to be purely switch based (that is non-TTL), and
not to need power. Just a plain simple six switches inside. If your
joystick can do more (eg. turbofire) you'll need to disable it totally first
if you want to use gamecon.c.

288
Also, the connection is a bit more complex. You'll need a bunch of diodes,
L
Linus Torvalds 已提交
289
and one pullup resistor. First, you connect the Directions and the button
290
the same as for db9, however with the diodes between::
L
Linus Torvalds 已提交
291

292 293 294 295 296 297
                Diodes
    (pin 2) -----|<|----> Up
    (pin 3) -----|<|----> Down
    (pin 4) -----|<|----> Left
    (pin 5) -----|<|----> Right
    (pin 6) -----|<|----> Button 1
L
Linus Torvalds 已提交
298

299
For two button sticks you also connect the other button::
L
Linus Torvalds 已提交
300

301
    (pin 7) -----|<|----> Button 2
L
Linus Torvalds 已提交
302

303
And finally, you connect the Ground wire of the joystick, like done in
L
Linus Torvalds 已提交
304 305
this little schematic to Power and Data on the parallel port, as described
for the NES / SNES pads in section 2.1 of this file - that is, one data pin
306 307 308 309 310
for each joystick. The power source is shared::

    Data    ------------+-----> Ground
              Resistor  |
    Power   --[10kOhm]--+
L
Linus Torvalds 已提交
311

312
And that's all, here we go!
L
Linus Torvalds 已提交
313

314 315
Multisystem joysticks using turbografx.c
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L
Linus Torvalds 已提交
316

317
The TurboGraFX interface, designed by
L
Linus Torvalds 已提交
318 319 320

	Steffen Schwenke <schwenke@burg-halle.de>

321
allows up to 7 Multisystem joysticks connected to the parallel port. In
L
Linus Torvalds 已提交
322 323 324
Steffen's version, there is support for up to 5 buttons per joystick.  However,
since this doesn't work reliably on all parallel ports, the turbografx.c driver
supports only one button per joystick. For more information on how to build the
325
interface, see:
L
Linus Torvalds 已提交
326 327 328

	http://www2.burg-halle.de/~schwenke/parport.html

329 330
Sony Playstation
----------------
L
Linus Torvalds 已提交
331

332 333
The PSX controller is supported by the gamecon.c. Pinout of the PSX
controller (compatible with DirectPadPro)::
L
Linus Torvalds 已提交
334

335 336 337 338 339 340 341 342 343 344
    +---------+---------+---------+
  9 | o  o  o | o  o  o | o  o  o | 1               parallel
     \________|_________|________/                  port pins
      |  |      |  |  |   |
      |  |      |  |  |   +-------->  Clock    ---  (4)
      |  |      |  |  +------------>  Select   ---  (3)
      |  |      |  +--------------->  Power    ---  (5-9)
      |  |      +------------------>  Ground   ---  (18-25)
      |  +------------------------->  Command  ---  (2)
      +---------------------------->  Data     ---  (one of 10,11,12,13,15)
L
Linus Torvalds 已提交
345

346
The driver supports these controllers:
L
Linus Torvalds 已提交
347 348 349 350 351 352 353 354

 * Standard PSX Pad
 * NegCon PSX Pad
 * Analog PSX Pad (red mode)
 * Analog PSX Pad (green mode)
 * PSX Rumble Pad
 * PSX DDR Pad

355 356 357 358
Sega
----

All the Sega controllers are more or less based on the standard 2-button
L
Linus Torvalds 已提交
359 360 361
Multisystem joystick. However, since they don't use switches and use TTL
logic, the only driver usable with them is the db9.c driver.

362 363 364 365
Sega Master System
~~~~~~~~~~~~~~~~~~

The SMS gamepads are almost exactly the same as normal 2-button
L
Linus Torvalds 已提交
366
Multisystem joysticks. Set the driver to Multi2 mode, use the corresponding
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387
parallel port pins, and the following schematic::

      +-----------> Power
      | +---------> Right
      | | +-------> Left
      | | | +-----> Down
      | | | | +---> Up
      | | | | |
    _____________
  5 \ o o o o o / 1
     \ o o x o /
    9 `~~~~~~~' 6
       | |   |
       | |   +----> Button 1
       | +--------> Ground
       +----------> Button 2

Sega Genesis aka MegaDrive
~~~~~~~~~~~~~~~~~~~~~~~~~~

The Sega Genesis (in Europe sold as Sega MegaDrive) pads are an extension
L
Linus Torvalds 已提交
388
to the Sega Master System pads. They use more buttons (3+1, 5+1, 6+1).  Use
389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416
the following schematic::

        +-----------> Power
        | +---------> Right
        | | +-------> Left
        | | | +-----> Down
        | | | | +---> Up
        | | | | |
      _____________
    5 \ o o o o o / 1
       \ o o o o /
      9 `~~~~~~~' 6
        | | | |
        | | | +----> Button 1
        | | +------> Select
        | +--------> Ground
        +----------> Button 2

The Select pin goes to pin 14 on the parallel port::

    (pin 14) -----> Select

The rest is the same as for Multi2 joysticks using db9.c

Sega Saturn
~~~~~~~~~~~

Sega Saturn has eight buttons, and to transfer that, without hacks like
L
Linus Torvalds 已提交
417 418
Genesis 6 pads use, it needs one more select pin. Anyway, it is still
handled by the db9.c driver. Its pinout is very different from anything
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443
else.  Use this schematic::

      +-----------> Select 1
      | +---------> Power
      | | +-------> Up
      | | | +-----> Down
      | | | | +---> Ground
      | | | | |
    _____________
  5 \ o o o o o / 1
     \ o o o o /
    9 `~~~~~~~' 6
       | | | |
       | | | +----> Select 2
       | | +------> Right
       | +--------> Left
       +----------> Power

Select 1 is pin 14 on the parallel port, Select 2 is pin 16 on the
parallel port::

    (pin 14) -----> Select 1
    (pin 16) -----> Select 2

The other pins (Up, Down, Right, Left, Power, Ground) are the same as for
L
Linus Torvalds 已提交
444 445
Multi joysticks using db9.c

446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482
Amiga CD32
----------

Amiga CD32 joypad uses the following pinout::

        +-----------> Button 3
        | +---------> Right
        | | +-------> Left
        | | | +-----> Down
        | | | | +---> Up
        | | | | |
      _____________
    5 \ o o o o o / 1
       \ o o o o /
      9 `~~~~~~~' 6
        | | | |
        | | | +----> Button 1
        | | +------> Power
        | +--------> Ground
        +----------> Button 2

It can be connected to the parallel port and driven by db9.c driver. It needs the following wiring:

	============    =============
	CD32 pad        Parallel port
	============    =============
	1 (Up)           2 (D0)
	2 (Down)         3 (D1)
	3 (Left)         4 (D2)
	4 (Right)        5 (D3)
	5 (Button 3)    14 (AUTOFD)
	6 (Button 1)    17 (SELIN)
	7 (+5V)          1 (STROBE)
	8 (Gnd)         18 (Gnd)
	9 (Button 2)     7 (D5)
	============    =============

483 484 485 486
The drivers
===========

There are three drivers for the parallel port interfaces. Each, as
L
Linus Torvalds 已提交
487 488 489
described above, allows to connect a different group of joysticks and pads.
Here are described their command lines:

490 491 492 493 494
gamecon.c
---------

Using gamecon.c you can connect up to five devices to one parallel port. It
uses the following kernel/module command line::
L
Linus Torvalds 已提交
495 496 497

	gamecon.map=port,pad1,pad2,pad3,pad4,pad5

498
Where ``port`` the number of the parport interface (eg. 0 for parport0).
L
Linus Torvalds 已提交
499

500
And ``pad1`` to ``pad5`` are pad types connected to different data input pins
L
Linus Torvalds 已提交
501 502
(10,11,12,13,15), as described in section 2.1 of this file.

503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519
The types are:

	===== =============================
	Type  Joystick/Pad
	===== =============================
	  0   None
	  1   SNES pad
	  2   NES pad
	  4   Multisystem 1-button joystick
	  5   Multisystem 2-button joystick
	  6   N64 pad
	  7   Sony PSX controller
	  8   Sony PSX DDR controller
	  9   SNES mouse
	===== =============================

The exact type of the PSX controller type is autoprobed when used, so
520
hot swapping should work (but is not recommended).
L
Linus Torvalds 已提交
521

522
Should you want to use more than one of parallel ports at once, you can use
L
Linus Torvalds 已提交
523 524 525
gamecon.map2 and gamecon.map3 as additional command line parameters for two
more parallel ports.

526
There are two options specific to PSX driver portion.  gamecon.psx_delay sets
L
Linus Torvalds 已提交
527
the command delay when talking to the controllers. The default of 25 should
528 529
work but you can try lowering it for better performance. If your pads don't
respond try raising it until they work. Setting the type to 8 allows the
L
Linus Torvalds 已提交
530 531 532
driver to be used with Dance Dance Revolution or similar games. Arrow keys are
registered as key presses instead of X and Y axes.

533 534 535 536 537
db9.c
-----

Apart from making an interface, there is nothing difficult on using the
db9.c driver. It uses the following kernel/module command line::
L
Linus Torvalds 已提交
538 539 540

	db9.dev=port,type

541
Where ``port`` is the number of the parport interface (eg. 0 for parport0).
L
Linus Torvalds 已提交
542

543
Caveat here: This driver only works on bidirectional parallel ports. If
L
Linus Torvalds 已提交
544 545 546
your parallel port is recent enough, you should have no trouble with this.
Old parallel ports may not have this feature.

547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564
``Type`` is the type of joystick or pad attached:

	===== ======================================================
	Type  Joystick/Pad
	===== ======================================================
	  0   None
	  1   Multisystem 1-button joystick
	  2   Multisystem 2-button joystick
	  3   Genesis pad (3+1 buttons)
	  5   Genesis pad (5+1 buttons)
	  6   Genesis pad (6+2 buttons)
	  7   Saturn pad (8 buttons)
	  8   Multisystem 1-button joystick (v0.8.0.2 pin-out)
	  9   Two Multisystem 1-button joysticks (v0.8.0.2 pin-out)
	 10   Amiga CD32 pad
	===== ======================================================

Should you want to use more than one of these joysticks/pads at once, you
L
Linus Torvalds 已提交
565 566 567
can use db9.dev2 and db9.dev3 as additional command line parameters for two
more joysticks/pads.

568 569 570 571
turbografx.c
------------

The turbografx.c driver uses a very simple kernel/module command line::
L
Linus Torvalds 已提交
572 573 574

	turbografx.map=port,js1,js2,js3,js4,js5,js6,js7

575
Where ``port`` is the number of the parport interface (eg. 0 for parport0).
L
Linus Torvalds 已提交
576

577
``jsX`` is the number of buttons the Multisystem joysticks connected to the
L
Linus Torvalds 已提交
578 579
interface ports 1-7 have. For a standard multisystem joystick, this is 1.

580
Should you want to use more than one of these interfaces at once, you can
L
Linus Torvalds 已提交
581 582 583
use turbografx.map2 and turbografx.map3 as additional command line parameters
for two more interfaces.

584
PC parallel port pinout
585
=======================
586 587 588

::

L
Linus Torvalds 已提交
589 590 591 592 593
		  .----------------------------------------.
   At the PC:     \ 13 12 11 10  9  8  7  6  5  4  3  2  1 /
                   \  25 24 23 22 21 20 19 18 17 16 15 14 /
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611
======  =======  =============
   Pin  Name     Description
======  =======  =============
     1  /STROBE  Strobe
   2-9  D0-D7    Data Bit 0-7
    10  /ACK     Acknowledge
    11  BUSY     Busy
    12  PE       Paper End
    13  SELIN    Select In
    14  /AUTOFD  Autofeed
    15  /ERROR   Error
    16  /INIT    Initialize
    17  /SEL     Select
 18-25  GND      Signal Ground
======  =======  =============


That's all, folks! Have fun!