6522 VIA pinout

DIP-40. Two 8-bit ports, timers, serial and user port

Versatile interface adapter. Two ports (PA, PB), two timers, shift register and handshake lines CA1/CA2 and CB1/CB2. VIC-20: VIA1 at $9110 (serial bus, cassette, RESTORE NMI), VIA2 at $9120 (keyboard, joystick, timers, IRQ). PET: VIA at $E840 (user port, cassette 2, IEEE-488 handshake, timers, CB2 beep).

Open the interactive VIA 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.
18CB1ioHandshake / shift clock, port B.
19CB2ioHandshake / shift data, port B (board use: see the summary).
20Vccpower+5 V supply.
21/IRQctrlInterrupt request to the CPU /IRQ.
22R/WctrlRead/write from the CPU.
23/CS2ctrlChip select 2, active LOW.
24CS1ctrlChip select 1, active HIGH.
25Φ2clockPhase 2 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 VIA.
35RS3addrRegister select bit 3.
36RS2addrRegister select bit 2.
37RS1addrRegister select bit 1.
38RS0addrRegister select bit 0.
39CA2ioHandshake line, port A.
40CA1ioInterrupt input, port A.

Fitted in

Sources