MOS 8520 CIA Pinout — Amiga Keyboard, Floppy & Port I/O Chip (DIP-40)

DIP-40 · Support & Peripheral · MOS/CSG 8520 / 8520A / 8521 (391078) — DIP-40

MOS/CSG 8520 CIA (Amiga Complex Interface Adapter) (DIP-40) — Printable IC Pinout & Signal SheetHigh-contrast DIP/PLCC pinout diagram, supply pin highlights (+5V/GND/+12V), and full 40-pin table.

Pinout diagram

Used in Retro Machine Hubs

Click any system badge below to jump directly to its dedicated repair, schematic, and diagnostic Machine Hub:

Summary specifications

Technology NMOS (8520) / HMOS-2 (8521)
Operating Voltage +5 V +/-5% (VCC pin 20, GND pin 1)
Bus 68000 via Gary/Gayle /VPA + E-clock (PHI2 pin 25, ~0.7 MHz)
Amiga Roles CIA-A: keyboard, parallel, /OVL, power LED, port 1. CIA-B: floppy, serial, port 2, audio filter
Compatibility Pin-compatible with 6526 — but keep TOD/serial quirks in mind when cross-fitting.
ESD Warning Hot-plugging joysticks/mice kills CIA port pins — the #1 CIA failure cause.

Full pin reference

Pin Name Group Direction Levels Description Expected Signal
1 GND Ground Power 0 V Ground.
2 PA0 I/O Bidirectional TTL Port A bit 0 — CIA-A: parallel/keyboard; CIA-B: serial/floppy select line.
3 PA1 I/O Bidirectional TTL Port A bit 1.
4 PA2 I/O Bidirectional TTL Port A bit 2.
5 PA3 I/O Bidirectional TTL Port A bit 3.
6 PA4 I/O Bidirectional TTL Port A bit 4.
7 PA5 I/O Bidirectional TTL Port A bit 5.
8 PA6 I/O Bidirectional TTL Port A bit 6.
9 PA7 I/O Bidirectional TTL Port A bit 7.
10 PB0 I/O Bidirectional TTL Port B bit 0 — CIA-A: /OVL overlay control; CIA-B: drive /STEP.
11 PB1 I/O Bidirectional TTL Port B bit 1 — CIA-B: /DIR step direction.
12 PB2 I/O Bidirectional TTL Port B bit 2 — CIA-B: /SIDE head select.
13 PB3 I/O Bidirectional TTL Port B bit 3 — CIA-B: /SEL3 drive select.
14 PB4 I/O Bidirectional TTL Port B bit 4 — CIA-B: /SEL2 drive select.
15 PB5 I/O Bidirectional TTL Port B bit 5 — CIA-B: /SEL1 drive select.
16 PB6 I/O Bidirectional TTL Port B bit 6 — CIA-B: /SEL0 (DF0) drive select.
17 PB7 I/O Bidirectional TTL Port B bit 7 — CIA-B: /MTR motor-on latch.
18 /PC Control Output TTL, active low Port C handshaking output — CIA-B drives the serial/latch line.
19 TOD Clock / Timing Input TTL 50/60 Hz Time-of-day tick input — wired to /VSYNC on Amiga (NOT mains 50/60 Hz like the C64).
20 VCC Power Power +5 V +5 V supply.
21 /IRQ Control Open-drain / open-collector TTL, active low, open-drain Interrupt request — routed to Paula INT6 (CIA-A) / INT2 (CIA-B) level encoders.
22 R/W Control Input TTL 68000 read/write via bus buffers.
23 /CS Control Input TTL, active low Chip select — /EVEN_CIA or /ODD_CIA from Gary/Gayle.
24 /FLAG Control Input TTL, active low FLAG input — CIA-B: /INDEX? Used for serial/flag handshakes.
25 PHI2 (E) Clock / Timing Input TTL ~0.7 MHz E-clock input from Gary/Gayle — the 6800-cycle timing reference; CIA is dead without it.
26 D7 Data Bus Bidirectional TTL Data bus bit 7 (MSB).
27 D6 Data Bus Bidirectional TTL Data bus bit 6.
28 D5 Data Bus Bidirectional TTL Data bus bit 5.
29 D4 Data Bus Bidirectional TTL Data bus bit 4.
30 D3 Data Bus Bidirectional TTL Data bus bit 3.
31 D2 Data Bus Bidirectional TTL Data bus bit 2.
32 D1 Data Bus Bidirectional TTL Data bus bit 1.
33 D0 Data Bus Bidirectional TTL Data bus bit 0 (LSB).
34 /RES Control Input TTL, active low Reset input — clears ports to input mode on power-up.
35 RS3 Address Bus Input TTL Register select 3 (from A11).
36 RS2 Address Bus Input TTL Register select 2 (from A10).
37 RS1 Address Bus Input TTL Register select 1 (from A9).
38 RS0 Address Bus Input TTL Register select 0 (from A8).
39 SP I/O Bidirectional TTL Serial port shift register — CIA-A: keyboard data line.
40 CNT I/O Bidirectional TTL Serial counter clock — CIA-A: keyboard clock line.

