Skip to content
A project ofgwark.dev

MOS / Rockwell / WDC · Microcontroller

MOS 6502

The 8-bit CPU behind the Apple II, C64, NES and BBC Micro, and still the usual first homebrew computer build.

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

1.Pinout diagram

Highlight a signalhover to preview, click to keep

Pins 1-20

6502

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 6502, PDIP-40. Hover or tap a signal to light up every pin that carries it.

2.Watch out

3.Minimum circuit to run

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

VCCGND6502Clock oscillator between PHI0 (37) and GNDClockoscillator10 kOhm between RES (40) and VCC10 kOhm10 kOhm between IRQ (4) and VCC10 kOhm10 kOhm between NMI (6) and VCC10 kOhm10 kOhm between RDY (2) and VCC10 kOhm10 kOhm between SO (38) and VCC10 kOhm100 nF between VCC (8) and GND100 nFVSS (1) to GNDVCC (8) to VCCVSS (21) to GNDVSS 1RDY 2IRQ 4NMI 6VCC 8VCC 8VSS 21PHI0 37SO 38RES 40
Fig. 2. Minimum circuit to run, drawn from Table 1. Crossing wires are not connected.
Table 1. External parts, and why each one is there.
PartBetween
Clock oscillatorPHI0 (37) to GND
10 kOhmRES (40) to VCC
10 kOhmIRQ (4) to VCC
10 kOhmNMI (6) to VCC
10 kOhmRDY (2) to VCC
10 kOhmSO (38) to VCC
100 nFVCC (8) to GND

Qualify address decoding with PHI2 (39), not with the raw address lines, or peripherals will see bus noise as accesses.

4.Full pin reference

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

Table 2. Pin assignments.

Complete pin reference for MOS 6502
PinNameFunctions

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

Edit this file on GitHubReport it instead