Skip to content
A project ofgwark.dev

MOS / Rockwell / WDC · Integrated circuit

MOS 6522 VIA

Two 8-bit ports, two timers, a shift register and interrupt handling. The chip that turns a bare 6502 into a computer with I/O.

Cheat sheet (SVG)
Logic level
5 V
Package
PDIP-40

1.Pinout diagram

Highlight a signalhover to preview, click to keep

Pins 1-20

6522 VIA

Pins 21-40

Pin detail

Hover a pin for its mappings and gotchas. Click to keep it here.

Logic level
5 V
Package
PDIP-40

Fig. 1. MOS 6522 VIA, PDIP-40. Hover or tap a signal to light up every pin that carries it.

2.Watch out

3.Minimum circuit

What has to go around the chip before it will run.

VCCGND6522 VIA100 nF between VCC (20) and GND100 nF3.3 kOhm between IRQ (21) and VCC3.3 kOhmWire link between CS1 (24) and VCCWire linkWire link between CS2 (23) and GNDWire linkVSS (1) to GNDVCC (20) to VCCVSS 1VCC 20VCC 20IRQ 21CS2 23CS1 24
Fig. 2. Minimum circuit, drawn from Table 1. Dashed parts are optional. Crossing wires are not connected.
Table 1. External parts, and why each one is there.
PartBetween
100 nFVCC (20) to GND
3.3 kOhmIRQ (21) to VCC
Wire linkoptionalCS1 (24) to VCC
Wire linkoptionalCS2 (23) to GND

RES (34) joins the system reset line, and PHI2 (25) must be the same clock the processor uses: every register access is timed from its falling edge.

4.Full pin reference

Every pin, alias and mapping. This is the table that prints.

Table 2. Pin assignments.

Complete pin reference for MOS 6522 VIA
PinNameFunctions

Found a wrong pin? The whole board is one file, data/boards/mos-6522.json.

Edit this file on GitHubReport it instead