Common uses and repair diagnostics

Every Amiga carries two MOS/CSG 8520 Complex Interface Adapters. CIA-A ('even', U7 on A500, U300 on some boards) owns the parallel port, keyboard serial interface, power LED, /OVL Kickstart-overlay bit and left mouse/joystick port. CIA-B ('odd', U8) owns floppy /SELx//MTR//STEP//DIR//SIDE, the serial port, right joystick port and the audio low-pass filter switch. The 8520 is electrically a 6526 variant — same DIP-40 pinout — but its TOD input is designed for a 50/60 Hz tick (wired to /VSYNC on the Amiga), and it is notoriously ESD-sensitive on the joystick ports.

Every Amiga model uses two 8520s. CIA-A (even, at $BFE001 register base) handles keyboard serial data on SP/CNT, the parallel port, power LED, and the /OVL line that maps Kickstart to $000000 after reset. CIA-B (odd, at $BFD000) handles floppy /SEL0-3, /MTR, /STEP, /DIR, /SIDE, the serial port, right-hand controller port and the audio filter relay.

Cross-reference: the C64's 6526 CIA is the same silicon family and pinout — the Amiga variant replaces the mains-frequency TOD with a /VSYNC-derived tick.

  • Dead keyboard + no power-LED boot blink = CIA-A: verify E-clock at pin 25 (~0.7 MHz), /CS at pin 23, then swap U7 with a known-good 8520 (it is socketed on most boards).
  • Floppy motor never spins / drive not selected = CIA-B port B (pins 10-17): check /SEL0-3 and /MTR lines to the DB23 floppy header for shorts to the +5V rail.
  • Hot-plug damage: plugging a joystick in while powered latches the port pins — if one direction/button dies on a port, suspect the CIA, not the mouse.
  • /IRQ pin 21 is open-drain — a failed pull-up or shorted CIA holds the line low and the machine Guru-meditates or hangs during Workbench IRQ storms.
  • When swapping 6526 spares in from C64s: electrically compatible for most tests, but confirm the TOD tick source and serial register behaviour before calling it a permanent fix.

Datasheets and references

Related chips

Theme Palette

Default Dark
High-contrast dark
Amber Terminal
Monochrome amber
Matrix CRT
Phosphor green
Workbench Light
Clean light mode

Audio & Display

Relay Click Sounds Web Audio API — soft mechanical clicks
CRT Scanline & Flicker Pure CSS overlay effect

System Info

Customization Panel Theme preference, audio FX, and CRT overlay settings are saved to your browser's localStorage and persist between visits. No cookies or server-side storage is used.
Keyboard Shortcuts Press Esc to close this panel. Use the header moon/sun icon to cycle themes.