6526 CIA pinout

DIP-40. Keyboard, joysticks, serial, user port

CIA1 at $DC00 (keyboard, joysticks, /IRQ). CIA2 at $DD00 (serial bus, user port, /NMI). Two of these on a C64. The timers and the TOD clock are on the same chip.

Open the interactive CIA pinout

Pins

PinNameTypeSignal
1Vssground0 V.
2PA0ioPort A bit 0. C64 CIA1: keyboard column out and control port 2. CIA2: VIC bank select.
3PA1ioPort A bit 1. C64 CIA1: keyboard column out and control port 2. CIA2: VIC bank select.
4PA2ioPort A bit 2. C64 CIA1: keyboard column out and control port 2. CIA2: RS-232 data out (user port M).
5PA3ioPort A bit 3. C64 CIA1: keyboard column out and control port 2. CIA2: serial bus.
6PA4ioPort A bit 4. C64 CIA1: keyboard column out and control port 2. CIA2: serial bus.
7PA5ioPort A bit 5. C64 CIA1: keyboard column out. CIA2: serial bus.
8PA6ioPort A bit 6. C64 CIA1: keyboard column out. CIA2: serial bus.
9PA7ioPort A bit 7. C64 CIA1: keyboard column out. CIA2: serial bus.
10PB0ioPort B bit 0. C64 CIA1: keyboard row in and control port 1. CIA2: user port.
11PB1ioPort B bit 1. C64 CIA1: keyboard row in and control port 1. CIA2: user port.
12PB2ioPort B bit 2. C64 CIA1: keyboard row in and control port 1. CIA2: user port.
13PB3ioPort B bit 3. C64 CIA1: keyboard row in and control port 1. CIA2: user port.
14PB4ioPort B bit 4. C64 CIA1: keyboard row in and control port 1. CIA2: user port.
15PB5ioPort B bit 5. C64 CIA1: keyboard row in. CIA2: user port.
16PB6ioPort B bit 6. C64 CIA1: keyboard row in. CIA2: user port.
17PB7ioPort B bit 7. C64 CIA1: keyboard row in. CIA2: user port.
18/PCctrlPeripheral control strobe. Pulses when port B is written.
19TODioTime-of-day clock input (50/60 Hz tick).
20Vccpower+5 V supply.
21/IRQctrlInterrupt request. On the C64, CIA1 drives /IRQ and CIA2 /NMI.
22R/WctrlRead/write from the CPU.
23/CSctrlChip select (address decoding). On the C64: CIA1 at $DC00, CIA2 at $DD00.
24/FLAGctrlFlag input. Edge-triggered interrupt input.
25Φ2clockPhase 2 system clock input.
26D7dataData bus bit 7.
27D6dataData bus bit 6.
28D5dataData bus bit 5.
29D4dataData bus bit 4.
30D3dataData bus bit 3.
31D2dataData bus bit 2.
32D1dataData bus bit 1.
33D0dataData bus bit 0.
34/RESctrlReset. LOW clears the CIA.
35RS3addrRegister select bit 3.
36RS2addrRegister select bit 2.
37RS1addrRegister select bit 1.
38RS0addrRegister select bit 0.
39SPioSerial port shift register I/O.
40CNTioCounter clock input/output for the timers.

Fitted in

Sources