6520 PIA pinout

DIP-40. Keyboard, cassette 1, IEEE-488 data (PET)

Two 8-bit ports with handshake lines. PIA1 at $E810: keyboard rows, cassette 1, screen-retrace IRQ, diagnostic sense. PIA2 at $E820: IEEE-488 data port. Dead keyboard points at PIA1; no disk or IEEE-488 points at PIA2 or the VIA.

Open the interactive PIA pinout

Pins

PinNameTypeSignal
1Vssground0 V.
2PA0ioPort A bit 0.
3PA1ioPort A bit 1.
4PA2ioPort A bit 2.
5PA3ioPort A bit 3.
6PA4ioPort A bit 4.
7PA5ioPort A bit 5.
8PA6ioPort A bit 6.
9PA7ioPort A bit 7.
10PB0ioPort B bit 0.
11PB1ioPort B bit 1.
12PB2ioPort B bit 2.
13PB3ioPort B bit 3.
14PB4ioPort B bit 4.
15PB5ioPort B bit 5.
16PB6ioPort B bit 6.
17PB7ioPort B bit 7.
18CB1ioPort B handshake / interrupt input (active edge set in the control register).
19CB2ioHandshake, port B.
20Vccpower+5 V supply.
21R/WctrlRead/write from the CPU.
22CS0ctrlChip select 0, active HIGH.
23/CS2ctrlChip select 2, active LOW.
24CS1ctrlChip select 1, active HIGH.
25Φ2 (E)clockPhase 2 (E) clock from the CPU.
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 PIA.
35RS1addrRegister select bit 1.
36RS0addrRegister select bit 0.
37/IRQBctrlInterrupt request, port B.
38/IRQActrlInterrupt request, port A.
39CA2ioHandshake line, port A.
40CA1ioInterrupt input, port A.

Fitted in

Sources