Pinouts for Apple II Connectors Compiled by Char;es T. 'Dr. Tom' Turley 8/21/98 Contents: GS Motherboard power connector, 9 pin game connector, 16 pin game port, //e expansion slot pinouts, IIc+ internal modem connector, GS, Macintosh & //c+ serial ports, //c serial port pinouts, non-Apple DB9 and DB25 serial ports, GS (and Apple ///) RGB connection, 6502/65C02 pinouts, //e, //c, Laser mouse pinouts, 5.25" and 3.5" disk cables, Apple //c Video Expansion port, Apple //c Power Connector, Apple //e numeric keypad connector. GS Motherboard power connector: 7 -5V 0.25 A 6 -12V 0.25 A 5 +12V 1.0 A 4 +5V 4.0 A 3 No connection 2 GND 1 GND The pins are numbered as above when you are sitting in front of the computer, i.e. 7 is closest to the back of the motherboard. Apple Game Port (9-pin connector): =============================================== \ 5 4 3 2 1 / \ * * * * * / \ * * * * / \ 9 8 7 6 / \===========================/ Pin 1 - Pushbutton 1 Pin 2 - +5V Power Pin 3 - Ground Pin 4 - Game Control 2 Pin 5 - Game Control 0 Pin 6 - Pushbutton 2 Pin 7 - Pushbutton 0 Pin 8 - Game Control 1 Pin 9 - Game Control 3 Apple 16-pin DIP socket (on the motherboard): ==================== | | 8 | * * | 9 7 | * * | 10 6 | * === * | 11 5 | * | * | 12 <-- Notch on socket 4 | * | * | 13 3 | * === * | 14 2 | * * | 15 1 | * * | 16 | | ==================== Pin 1 - +5V Power Pin 2 - Pushbutton 0 Pin 3 - Pushbutton 1 Pin 4 - Pushbutton 2 Pin 5 - Strobe Pin 6 - Game Control 0 Pin 7 - Game Control 2 Pin 8 - Ground Pin 9 - No Connection Pin 10 - Game Control 1 Pin 11 - Game Control 3 Pin 12 - Annunciator 3 Pin 13 - Annunciator 2 Pin 14 - Annunciator 1 Pin 15 - Annunciator 0 Pin 16 - No Connection Game Port Information (with BASIC Peek/Poke locations) obtained from pages 430-433 of the Apple // User's Guide, Second Edition by Lon Poole: -16296 Annunciator 0 Off Turns off game control output (annunciator) number 0. The voltage on pin 15 of the game control is set to approximately 0 volts (TTL low). -16295 Annunciator 0 On Turns on game control output (annunciator) number 0. The voltage on pin 15 of the game control is set to approximately +5 volts (TTL high). The following annunciator soft switches follow the same rules as annunciator 0 for their respective pin assignments: -16294 Annunciator 1 Off -16293 Annunciator 1 On -16292 Annunciator 2 Off -16291 Annunciator 2 On -16290 Annunciator 3 Off -16289 Annunciator 3 On -16287 Read Pushbutton 0 When the pushbutton on game control number 0 or the open-apple key is being pressed, the value in this location exceeds 127. When it is not being pressed, the value is 127 or less. The following pushbutton soft switches follow the same rules as pushbutton 0 for their respective pin assignments: -16286 Read Pushbutton 1 -16285 Read Pushbutton 2 -16272 Stobe Output Normally pin 5 of the game control connector is +5 volts. If you PEEK memory location -16285, it drops to 0 volts for one-half microsecond. POKE will trigger the strobe twice. The following is a direct exerpt from page 167 of the Apple //e Reference Manual: "The hand-control inputs are connected to the timing inputs of an NE558 quadruple 555-type analog timer. Addressing $C07x sends a signal from the 74LS154 that resets all four timers and causes their outputs to go one (high). A variable resistance of up to 150K ohms connected between one of these inputs and the +5V supply controls the charging time of one of four 0.022-microfarad capacitors. When the voltage on the capacitor passes a certain threshhold, the output of the NE558 changes back to zero (low). Programs can determine the setting of a variable resistor by resetting the timers and then counting time until the selected timer input changes from high to low. The resulting count is proportional to the resistance." Basically, the above excerpt is a long description of the BASIC PDL() function. Apple //e Expansion (not memory) slot pinouts The following is a direct excerpt from pages 172-174 of the Apple //e Reference Manual regarding the pin-out of the expansion slots: Pin 1 - I/O SELECT - Normally high; goes low during phase 0 when the 6502 addresses location $CnXX, where n is the connector number. This line can drive 10 LS TTL loads.* Pin 2-17 - A0-A15 - Three-state address bus. The address becomes valid during phase 1 and remains valid during phase 0. Each address line can drive 5 LS TTL loads.* Pin 18 - R/W' - Three-state read/write line. Valid at the same time as the address bus; high during a read cycle, low during a write cycle. It can drive 2 LS TTL loads.* Pin 19 - SYNC' - Composite horizontal and vertical sync, on expansion slot 7 ONLY. This line can drive 2 LS TTL loads.* Pin 20 - I/O STROBE' - Normally high; goes low during phase 0 when the 6502 addresses a location between $C800 and $CFFF. This line can drive 4 LS TTL loads.* Pin 21 - RDY - Input to the 6502. Pulling this line low during phase 1 halts the 6502 with the address bus holding the address of the location currently being fetched. This line has a 3300 ohm pullup resistor to +5V. Pin 22 - DMA' - Input to the address bus buffers. Pulling this line low during phase 1 disconnects the 6502 from the address bus. This line has a 3300 ohm pullup resistor to +5V. Pin 23 - INT OUT - Interrupt priority daisy-chain output. Usually connected to pin 28 (INT IN). Note: On slot 7 ONLY, this pin can be connected to the graphics-mode signal GR (Not available on revision A boards). Pin 24 - DMA OUT - DMA priority daisy-chain output. Usually connected to pin 22 (DMA IN). Pin 25 - +5V - +5V power supply. A total of 500mA is available for all accessory cards. Pin 26 - GND - System common ground. Pin 27 - DMA IN - DMA priority daisy-chain input. Usually connected to pin 24 (DMA OUT). Pin 28 - INT IN - Interrupt priority daisy-chain input. Usually connected to pin 23 (INT OUT). Pin 29 - NMI' - Non-maskable interrupt to 6502. Pulling this line low starts an interrupt cycle with the interrupt-handling routine at location $03FB. This line has a 3300 ohm pullup resistor to +5V. Pin 30 - IRQ' - Interrupt request to 6502. Pulling this line low starts an interrupt cycle only if the interrupt-disable (I) flag in the 6502 is not set. Uses the interrupt-handling routine at location $03FE. This line has a 3300 ohm pullup resistor to +5V. Pin 31 - RES' - Pulling this line low initiates a reset routine. Pin 32 - INH' - Pulling this line low during phase 1 inhibits (disables) the memory on the main circuit board. This line has a 3300 ohm pullup resistor to +5V. Pin 33 - -12V - -12V power supply. A total of 200mA is available for all accessory cards. Pin 34 - -5V - -5V power supply. A total of 200mA is available for all accessory cards. Pin 35 - 3.58M - 3.58MHz color reference signal, on slot 7 ONLY. This line can drive 2 LS TTL loads.* Pin 36 - 7M - System 7MHz clock. This line can drive 2 LS TTL loads.* Pin 37 - Q3 - System 2MHz asymmetrical clock. This line can drive 2 LS TTL loads.* Pin 38 - PHASE1 - 6502 phase 1 clock. This line can drive 2 LS TTL loads.* Pin 39 - uPSYNC - The 6502 signals an operand fetch by driving this line high during the first read cycle of each instruction. Pin 40 - PHASE0 - 6502 phase 0 clock. This line can drive 2 LS TTL loads.* Pin 41 - DEVICE SELECT' - Normally high; goes low during phase 0 then the 6502 addresses location $C0nX, where n is the connector number plus 8. This line can drive 10 LS TTL loads.* Pin 42-49 - D0-D7 - Three-state buffered bi-directional data bus. Data becomes valid during phase 0 high and remains valid until phase 0 goes low. Each data line can drive one LS TTL load.* Pin 50 - +12V - +12V power supply. A total of 250mA is available for all accessory cards. * Loading limits are for each card. Apple IIc+ internal modem connector: __ |1 | |2 | |3 | |4 | |5 | |6 | |7 | |__| Pin Signal Description -------------------------------- 1 -5V -5 Volts 2 RXD Receive Data 3 TXD Transmit Data 4 DCD Data Carrier Detect 5 DTR Data Terminal Ready 6 DSR Data Signal Ready 7 GND Ground Mini DIN-8 serial port (GS, IIc+, Macintosh) [And pinouts to connect to a serial DB-25 printer] The IIgs serial port is numbered as follows, looking at the back of the computer: 8 7 6 5 4 3 2 1 The wiring for a serial printer cable (==modem cable) would be as follows: IIgs Printer (DB-25) 1 Hshk Out ----- 6 DSR (or possibly 5 CTS, or 8 DCD) 2 HShk In ----- 20 DTR (or possibly 4 RTS) 3 TxD- ----- 3 RxD 4 Gnd ----- 7 Signal Ground 5 RxD- ----- 2 TxD 6 TxD+ No connection 7 GPI No connection 8 RxD+ Loop to signal ground (pin 4 at IIgs or pin 7 at printer) (Cable shield should be connected to shielding at the IIgs end, and to pin 1 at the printer end.) By comparison, a modem cable will swap pins 1 and 2, and pins 3 and 5 (using the numbering of the IIgs end). //c (5-pin) serial port, null modem cable pinouts 5 1 4 2 3 The functions are: 1 Handshake Out (nominally DTR) 2 Data Out (TxD) 3 Ground 4 Data In (RxD) 5 Handshake In (nominally DSR) To wire up a IIc to a simple modem without hardware handshaking, use the following pinout: IIc Modem DIN-5 DB-25M 1 ----- 20 DTR 2 ----- 2 TxD 3 ----- 7 Gnd 4 ----- 3 RxD 5 ----- 6 DSR (you might want to use pin 8, DCD in some cases) The IIc cannot do hardware handshaking very well, but this is as close as you can get: IIc Modem DIN-5 DB-25M 1 ----- 4 RTS 2 ----- 2 TxD 3 ----- 7 Gnd 4 ----- 3 RxD 5 ----- 5 CTS The IIc's handshaking lines have annoying side effects, which cause problems with hardware handshaking: 1. The "Handshake Out" signal is implemented to mean "I want to send data" (the official and original meaning of RTS). If you turn off the output handshake line, the IIc will stop sending data. For a hardware handshaking modem, RTS is supposed to mean "You are allowed to send me data" (from the computer's point of view). If the computer tells the modem to stop transmitting, the computer will also be unable to transmit. This will reduce the rate at which data can be transferred bidirectionally, but doesn't cause any other problems. 2. The "Handshake In" signal is implemented to mean "There is receive data present" (the official meaning of DCD). If the incoming handshake line is disabled, the IIc will stop receiving data (ignore any data on RxD). For a hardware handshaking modem, CTS is supposed to mean "You are allowed to send me data" (from the modem's point of view). If the modem tells the computer to stop transmitting, the computer will also be unable to receive, and will discard any data sent by the modem while CTS is not active. This can cause screen corruption and loss of data blocks or acknowledgements during a file transfer, which will require retransmission. It is only likely to be a problem while a lot of data is being sent, so is more likely to cause problems during a file upload than a download. If the comms software is quick enough, it can drop RTS immediately when CTS is lowered, which will prevent the modem from sending any more data. You will need the //c System Utilities disk to set up the serial port speeds, or a comm program that overrides them anyway. Max speed is 9600. Non-Apple DB9 and DB25 Serial ports Pinouts are for looking at the back of the computer, as usual. DB-25 ,----------------------------------------------------. \ 13 12 11 10 09 08 07 06 05 04 03 02 01 / \ 25 24 23 22 21 20 19 18 17 16 15 14 / `------------------------------------------------' DB-9 ,---------------------. \ 5 4 3 2 1 / \ 9 8 7 6 / `-----------------' pin# DB-25 DE-9 ------ ------ ------ shield gnd gnd 1 gnd DCD 2 TD RD 3 RD TD 4 RTS DTR 5 CTS SG 6 DSR DSR 7 SG RTS 8 DCD CTS 9 +dcv RI 10 -dcv (DC test voltage) [DCE->DTE] 11 QM 12 (S)DCD 13 (S)CTS 14 (S)TD, NS, [fault on IW1] 15 TC [DCE->DTE] 16 (S)RD, DCT 17 RC 18 DCR 19 (S)RTS 20 DTR 21 SQ 22 RI 23 data rate selector 24 (TC) [DTE->DCE] 25 busy IIGS (and Apple ///) RGB Connector: pin # signal 1 ground (for red ?) 2 red 3 composite sync. (in German: Farbmischsynchronisation) 4 not used 5 green 6 ground (for green ?) 7 -5 V 8 +12 V 9 blue 10 not used 11 audio output (not used) 12 monochrome screen off (???) 13 ground (for blue ?) 14 not used 15 not used system ground | | __________|_____________________________ \ 8 7 6 5 4 3 2 1 / \ 15 14 13 12 11 10 9 / ------------------------------------ 6502/65C02 pinouts > Does anyone know what each of the pins on the 6502 CPU chip in the Apple > II Plus does? They all plug into the socket on the motherboard to keep the chip from drifting away. 1 VP- 40 RES- 2 RDY 39 VDA 3 ABORT- 38 M/X 4 IRQ- 37 (PHI)2(IN) CAN'T REPRODUCE THE PHI SYMBOL HERE 5 ML- 36 DE 6 NMI- 35 E 7 VPA 34 R/W- 8 Vdd 33 D0/BA0 9 A0 32 D1/BA1 10 A1 31 D2/BA2 11 A2 30 D3/BA3 12 A4 29 D4/BA3 .... .... sequences continue 15 A6 26 D7/BA7 16 A7 25 A15 17 A8 24 A14 18 A9 23 A13 19 A10 21 A12 20 A11 20 Vss I used a trailing "-" where the letters have a line over them in the published pinout. I got the info from pg 544 of "Programming the 65816 Including the 6502, 65C02, and 65802" by David Eyes and Ron Lichty, ABrady Book Published by Prentice Hall Press. //e, //c, Laser 128 Mouse pinouts [I'd expect the numbering to be the same as the 9-pin game port connector.] Pin Value 1 Mouse Signature 2 +5v 3 Ground 4 X Dir 5 X Int 6 Blank 7 Mouse Button 8 Y Dir 9 Y Int 3.5" and 5.25" Drive cable pinouts Much of this information comes from page 90 of Open-Apple Volume 1, number 11 (1985). The following table lists all of the drive control signals for each type of controller card/disk port. signal function Unidisk IIc IIgs Disk ][ GND ground reference 1-4 1-4 1-3 1,3,5,7 -12V -12 volts DC 5 5 5 9 +5V +5 volts DC 6,16 6 6 11,12 +12V +12 volts DC 7,8 7,8 7,8 13,15,17,19 WRPROT write protect 10 10 10 20 PH 0-3 stepper motor phases 11-14 11-14 11-14 2,4,6,8 WREQ write request 15 15 15 10 DRVEN drive enable 17 (9) 17 17 (9) 14 RDDATA read data 18 18 18 16 WRDATA write data 19 19 19 18 EXTINT external interrupt - 9 - - 3.5DISK Apple 3.5 drive enable - - 4 - HDSEL 3.5" drive head select - - 16 - not connected - 16 - - The UniDisk uses pin 9 to select the second drive. Inside each UniDisk, the signal from pin 9 at the computer is connected to pin 17 of the daisy- chain drive connector. When the computer selects drive 2 by activating pin 9, the first drive passes this through and the second drive sees its enable signal on pin 17. Thus all drives are identical. The Disk ][ controller has two drive connectors, and the same pin (14) is used on each connector to select the appropriate drive. This signal is the only difference between the connectors - all other signals are connected in parallel. Despite the IIgs having special functions for pins 4 and 16, they may be ignored when dealing with 5.25" drives, and treated as a UniDisk controller (i.e. connect pin 4 to ground, and pin 16 to +5V). The Apple 3.5 drive disconnects these signals internally, so that they will not interfere with its operation. The UniDisk, IIc external drive and equivalents use a DB-19 connector, in which the pins are numbered along the connector, i.e. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 The Disk ][ uses an IDC-20 (20 pin insulation displacement connector) in which the pins are numbered in columns, i.e. 2 4 6 8 10 12 14 16 18 20 1 3 5 7 9 11 13 15 17 19 The above numbering is from the back of the plug (where the ribbon cable connects to the plug). If you are looking at the front of the plug (the socket side), reverse the rows in the above diagram (top row is 1, 3, ...) The pin numbering of the DB-19 connector does NOT correspond to the wire numbers in the cable. Pin 1 of the cable goes to pin 1 of the connector, but pin 2 of the cable goes to pin 11 of the connector. Apple //c DB-15 Video Expansion Connector [Sorry, no cute diagram showing which pin is which] 1- TEXT Video text signal from TMG; set to inverse of GR, except in double high-resolution mode. 2- 14M 14M master timing signal from the system oscillator. 3- SYNC* Displays horizontal and vertical synchronization signal from IOU pin 39. 4- SEGB Displays vertical counter bit from IOU pin 4; in text mode, indicates second low-order vertical counter; in graphics mode, indicates low-resolution. 5- 1VSOUND One-volt sound signal from pin 5 of the audio hybrid circuit (AUD). 6- LDPS* Video shift-register load enable from pin 12 of TMG. 7- WNDW* Active area display blanking; includes both horizontal and vertical blanking. 8- +12V Regulated +12 volts DC; can drive 300mA. 9- PRAS* RAM row-address strobe from TMG pin 19. 10- GR Graphics mode enable from IOU pin 2. 11- SEROUT* Serialized character generator output from pin 1 of the 74LS166 shift register. 12- NTSC Composite NTSC video signal from VID hybrid chip. 13- GND Ground reference and supply. 14- VIDD7 From 74LS374 video latch; causes half-dot shift high. 15- CREF Color reference signal from TMG pin 3; 3.58 MHz. Note: The signals at the DB-15 on the Apple IIc are not the same as those at the DB-15 end of the Apple III, Apple IIGS, and Macintosh II. Do not attempt to plug a cable intended for one into the other. Several of these signals, such as the 14 MHz, must be buffered within about 4 inches of the back panel connector--preferably inside a container directly connected to the back panel. Apple //c External Power Connector From the Apple //c Technical Reference Manual Section 11.2.2 The External Power Connector The external power supply is attached to the internal converter by means of a 7-pin DIN connector. The connector pins are identified in Figure 11-1 and Table 11-3. Figure 11-1 External Power Connector . --+ +-- Pin# Signal . / 7 |_| 1 \ Pin 1 Not Connected . | 6 2 | Pin 2,3 Signal Ground . \ 5 4 3 / Pin 4 Shield Ground . \_______/ Pin 5,6 +15 VDC . Pin 7 Not Connected Table 11-3 External Power Connector Signals Pin# Name Description 1,7 -- Not Connected 2,3 Ground Common Electrical Ground 4 Chassis Chassis Ground 5,6 +15 +15-volt DC input to converter ------------------------------------------------------------------------ Apple //e Numeric Keypad connector The pins are numbered from 1 to 11, with pin 1 being the closest to the keyboard end of the computer (as far as I can tell). The pin functions are: 1=Y0, 2=Y1, 3=Y3, 4=Y4, 5=Y2, 6=Y5, 7=no connection, 8=X7, 9=X4, 10=X6, 11=X5. The X/Y pins refer to keyboard X/Y matrix signals. Closing a specific X/Y pair is the equivalent of pressing the corresponding key on the keyboard. The matrix is as follows: X7 X6 X5 X4 Y5 , + 7 3 Y4 CR . 6 2 Y3 - 9 5 1 Y2 ( 8 4 0 Y1 (see below) Y0 * ) / The Y1 row and Y0/X7 intersection vary depending on which keyboard ROM you have. The original IIe keyboard ROM (341-0132-B) has SPACE, RIGHT, ESC, LEFT, ?. I get the impression that this ROM is rare. The revised IIe keyboard ROM (341-0132-C) has RIGHT, LEFT, UP, DOWN, ESC.