Repository files navigation

6502-COB

6502-COB.png

An AC6502 retro-style 8-bit computer based on the 65C02 microprocessor.

📖 Guide:AC6502 Documentation — the user's and programmer's guide for the whole family. See COB's page in the family appendix.


Table of Contents


Overview

The AC6502 ecosystem is a family of open-source, 65C02-based computers sharing a common architecture, memory map, and BIOS. Each computer in the family is purpose-built for a different use case but runs the same software and firmware.

The COB (Computer on a Backplane) is a full-featured modular desktop computer. It features a real 65C02 CPU, a backplane architecture with expandable card slots, up to 544KB RAM, composite or VGA video output, CompactFlash or SD storage, a real-time clock, and support for PS/2 keyboards, matrix keyboards, and Atari 2600-compatible joysticks.

Architecture

All AC6502 computers share:

  • CPU: 65C02 (or accurate emulation)
  • Memory: 32KB RAM + 32KB ROM, with optional banked RAM expansion
  • Memory Map: Standardized across the ecosystem — zero page, stack, I/O space ($8000–$9FFF), system ROM, and interrupt vectors at $FFFA–$FFFF
  • Bus: 16-bit address bus, 8-bit bidirectional data bus, standard 65C02 control signals (RW, PHI2, RESET, IRQ, NMI, RDY, SYNC)
  • BIOS: A common BIOS provides the kernel, monitor, and BASIC interpreter across all systems

Systems

ProjectDescription
6502-ACEAll-in-one Computer Experience — A single board computer
6502-COBComputer On a Backplane — Modular desktop computer with expandable card slots (YOU ARE HERE)
6502-DEVDevelopment Environment Vehicle — Emulation-based dev system
6502-KIMKeypad Input Monitor - KIM-1 inspired minimal computer
6502-VCSVideo Computer System — Cartridge-based retro gaming console

Software

ProjectDescription
6502-BIOSThe shared BIOS (kernel, monitor, BASIC) for all AC6502 computers
6502-EMULATOREmulator for the whole family — desktop app, browser build, and a command line for scripted runs
6502-PRGTemplate project for writing assembly language programs
6502-CRTTemplate project for writing assembly language cartridges
6502-ASMAssembly language example programs and demos
6502-BASBASIC program listings
6502-WOZMONWozmon as a standalone ROM
6502-NOPAn all-NOP ROM, for probing a board during bring-up
6502-DOCSThe documentation site — the guide, the printable reference cards, branding and label artwork
cffsBuilds CompactFlash disk images for the BIOS filesystem
bastokTokenizes BASIC listings into .prg images, and back
bin2wozConverts a binary into a Wozmon serial upload

Hardware

This repository contains KiCad 7.0+ PCB designs for the backplanes, cards, and helpers that make up the COB system.

Backplanes

Hardware/Backplane/ — Passive backplane providing 5 card slots with full bus interconnect across all slots.

Hardware/Backplane Pro/ — Enhanced backplane with integrated clock generation, reset circuitry, and power distribution plus 5 card slots. Rev 1.1 moves to entirely through-hole components and adds an onboard power switch and DC barrel jack input.

Hardware/Backplane Helper/ — Adds additional card slots to expand the total backplane configuration up to 12 slots.

Cards

Hardware/CPU Card/ — Hosts the 65C02 CPU in a card form factor for backplane-based COB systems.

Hardware/CPU Card Pro/ — Hosts a 65816 16-bit CPU (backward-compatible with 65C02). (Untested)

Hardware/Memory Card/ — Provides 32KB SRAM and 32KB EEPROM with address decoding logic for COB systems using the CPU Card.

Hardware/RAM Card/ — 512KB banked RAM expansion organized as two 256KB banks with 256 × 1KB windows each.

Hardware/RTC Card/ — Real-time clock via Dallas DS1511Y with battery backup and 256 bytes of battery-backed SRAM.

Hardware/GPIO Card/ — General-purpose I/O via 65C22 VIA supporting keyboards, joysticks, timers, and custom devices.

Hardware/Serial Card/ — RS-232 serial communication via 65C51 ACIA and MAX232 level shifter.

Hardware/Serial Card Pro/ — Enhanced serial card with full modem control signals (DTR, DCD, DSR).

Hardware/VGA Card/ — VGA 640×480 video output via Raspberry Pi Pico running Pico9918 with TMS9918A-compatible graphics modes.

Hardware/VGA Card Pro/ — Fully programmable VGA output using Pi Pico with custom firmware. (Untested)

Hardware/Video Card/ — Composite video output via TMS9918A Video Display Processor with 16KB video RAM.

Hardware/Video Card Pro/ — Enhanced composite video card. (Untested)

Hardware/Sound Card/ — 3-voice SID audio output via ARMSID module with RCA line-level output.

Hardware/Storage Card/ — CompactFlash storage interface supporting up to 128GB via IDE-compatible protocol.

Hardware/Storage Card Pro/ — SD card (up to 32GB) and 16MB onboard SPI flash storage interface. (Untested, experimental — the stock BIOS has no driver for it; see STP Controller)

Hardware/LCD Card/ — 16×2 character LCD display via 65C22 VIA in 4-bit or 8-bit mode.

Hardware/Blinkenlights Card/ — Visual bus monitoring with LEDs showing address bus (16), data bus (8), and control signals (8) in real time.

Hardware/Prototype Card/ — Blank prototyping area with integrated breadboard and full bus access headers.

Helpers

Hardware/Keyboard Encoder Helper/ — ATmega1284p-based dual keyboard encoder supporting PS/2 keyboard and 8×8 matrix keyboard simultaneously via 65C22 VIA.

Hardware/PS2 Helper/ — ATmega328p-based PS/2 keyboard bridge that drives an MT8808 analog crosspoint switch to emulate a matrix keyboard. Its output is a raw 8×8 matrix and feeds the matrix inputs of a Keyboard Encoder Helper, which is what talks to the 65C22 VIA — not the VIA directly.

Hardware/Keyboard Helper/ — 64-key matrix keyboard with Atari 2600-compatible joystick support.

Hardware/GPIO Helper/ — 8 buttons and 8 LEDs for testing and debugging GPIO Card connections.

Hardware/GPIO Breadboard Helper/ — Breadboard interface adapter for the GPIO Card.

Hardware/Joystick Helper/ — Atari 2600-style dual joystick connector and interface board.

Hardware/Clock Helper/ — Manual clock control providing single-step, free-run, and halt modes for debugging real CPU systems.

Hardware/DB25 Helper/ — GPIO to DB25 connector adapter for external device interfacing.

Hardware/Breadboard Helper/ — Exposes the full AC6502 bus to a breadboard for prototyping and experimentation.

Hardware/Mega Helper/ — Arduino Mega 2560 interface adapter for the AC6502 bus.

Hardware/LCD Board/ — 320×240 TFT LCD display (ILI9341) interfaced via 65C22 VIA. (Untested)

Hardware/VERA Helper/ — VERA FPGA video module adapter for the AC6502 bus.

Firmware

This repository contains PlatformIO-based firmware for the COB system's microcontroller helpers.

KEH Controller

Firmware/KEH Controller/

Firmware for the ATmega1284p on the Keyboard Encoder Helper. Provides:

  • Simultaneous PS/2 keyboard and 8×8 matrix keyboard scanning
  • ASCII conversion with modifier key support (Shift, Ctrl)
  • Buffered, debounced input handling
  • Parallel I/O to the AC6502 bus via 65C22 VIA

See Firmware/KEH Controller/README.md for setup and usage instructions.

PS2 Keyboard Controller

Firmware/PS2 Keyboard Controller/

Firmware for the ATmega328p on the PS2 Helper. Provides:

  • Interrupt-driven PS/2 keyboard scan code reading
  • MT8808 analog crosspoint switch matrix control
  • Make/break detection and extended scan code support
  • Function key emulation via FN key combinations

The MT8808 closes row/column contacts in place of physical key switches, so this card connects to the matrix inputs of a Keyboard Encoder Helper, not to a 65C22 VIA. The encoder does the scanning and ASCII conversion; wired straight to a VIA the card produces nothing, as the BIOS has no matrix-scanning code.

See Firmware/PS2 Keyboard Controller/README.md for setup and usage instructions.

STP Controller

Firmware/STP Controller/

Firmware for the ATmega328p on the Storage Card Pro. Provides:

  • Memory-mapped SPI controller for 6502 bus access
  • Support for SD card, 16MB SPI flash, and external SPI devices
  • Dual-speed SPI (4 MHz normal operation, 400 kHz initialization)
  • PHI2-synchronized interface for reliable 6502 communication

⚠️Experimental. The Storage Card Pro is not part of the default I/O set the BIOS probes for, and no COB machine is built around it today. The BIOS storage slot expects eight True IDE CompactFlash registers at $8C00–$8C07; this card presents two SPI registers instead, so a stock BIOS reports NO DEVICE for every storage path. Using it needs a modified BIOS or software that drives the two registers directly.

See Firmware/STP Controller/README.md for setup and usage instructions.

CAD

CAD/

3D-printable enclosure parts and laser-cut top panels for the COB system.

Production

Production/

JLCPCB-ready Gerber files and BOM/CPL for PCB fabrication and assembly.

Schematics

Schematics/

PDF schematics for each board.

Libraries

Libraries/

Shared KiCad symbol and footprint libraries used across all AC6502 hardware projects.

Bill of Materials

Backplane

ReferenceQtyValueDescriptionDigiKeyMouser
J1–J556502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J6, J726502 BusBus Connector 2×20732-5401-ND

Backplane Helper

ReferenceQtyValueDescriptionDigiKeyMouser
J1, J226502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J316502 BusBus Connector 2×20732-5401-ND

Backplane Pro

Rev 1.1

ReferenceQtyValueDescriptionMouser
C1, C3210uFPolarized capacitor
C21100nFUnpolarized capacitor
D11LEDPower LED 3mm
J115V DCDC Barrel Jack640-DCJ200-10-A-K1-K
J2–J4, J7, J856502 Card ConnectorCard Edge 2×20571-5-5530843-4
J51CLOCK ENBL SWPin Header 1×2
J61RESET SWPin Header 1×2
J916502 BusBus Connector 2×20
JP11Solder JumperSolder Jumper 2-pole
Q112N3904NPN Transistor TO-92
R11330Resistor
R211MResistor
R3147kResistor
R4110kResistor
R511kResistor
SW11POWERSPDT Power Switch612-400MSP1R6BLKM6QE
SW21RESETTact Push Button 5mm
U11LM555Timer SOIC-8
X11OCXO-14Crystal Oscillator DIP-14

Rev 1.0

ReferenceQtyValueDescriptionLCSCDigiKeyMouser
C1, C3–C1413100nFUnpolarized capacitorC49678
C2110uFPolarized capacitorC7171
D111N5819Schottky Diode SOD-323FC191023
D21LEDLED 0805C2297
J11PWR_SWJST XH 1×2455-2247-ND
J21USB-CUSB 2.0 Type-C ReceptacleC2988369
J31RESET_SWJST XH 1×2455-2247-ND
J41CLOCK_ENBL_SWJST XH 1×2455-2247-ND
J5–J956502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J1016502 BusBus Connector 2×20
Q11SS8050NPN Transistor SOT-23C2150
R111MResistorC17514
R2147kResistorC17713
R311kResistorC17513
R4110kResistorC17414
R5, R625.1kResistorC27834
R71330ResistorC17630
SW11ResetPush ButtonC318884
U11LM555xMTimer SOIC-8C7593
X11OCXO-14Crystal Oscillator DIP-14

Blinkenlights Card

ReferenceQtyValueDescriptionLCSC
C1–C44100nFUnpolarized capacitorC49678
D1–D2525LEDLED 0805C2297
D26, D272LEDLED 0805C2295
D28–D303LEDLED 0805C2296
D31, D322LEDLED 0805C2293
R1–R3232330ResistorC17630
U1, U2, U4374HC5738-bit Latch SOIC-20C5608
U3174HC04Hex Inverter SOIC-14C5590

Breadboard Helper

ReferenceQtyValueDescriptionDigiKey
J116502 BusBus Connector 2×20732-5401-ND
J2, J32Pin HeaderPin Header 1×20

Clock Helper

ReferenceQtyValueDescription
C11100nFCapacitor
D1, D22LEDLED 3mm
J11IOPin Header 1×5
R1–R551kResistor
R6–R83330Resistor
SW1, SW22XKB5858-ZDPDT Toggle Switch
SW31XKB5858-WDPDT Toggle Switch
U1174HC74Dual D Flip-flop DIP-14

CPU Card

ReferenceQtyValueDescriptionLCSC
C11100nFUnpolarized capacitorC49678
J21Pin HeaderPin Header 1×2
J31EXPPin Header 2×5
R1–R6610kResistorC2930231
U1165C02CPU DIP-40

Revision History

Rev 1.1

  • Pull-up resistors changed from 1kΩ to 10kΩ.

Rev 1.0

  • Initial release.

CPU Card Pro

ReferenceQtyValueDescriptionLCSC
C1–C44100nFUnpolarized capacitorC49678
J21BANK ADDRPin Header 2×5
J31EXPPin Header 2×4
R1–R661kResistorC17513
U1165C816CPU DIP-40
U2174HC00Quad NAND SOIC-14C5586
U3174HC245Octal Bus Transceiver TSSOP-20C5626
U4174HC5738-bit Latch SOIC-20C5608

DB25 Helper

ReferenceQtyValueDescriptionDigiKey
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
J31KEYBOARDDB-25 Connector (Male)609-1505-ND

GPIO Breadboard Helper

ReferenceQtyValueDescription
J11PORT AGPIO Connector 2×6
J21PORT APin Header 1×12
J31PORT BPin Header 1×12
J41PORT BGPIO Connector 2×6

GPIO Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized capacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21IO SELECTPin Header 2×8
J31PORT AGPIO Connector 2×6
J41PORT BGPIO Connector 2×6
U1174HC138Decoder SOIC-16C5602
U2165C22VIA DIP-40

GPIO Helper

ReferenceQtyValueDescriptionDigiKey
D1–D88LEDLED 3mm
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
R1–R881kResistor
R9–R168330Resistor
SW1–SW88Push ButtonPush Button 6mm2223-TS02-66-50-BK-160-LCR-D-ND

Joystick Helper

ReferenceQtyValueDescriptionDigiKey
J11PORTGPIO Connector 2×6
J21DB-9 MaleDB-9 Connector (Male)609-1481-ND
R1–R881kResistor

Keyboard Encoder Helper

ReferenceQtyValueDescriptionDigiKey
C1, C42100nFCapacitor
C2, C3222pFCapacitor
J11PORT BGPIO Connector 2×6
J21PORT AGPIO Connector 2×6
J31PS/2 KEYBOARD6-pin Mini-DIN
J41KEYBOARDDB-25 Connector (Male)609-1505-ND
R111kResistor
U11ATmega1284-PMCU DIP-40
Y1116 MHzCrystal HC49-U3155-16M20P2/49US-ND

Keyboard Helper

ReferenceQtyValueDescriptionDigiKey
J1, J22JOYSTICKDB-9 Connector (Male)609-1481-ND
J3, J42JOYSTICKGPIO Connector 2×6
J5, J62PORTGPIO Connector 2×6
J71KEYBOARDDB-25 Connector (Male)609-1505-ND
R1–R16161kResistor
SW1–SW6767Cherry MXKey Switch

LCD Board

ReferenceQtyValueDescription
C1–C44100nFCapacitor
D1, D22Schottky DiodeSchottky Diode DO-35
J116502 BusBus Connector 2×20
J21IO SELECTPin Header 2×8
J31HVSYNCPin Header 1×1
R1110kResistor
U1165C22VIA DIP-40
U21Adafruit 2.8" TFTTFT LCD Module
U3174HC138Decoder DIP-16

LCD Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized capacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21GPIOPin Header 1×7
J31IO SELECTPin Header 2×8
R11RResistor
U1165C22VIA DIP-40
U21LCD-16X216×2 Character LCD
U3174HC138Decoder SOIC-16C5602
VR1110kPotentiometer

Mega Helper

ReferenceQtyValueDescription
A11Arduino Mega 2560Arduino Mega 2560 R3 Shield
J116502 BusBus Connector 2×20

Memory Card

ReferenceQtyValueDescriptionLCSC
C1–C55100nFUnpolarized capacitorC49678
J21Pin HeaderPin Header 2×2
J31Pin HeaderPin Header 1×2
R1, R221kResistorC17513
U1, U2, U5374HC00Quad NAND SOIC-14C5586
U31AS6C62256SRAM DIP-28
U41AT28C256EEPROM DIP-28

Prototype Card

ReferenceQtyValueDescriptionLCSC
C1–C33100nFUnpolarized capacitorC49678
J21Bus HeaderPin Socket 2×20
J31EXPPin Header 2×4
U1174HC138Decoder SOIC-16C5602

PS2 Helper

ReferenceQtyValueDescription
C1–C33100nFDisc Capacitor
C4, C5222pFDisc Capacitor
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
J31PS/2Mini-DIN 6-pin
J41JOYSTICKGPIO Connector 2×6
R1–R991kResistor
U11MT8808Analog Matrix Switch DIP-28
U21ATmega328MCU DIP-28
Y1116 MHzCrystal

RAM Card

ReferenceQtyValueDescriptionLCSC
C1–C77100nFUnpolarized CapacitorC49678
J21LATCH ENPin Header 1×2
J31Conn_02x08Pin Header 2×8
J41BANK ADDRPin Header 2×5
R1, R2210kResistorC17414
U11AS6C4008SRAM DIP-32
U2174HC573Octal Latch SOIC-20C5608
U3, U6274HC00Quad NAND SOIC-14C5586
U4174HC21Dual 4-input AND SOIC-14C75398
U5174HC308-input NAND SOIC-14C19818870
U7174HC138Decoder SOIC-16C5602

RTC Card

ReferenceQtyValueDescriptionLCSCDigiKey
BT11BAT-HLD-001-THMCoin Cell Battery Holder
C1–C33100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21AUXPin Header 1×6
J31INT SelectPin Header 1×3
J41Conn_02x08Pin Header 2×8
R111kResistorC17513
U11DS1511YRTC DIP-28DS1511Y+-ND
U2, U3274HC138Decoder SOIC-16C5602

Serial Card

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C6, C83100nFUnpolarized CapacitorC49678
C2–C541uFUnpolarized CapacitorC28323
C7122pFUnpolarized CapacitorC1804
D11Schottky DiodeSchottky Diode DO-35
J21DB9 FEMALE (DCE)DB-9 Connector (Female)609-1487-ND
J31Conn_02x08Pin Header 2×8
J41CTS ENPin Header 1×3
R111MResistorC103906
U11MAX232RS-232 Driver/ReceiverC59824
U2174HC138Decoder SOIC-16C5602
U316551ACIA DIP-28
Y111.8432 MHzCrystal

Serial Card Pro

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C2, C11, C134100nFUnpolarized CapacitorC49678
C3–C1081uFUnpolarized CapacitorC28323
C12122pFUnpolarized CapacitorC1804
D11Schottky DiodeSchottky Diode DO-35
J21DB9 MALE (DTE)DB-9 Connector (Male)609-1481-ND
J31Conn_02x08Pin Header 2×8
J41DCD SelectPin Header 1×3
R111MResistorC103906
U1, U22MAX232RS-232 Driver/ReceiverC59824
U3174HC138Decoder SOIC-16C5602
U416551ACIA DIP-28
Y111.8432 MHzCrystal

Sound Card

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C222.2nFUnpolarized CapacitorC28260
C3, C52100nFUnpolarized CapacitorC49678
C411uFUnpolarized CapacitorC28323
J21VDDJST XH 1×2
J31AUDIORCA ConnectorPJRAN1X1U02X
J51Conn_02x08Pin Header 2×8
R111kResistorC17513
U116581SID Chip DIP-28
U2174HC138Decoder SOIC-16C5602

Storage Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized CapacitorC49678
D11LEDActivity LED 0805C2297
J21Conn_02x08Pin Header 2×8
J31Compact FlashCompactFlash ConnectorC444350
J41ACT LEDJST XH 1×2
R1–R441kResistorC17513
R5, R62330ResistorC17630
U1174HC00Quad NAND SOIC-14C5586
U2174HC138Decoder SOIC-16C5602

Storage Card Pro

ReferenceQtyValueDescriptionLCSCDigiKey
C1–C4, C7, C86100nFUnpolarized CapacitorC49678
C5, C6222pFDisc CapacitorC107114
C9, C1021uFUnpolarized CapacitorC28323
D11LEDActivity LED 0805C2297
J11ACT LEDJST XH 1×2
J31SPIPin Header 1×6
J41SD CARDSD Card ConnectorC569097
J51Conn_02x08Pin Header 2×8
R1, R22330ResistorC17630
R3, R421kResistorC17513
U11TXS0108EPWLevel Shifter TSSOP-20C17206
U21ATmega328MCU DIP-28
U31W25Q128JVSFlash Memory SOIC-8C97521
U4174HC138Decoder SOIC-16C5602
U51LP2985-3.3LDO Regulator 3.3V SOT-23-5C95414
Y1116 MHzCrystal3155-16M20P2/49US-ND

VERA Helper

ReferenceQtyValueDescriptionDigiKey
C1, C22100nFDisc Capacitor
D11Schottky DiodeSchottky Diode DO-35
J116502 BusBus Connector 2×20
J21VERA ModulePin Header 2×12
J31Audio LRCA ConnectorPJRAN1X1U02X
J41Audio RRCA ConnectorPJRAN1X1U03X
J51INT SelectPin Header 1×3
J61Conn_02x08Pin Header 2×8
U1, U2274HC138Decoder DIP-16

VGA Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21INT SelectPin Header 1×3
J31Conn_02x08Pin Header 2×8
U11Pico9918AVDP Module DIP-40
U2, U3274HC138Decoder SOIC-16C5602

VGA Card Pro

ReferenceQtyValueDescriptionLCSC
C1–C66100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21VGADB-15 VGA Connector (Female)
J31INT SelectPin Header 1×3
J41Conn_02x08Pin Header 2×8
Q11BSS138N-Channel MOSFET SOT-23C78284
R1, R2, R4, R741kResistorC17513
R3, R622.2kResistorC17520
R5, R82470ResistorC17710
R91820ResistorC17837
R101390ResistorC17655
R11, R12222ResistorC17561
U11SN74LVC4245APWROctal Bus Transceiver TSSOP-24C7859
U2174LVC245Octal Bus Transceiver TSSOP-20C6082
U31Raspberry Pi PicoMCU Module
U4174HC138Decoder SOIC-16C5602
U5174LVC138Decoder SOIC-16C6061

Video Card

ReferenceQtyValueDescriptionLCSCMouserDigiKey
C1, C2232pFDisc CapacitorC107114
C3–C108100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
FB11BLM41PG600SN1LFerrite Bead 1806C85844
J11INT SelectPin Header 1×3
J31Conn_02x08Pin Header 2×8
J41VIDEORCA ConnectorPJRAN1X1U04X
Q112N4401NPN BJT TO-92
R11470ResistorC17710
R2175ResistorC17820
U11TMS9918AVDP DIP-40
U2, U5, U6374HCT5748-bit Register SOIC-20C6001
U3, U4274HC138Decoder SOIC-16C5602
U71AS6C62256SRAM DIP-28
U8174HCT04Hex Inverter SO-14C672096
Y1110.738635 MHzCrystal774-MP107-E

Video Card Pro

ReferenceQtyValueDescriptionLCSCMouserDigiKey
C1, C2220pFDisc CapacitorC105173
C3–C108100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
FB11BLM41PG600SN1LFerrite Bead 1806C85844
J11VIDEORCA ConnectorPJRAN1X1U04X
J21SERIALPin Header 1×4
J31INT SelectPin Header 1×3
J51Conn_02x08Pin Header 2×8
Q112N4401NPN BJT TO-92
R1, R224.7kResistor
R31470ResistorC17710
R4175ResistorC17820
R511kResistor
U1, U4274HC157Quad 2-to-1 Mux SOIC-16C6823
U2, U5274HC166Shift Register SOIC-16C473363
U31ATmega1284-PMCU DIP-40
U6174HC138Decoder SOIC-16C5602
VR1, VR2210kPotentiometer
Y1114.31818 MHzCrystal774-MP107-E

Purchase

I have a few PCBs available on Tindie for those interested in building their own AC6502 system without ordering from a fab directly.

I sell on Tindie

License

Hardware designs are released under the CERN Open Hardware Licence Version 2 – Permissive.
Firmware is released under the MIT License — KEH Controller, PS2 Keyboard Controller, STP Controller.

About

6502-COB 8-Bit Retro Computer Project

Resources

Stars

47 stars

Watchers

2 watching

Forks

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Repository files navigation

6502-COB

6502-COB.png

An AC6502 retro-style 8-bit computer based on the 65C02 microprocessor.

📖 Guide:AC6502 Documentation — the user's and programmer's guide for the whole family. See COB's page in the family appendix.


Table of Contents


Overview

The AC6502 ecosystem is a family of open-source, 65C02-based computers sharing a common architecture, memory map, and BIOS. Each computer in the family is purpose-built for a different use case but runs the same software and firmware.

The COB (Computer on a Backplane) is a full-featured modular desktop computer. It features a real 65C02 CPU, a backplane architecture with expandable card slots, up to 544KB RAM, composite or VGA video output, CompactFlash or SD storage, a real-time clock, and support for PS/2 keyboards, matrix keyboards, and Atari 2600-compatible joysticks.

Architecture

All AC6502 computers share:

  • CPU: 65C02 (or accurate emulation)
  • Memory: 32KB RAM + 32KB ROM, with optional banked RAM expansion
  • Memory Map: Standardized across the ecosystem — zero page, stack, I/O space ($8000–$9FFF), system ROM, and interrupt vectors at $FFFA–$FFFF
  • Bus: 16-bit address bus, 8-bit bidirectional data bus, standard 65C02 control signals (RW, PHI2, RESET, IRQ, NMI, RDY, SYNC)
  • BIOS: A common BIOS provides the kernel, monitor, and BASIC interpreter across all systems

Systems

ProjectDescription
6502-ACEAll-in-one Computer Experience — A single board computer
6502-COBComputer On a Backplane — Modular desktop computer with expandable card slots (YOU ARE HERE)
6502-DEVDevelopment Environment Vehicle — Emulation-based dev system
6502-KIMKeypad Input Monitor - KIM-1 inspired minimal computer
6502-VCSVideo Computer System — Cartridge-based retro gaming console

Software

ProjectDescription
6502-BIOSThe shared BIOS (kernel, monitor, BASIC) for all AC6502 computers
6502-EMULATOREmulator for the whole family — desktop app, browser build, and a command line for scripted runs
6502-PRGTemplate project for writing assembly language programs
6502-CRTTemplate project for writing assembly language cartridges
6502-ASMAssembly language example programs and demos
6502-BASBASIC program listings
6502-WOZMONWozmon as a standalone ROM
6502-NOPAn all-NOP ROM, for probing a board during bring-up
6502-DOCSThe documentation site — the guide, the printable reference cards, branding and label artwork
cffsBuilds CompactFlash disk images for the BIOS filesystem
bastokTokenizes BASIC listings into .prg images, and back
bin2wozConverts a binary into a Wozmon serial upload

Hardware

This repository contains KiCad 7.0+ PCB designs for the backplanes, cards, and helpers that make up the COB system.

Backplanes

Hardware/Backplane/ — Passive backplane providing 5 card slots with full bus interconnect across all slots.

Hardware/Backplane Pro/ — Enhanced backplane with integrated clock generation, reset circuitry, and power distribution plus 5 card slots. Rev 1.1 moves to entirely through-hole components and adds an onboard power switch and DC barrel jack input.

Hardware/Backplane Helper/ — Adds additional card slots to expand the total backplane configuration up to 12 slots.

Cards

Hardware/CPU Card/ — Hosts the 65C02 CPU in a card form factor for backplane-based COB systems.

Hardware/CPU Card Pro/ — Hosts a 65816 16-bit CPU (backward-compatible with 65C02). (Untested)

Hardware/Memory Card/ — Provides 32KB SRAM and 32KB EEPROM with address decoding logic for COB systems using the CPU Card.

Hardware/RAM Card/ — 512KB banked RAM expansion organized as two 256KB banks with 256 × 1KB windows each.

Hardware/RTC Card/ — Real-time clock via Dallas DS1511Y with battery backup and 256 bytes of battery-backed SRAM.

Hardware/GPIO Card/ — General-purpose I/O via 65C22 VIA supporting keyboards, joysticks, timers, and custom devices.

Hardware/Serial Card/ — RS-232 serial communication via 65C51 ACIA and MAX232 level shifter.

Hardware/Serial Card Pro/ — Enhanced serial card with full modem control signals (DTR, DCD, DSR).

Hardware/VGA Card/ — VGA 640×480 video output via Raspberry Pi Pico running Pico9918 with TMS9918A-compatible graphics modes.

Hardware/VGA Card Pro/ — Fully programmable VGA output using Pi Pico with custom firmware. (Untested)

Hardware/Video Card/ — Composite video output via TMS9918A Video Display Processor with 16KB video RAM.

Hardware/Video Card Pro/ — Enhanced composite video card. (Untested)

Hardware/Sound Card/ — 3-voice SID audio output via ARMSID module with RCA line-level output.

Hardware/Storage Card/ — CompactFlash storage interface supporting up to 128GB via IDE-compatible protocol.

Hardware/Storage Card Pro/ — SD card (up to 32GB) and 16MB onboard SPI flash storage interface. (Untested, experimental — the stock BIOS has no driver for it; see STP Controller)

Hardware/LCD Card/ — 16×2 character LCD display via 65C22 VIA in 4-bit or 8-bit mode.

Hardware/Blinkenlights Card/ — Visual bus monitoring with LEDs showing address bus (16), data bus (8), and control signals (8) in real time.

Hardware/Prototype Card/ — Blank prototyping area with integrated breadboard and full bus access headers.

Helpers

Hardware/Keyboard Encoder Helper/ — ATmega1284p-based dual keyboard encoder supporting PS/2 keyboard and 8×8 matrix keyboard simultaneously via 65C22 VIA.

Hardware/PS2 Helper/ — ATmega328p-based PS/2 keyboard bridge that drives an MT8808 analog crosspoint switch to emulate a matrix keyboard. Its output is a raw 8×8 matrix and feeds the matrix inputs of a Keyboard Encoder Helper, which is what talks to the 65C22 VIA — not the VIA directly.

Hardware/Keyboard Helper/ — 64-key matrix keyboard with Atari 2600-compatible joystick support.

Hardware/GPIO Helper/ — 8 buttons and 8 LEDs for testing and debugging GPIO Card connections.

Hardware/GPIO Breadboard Helper/ — Breadboard interface adapter for the GPIO Card.

Hardware/Joystick Helper/ — Atari 2600-style dual joystick connector and interface board.

Hardware/Clock Helper/ — Manual clock control providing single-step, free-run, and halt modes for debugging real CPU systems.

Hardware/DB25 Helper/ — GPIO to DB25 connector adapter for external device interfacing.

Hardware/Breadboard Helper/ — Exposes the full AC6502 bus to a breadboard for prototyping and experimentation.

Hardware/Mega Helper/ — Arduino Mega 2560 interface adapter for the AC6502 bus.

Hardware/LCD Board/ — 320×240 TFT LCD display (ILI9341) interfaced via 65C22 VIA. (Untested)

Hardware/VERA Helper/ — VERA FPGA video module adapter for the AC6502 bus.

Firmware

This repository contains PlatformIO-based firmware for the COB system's microcontroller helpers.

KEH Controller

Firmware/KEH Controller/

Firmware for the ATmega1284p on the Keyboard Encoder Helper. Provides:

  • Simultaneous PS/2 keyboard and 8×8 matrix keyboard scanning
  • ASCII conversion with modifier key support (Shift, Ctrl)
  • Buffered, debounced input handling
  • Parallel I/O to the AC6502 bus via 65C22 VIA

See Firmware/KEH Controller/README.md for setup and usage instructions.

PS2 Keyboard Controller

Firmware/PS2 Keyboard Controller/

Firmware for the ATmega328p on the PS2 Helper. Provides:

  • Interrupt-driven PS/2 keyboard scan code reading
  • MT8808 analog crosspoint switch matrix control
  • Make/break detection and extended scan code support
  • Function key emulation via FN key combinations

The MT8808 closes row/column contacts in place of physical key switches, so this card connects to the matrix inputs of a Keyboard Encoder Helper, not to a 65C22 VIA. The encoder does the scanning and ASCII conversion; wired straight to a VIA the card produces nothing, as the BIOS has no matrix-scanning code.

See Firmware/PS2 Keyboard Controller/README.md for setup and usage instructions.

STP Controller

Firmware/STP Controller/

Firmware for the ATmega328p on the Storage Card Pro. Provides:

  • Memory-mapped SPI controller for 6502 bus access
  • Support for SD card, 16MB SPI flash, and external SPI devices
  • Dual-speed SPI (4 MHz normal operation, 400 kHz initialization)
  • PHI2-synchronized interface for reliable 6502 communication

⚠️Experimental. The Storage Card Pro is not part of the default I/O set the BIOS probes for, and no COB machine is built around it today. The BIOS storage slot expects eight True IDE CompactFlash registers at $8C00–$8C07; this card presents two SPI registers instead, so a stock BIOS reports NO DEVICE for every storage path. Using it needs a modified BIOS or software that drives the two registers directly.

See Firmware/STP Controller/README.md for setup and usage instructions.

CAD

CAD/

3D-printable enclosure parts and laser-cut top panels for the COB system.

Production

Production/

JLCPCB-ready Gerber files and BOM/CPL for PCB fabrication and assembly.

Schematics

Schematics/

PDF schematics for each board.

Libraries

Libraries/

Shared KiCad symbol and footprint libraries used across all AC6502 hardware projects.

Bill of Materials

Backplane

ReferenceQtyValueDescriptionDigiKeyMouser
J1–J556502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J6, J726502 BusBus Connector 2×20732-5401-ND

Backplane Helper

ReferenceQtyValueDescriptionDigiKeyMouser
J1, J226502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J316502 BusBus Connector 2×20732-5401-ND

Backplane Pro

Rev 1.1

ReferenceQtyValueDescriptionMouser
C1, C3210uFPolarized capacitor
C21100nFUnpolarized capacitor
D11LEDPower LED 3mm
J115V DCDC Barrel Jack640-DCJ200-10-A-K1-K
J2–J4, J7, J856502 Card ConnectorCard Edge 2×20571-5-5530843-4
J51CLOCK ENBL SWPin Header 1×2
J61RESET SWPin Header 1×2
J916502 BusBus Connector 2×20
JP11Solder JumperSolder Jumper 2-pole
Q112N3904NPN Transistor TO-92
R11330Resistor
R211MResistor
R3147kResistor
R4110kResistor
R511kResistor
SW11POWERSPDT Power Switch612-400MSP1R6BLKM6QE
SW21RESETTact Push Button 5mm
U11LM555Timer SOIC-8
X11OCXO-14Crystal Oscillator DIP-14

Rev 1.0

ReferenceQtyValueDescriptionLCSCDigiKeyMouser
C1, C3–C1413100nFUnpolarized capacitorC49678
C2110uFPolarized capacitorC7171
D111N5819Schottky Diode SOD-323FC191023
D21LEDLED 0805C2297
J11PWR_SWJST XH 1×2455-2247-ND
J21USB-CUSB 2.0 Type-C ReceptacleC2988369
J31RESET_SWJST XH 1×2455-2247-ND
J41CLOCK_ENBL_SWJST XH 1×2455-2247-ND
J5–J956502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J1016502 BusBus Connector 2×20
Q11SS8050NPN Transistor SOT-23C2150
R111MResistorC17514
R2147kResistorC17713
R311kResistorC17513
R4110kResistorC17414
R5, R625.1kResistorC27834
R71330ResistorC17630
SW11ResetPush ButtonC318884
U11LM555xMTimer SOIC-8C7593
X11OCXO-14Crystal Oscillator DIP-14

Blinkenlights Card

ReferenceQtyValueDescriptionLCSC
C1–C44100nFUnpolarized capacitorC49678
D1–D2525LEDLED 0805C2297
D26, D272LEDLED 0805C2295
D28–D303LEDLED 0805C2296
D31, D322LEDLED 0805C2293
R1–R3232330ResistorC17630
U1, U2, U4374HC5738-bit Latch SOIC-20C5608
U3174HC04Hex Inverter SOIC-14C5590

Breadboard Helper

ReferenceQtyValueDescriptionDigiKey
J116502 BusBus Connector 2×20732-5401-ND
J2, J32Pin HeaderPin Header 1×20

Clock Helper

ReferenceQtyValueDescription
C11100nFCapacitor
D1, D22LEDLED 3mm
J11IOPin Header 1×5
R1–R551kResistor
R6–R83330Resistor
SW1, SW22XKB5858-ZDPDT Toggle Switch
SW31XKB5858-WDPDT Toggle Switch
U1174HC74Dual D Flip-flop DIP-14

CPU Card

ReferenceQtyValueDescriptionLCSC
C11100nFUnpolarized capacitorC49678
J21Pin HeaderPin Header 1×2
J31EXPPin Header 2×5
R1–R6610kResistorC2930231
U1165C02CPU DIP-40

Revision History

Rev 1.1

  • Pull-up resistors changed from 1kΩ to 10kΩ.

Rev 1.0

  • Initial release.

CPU Card Pro

ReferenceQtyValueDescriptionLCSC
C1–C44100nFUnpolarized capacitorC49678
J21BANK ADDRPin Header 2×5
J31EXPPin Header 2×4
R1–R661kResistorC17513
U1165C816CPU DIP-40
U2174HC00Quad NAND SOIC-14C5586
U3174HC245Octal Bus Transceiver TSSOP-20C5626
U4174HC5738-bit Latch SOIC-20C5608

DB25 Helper

ReferenceQtyValueDescriptionDigiKey
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
J31KEYBOARDDB-25 Connector (Male)609-1505-ND

GPIO Breadboard Helper

ReferenceQtyValueDescription
J11PORT AGPIO Connector 2×6
J21PORT APin Header 1×12
J31PORT BPin Header 1×12
J41PORT BGPIO Connector 2×6

GPIO Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized capacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21IO SELECTPin Header 2×8
J31PORT AGPIO Connector 2×6
J41PORT BGPIO Connector 2×6
U1174HC138Decoder SOIC-16C5602
U2165C22VIA DIP-40

GPIO Helper

ReferenceQtyValueDescriptionDigiKey
D1–D88LEDLED 3mm
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
R1–R881kResistor
R9–R168330Resistor
SW1–SW88Push ButtonPush Button 6mm2223-TS02-66-50-BK-160-LCR-D-ND

Joystick Helper

ReferenceQtyValueDescriptionDigiKey
J11PORTGPIO Connector 2×6
J21DB-9 MaleDB-9 Connector (Male)609-1481-ND
R1–R881kResistor

Keyboard Encoder Helper

ReferenceQtyValueDescriptionDigiKey
C1, C42100nFCapacitor
C2, C3222pFCapacitor
J11PORT BGPIO Connector 2×6
J21PORT AGPIO Connector 2×6
J31PS/2 KEYBOARD6-pin Mini-DIN
J41KEYBOARDDB-25 Connector (Male)609-1505-ND
R111kResistor
U11ATmega1284-PMCU DIP-40
Y1116 MHzCrystal HC49-U3155-16M20P2/49US-ND

Keyboard Helper

ReferenceQtyValueDescriptionDigiKey
J1, J22JOYSTICKDB-9 Connector (Male)609-1481-ND
J3, J42JOYSTICKGPIO Connector 2×6
J5, J62PORTGPIO Connector 2×6
J71KEYBOARDDB-25 Connector (Male)609-1505-ND
R1–R16161kResistor
SW1–SW6767Cherry MXKey Switch

LCD Board

ReferenceQtyValueDescription
C1–C44100nFCapacitor
D1, D22Schottky DiodeSchottky Diode DO-35
J116502 BusBus Connector 2×20
J21IO SELECTPin Header 2×8
J31HVSYNCPin Header 1×1
R1110kResistor
U1165C22VIA DIP-40
U21Adafruit 2.8" TFTTFT LCD Module
U3174HC138Decoder DIP-16

LCD Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized capacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21GPIOPin Header 1×7
J31IO SELECTPin Header 2×8
R11RResistor
U1165C22VIA DIP-40
U21LCD-16X216×2 Character LCD
U3174HC138Decoder SOIC-16C5602
VR1110kPotentiometer

Mega Helper

ReferenceQtyValueDescription
A11Arduino Mega 2560Arduino Mega 2560 R3 Shield
J116502 BusBus Connector 2×20

Memory Card

ReferenceQtyValueDescriptionLCSC
C1–C55100nFUnpolarized capacitorC49678
J21Pin HeaderPin Header 2×2
J31Pin HeaderPin Header 1×2
R1, R221kResistorC17513
U1, U2, U5374HC00Quad NAND SOIC-14C5586
U31AS6C62256SRAM DIP-28
U41AT28C256EEPROM DIP-28

Prototype Card

ReferenceQtyValueDescriptionLCSC
C1–C33100nFUnpolarized capacitorC49678
J21Bus HeaderPin Socket 2×20
J31EXPPin Header 2×4
U1174HC138Decoder SOIC-16C5602

PS2 Helper

ReferenceQtyValueDescription
C1–C33100nFDisc Capacitor
C4, C5222pFDisc Capacitor
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
J31PS/2Mini-DIN 6-pin
J41JOYSTICKGPIO Connector 2×6
R1–R991kResistor
U11MT8808Analog Matrix Switch DIP-28
U21ATmega328MCU DIP-28
Y1116 MHzCrystal

RAM Card

ReferenceQtyValueDescriptionLCSC
C1–C77100nFUnpolarized CapacitorC49678
J21LATCH ENPin Header 1×2
J31Conn_02x08Pin Header 2×8
J41BANK ADDRPin Header 2×5
R1, R2210kResistorC17414
U11AS6C4008SRAM DIP-32
U2174HC573Octal Latch SOIC-20C5608
U3, U6274HC00Quad NAND SOIC-14C5586
U4174HC21Dual 4-input AND SOIC-14C75398
U5174HC308-input NAND SOIC-14C19818870
U7174HC138Decoder SOIC-16C5602

RTC Card

ReferenceQtyValueDescriptionLCSCDigiKey
BT11BAT-HLD-001-THMCoin Cell Battery Holder
C1–C33100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21AUXPin Header 1×6
J31INT SelectPin Header 1×3
J41Conn_02x08Pin Header 2×8
R111kResistorC17513
U11DS1511YRTC DIP-28DS1511Y+-ND
U2, U3274HC138Decoder SOIC-16C5602

Serial Card

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C6, C83100nFUnpolarized CapacitorC49678
C2–C541uFUnpolarized CapacitorC28323
C7122pFUnpolarized CapacitorC1804
D11Schottky DiodeSchottky Diode DO-35
J21DB9 FEMALE (DCE)DB-9 Connector (Female)609-1487-ND
J31Conn_02x08Pin Header 2×8
J41CTS ENPin Header 1×3
R111MResistorC103906
U11MAX232RS-232 Driver/ReceiverC59824
U2174HC138Decoder SOIC-16C5602
U316551ACIA DIP-28
Y111.8432 MHzCrystal

Serial Card Pro

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C2, C11, C134100nFUnpolarized CapacitorC49678
C3–C1081uFUnpolarized CapacitorC28323
C12122pFUnpolarized CapacitorC1804
D11Schottky DiodeSchottky Diode DO-35
J21DB9 MALE (DTE)DB-9 Connector (Male)609-1481-ND
J31Conn_02x08Pin Header 2×8
J41DCD SelectPin Header 1×3
R111MResistorC103906
U1, U22MAX232RS-232 Driver/ReceiverC59824
U3174HC138Decoder SOIC-16C5602
U416551ACIA DIP-28
Y111.8432 MHzCrystal

Sound Card

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C222.2nFUnpolarized CapacitorC28260
C3, C52100nFUnpolarized CapacitorC49678
C411uFUnpolarized CapacitorC28323
J21VDDJST XH 1×2
J31AUDIORCA ConnectorPJRAN1X1U02X
J51Conn_02x08Pin Header 2×8
R111kResistorC17513
U116581SID Chip DIP-28
U2174HC138Decoder SOIC-16C5602

Storage Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized CapacitorC49678
D11LEDActivity LED 0805C2297
J21Conn_02x08Pin Header 2×8
J31Compact FlashCompactFlash ConnectorC444350
J41ACT LEDJST XH 1×2
R1–R441kResistorC17513
R5, R62330ResistorC17630
U1174HC00Quad NAND SOIC-14C5586
U2174HC138Decoder SOIC-16C5602

Storage Card Pro

ReferenceQtyValueDescriptionLCSCDigiKey
C1–C4, C7, C86100nFUnpolarized CapacitorC49678
C5, C6222pFDisc CapacitorC107114
C9, C1021uFUnpolarized CapacitorC28323
D11LEDActivity LED 0805C2297
J11ACT LEDJST XH 1×2
J31SPIPin Header 1×6
J41SD CARDSD Card ConnectorC569097
J51Conn_02x08Pin Header 2×8
R1, R22330ResistorC17630
R3, R421kResistorC17513
U11TXS0108EPWLevel Shifter TSSOP-20C17206
U21ATmega328MCU DIP-28
U31W25Q128JVSFlash Memory SOIC-8C97521
U4174HC138Decoder SOIC-16C5602
U51LP2985-3.3LDO Regulator 3.3V SOT-23-5C95414
Y1116 MHzCrystal3155-16M20P2/49US-ND

VERA Helper

ReferenceQtyValueDescriptionDigiKey
C1, C22100nFDisc Capacitor
D11Schottky DiodeSchottky Diode DO-35
J116502 BusBus Connector 2×20
J21VERA ModulePin Header 2×12
J31Audio LRCA ConnectorPJRAN1X1U02X
J41Audio RRCA ConnectorPJRAN1X1U03X
J51INT SelectPin Header 1×3
J61Conn_02x08Pin Header 2×8
U1, U2274HC138Decoder DIP-16

VGA Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21INT SelectPin Header 1×3
J31Conn_02x08Pin Header 2×8
U11Pico9918AVDP Module DIP-40
U2, U3274HC138Decoder SOIC-16C5602

VGA Card Pro

ReferenceQtyValueDescriptionLCSC
C1–C66100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21VGADB-15 VGA Connector (Female)
J31INT SelectPin Header 1×3
J41Conn_02x08Pin Header 2×8
Q11BSS138N-Channel MOSFET SOT-23C78284
R1, R2, R4, R741kResistorC17513
R3, R622.2kResistorC17520
R5, R82470ResistorC17710
R91820ResistorC17837
R101390ResistorC17655
R11, R12222ResistorC17561
U11SN74LVC4245APWROctal Bus Transceiver TSSOP-24C7859
U2174LVC245Octal Bus Transceiver TSSOP-20C6082
U31Raspberry Pi PicoMCU Module
U4174HC138Decoder SOIC-16C5602
U5174LVC138Decoder SOIC-16C6061

Video Card

ReferenceQtyValueDescriptionLCSCMouserDigiKey
C1, C2232pFDisc CapacitorC107114
C3–C108100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
FB11BLM41PG600SN1LFerrite Bead 1806C85844
J11INT SelectPin Header 1×3
J31Conn_02x08Pin Header 2×8
J41VIDEORCA ConnectorPJRAN1X1U04X
Q112N4401NPN BJT TO-92
R11470ResistorC17710
R2175ResistorC17820
U11TMS9918AVDP DIP-40
U2, U5, U6374HCT5748-bit Register SOIC-20C6001
U3, U4274HC138Decoder SOIC-16C5602
U71AS6C62256SRAM DIP-28
U8174HCT04Hex Inverter SO-14C672096
Y1110.738635 MHzCrystal774-MP107-E

Video Card Pro

ReferenceQtyValueDescriptionLCSCMouserDigiKey
C1, C2220pFDisc CapacitorC105173
C3–C108100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
FB11BLM41PG600SN1LFerrite Bead 1806C85844
J11VIDEORCA ConnectorPJRAN1X1U04X
J21SERIALPin Header 1×4
J31INT SelectPin Header 1×3
J51Conn_02x08Pin Header 2×8
Q112N4401NPN BJT TO-92
R1, R224.7kResistor
R31470ResistorC17710
R4175ResistorC17820
R511kResistor
U1, U4274HC157Quad 2-to-1 Mux SOIC-16C6823
U2, U5274HC166Shift Register SOIC-16C473363
U31ATmega1284-PMCU DIP-40
U6174HC138Decoder SOIC-16C5602
VR1, VR2210kPotentiometer
Y1114.31818 MHzCrystal774-MP107-E

Purchase

I have a few PCBs available on Tindie for those interested in building their own AC6502 system without ordering from a fab directly.

I sell on Tindie

License

Hardware designs are released under the CERN Open Hardware Licence Version 2 – Permissive.
Firmware is released under the MIT License — KEH Controller, PS2 Keyboard Controller, STP Controller.

About

6502-COB 8-Bit Retro Computer Project

Resources

Stars

47 stars

Watchers

2 watching

Forks

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

6502-COB

6502-COB.png

An AC6502 retro-style 8-bit computer based on the 65C02 microprocessor.

📖 Guide:AC6502 Documentation — the user's and programmer's guide for the whole family. See COB's page in the family appendix.


Table of Contents


Overview

The AC6502 ecosystem is a family of open-source, 65C02-based computers sharing a common architecture, memory map, and BIOS. Each computer in the family is purpose-built for a different use case but runs the same software and firmware.

The COB (Computer on a Backplane) is a full-featured modular desktop computer. It features a real 65C02 CPU, a backplane architecture with expandable card slots, up to 544KB RAM, composite or VGA video output, CompactFlash or SD storage, a real-time clock, and support for PS/2 keyboards, matrix keyboards, and Atari 2600-compatible joysticks.

Architecture

All AC6502 computers share:

  • CPU: 65C02 (or accurate emulation)
  • Memory: 32KB RAM + 32KB ROM, with optional banked RAM expansion
  • Memory Map: Standardized across the ecosystem — zero page, stack, I/O space ($8000–$9FFF), system ROM, and interrupt vectors at $FFFA–$FFFF
  • Bus: 16-bit address bus, 8-bit bidirectional data bus, standard 65C02 control signals (RW, PHI2, RESET, IRQ, NMI, RDY, SYNC)
  • BIOS: A common BIOS provides the kernel, monitor, and BASIC interpreter across all systems

Systems

ProjectDescription
6502-ACEAll-in-one Computer Experience — A single board computer
6502-COBComputer On a Backplane — Modular desktop computer with expandable card slots (YOU ARE HERE)
6502-DEVDevelopment Environment Vehicle — Emulation-based dev system
6502-KIMKeypad Input Monitor - KIM-1 inspired minimal computer
6502-VCSVideo Computer System — Cartridge-based retro gaming console

Software

ProjectDescription
6502-BIOSThe shared BIOS (kernel, monitor, BASIC) for all AC6502 computers
6502-EMULATOREmulator for the whole family — desktop app, browser build, and a command line for scripted runs
6502-PRGTemplate project for writing assembly language programs
6502-CRTTemplate project for writing assembly language cartridges
6502-ASMAssembly language example programs and demos
6502-BASBASIC program listings
6502-WOZMONWozmon as a standalone ROM
6502-NOPAn all-NOP ROM, for probing a board during bring-up
6502-DOCSThe documentation site — the guide, the printable reference cards, branding and label artwork
cffsBuilds CompactFlash disk images for the BIOS filesystem
bastokTokenizes BASIC listings into .prg images, and back
bin2wozConverts a binary into a Wozmon serial upload

Hardware

This repository contains KiCad 7.0+ PCB designs for the backplanes, cards, and helpers that make up the COB system.

Backplanes

Hardware/Backplane/ — Passive backplane providing 5 card slots with full bus interconnect across all slots.

Hardware/Backplane Pro/ — Enhanced backplane with integrated clock generation, reset circuitry, and power distribution plus 5 card slots. Rev 1.1 moves to entirely through-hole components and adds an onboard power switch and DC barrel jack input.

Hardware/Backplane Helper/ — Adds additional card slots to expand the total backplane configuration up to 12 slots.

Cards

Hardware/CPU Card/ — Hosts the 65C02 CPU in a card form factor for backplane-based COB systems.

Hardware/CPU Card Pro/ — Hosts a 65816 16-bit CPU (backward-compatible with 65C02). (Untested)

Hardware/Memory Card/ — Provides 32KB SRAM and 32KB EEPROM with address decoding logic for COB systems using the CPU Card.

Hardware/RAM Card/ — 512KB banked RAM expansion organized as two 256KB banks with 256 × 1KB windows each.

Hardware/RTC Card/ — Real-time clock via Dallas DS1511Y with battery backup and 256 bytes of battery-backed SRAM.

Hardware/GPIO Card/ — General-purpose I/O via 65C22 VIA supporting keyboards, joysticks, timers, and custom devices.

Hardware/Serial Card/ — RS-232 serial communication via 65C51 ACIA and MAX232 level shifter.

Hardware/Serial Card Pro/ — Enhanced serial card with full modem control signals (DTR, DCD, DSR).

Hardware/VGA Card/ — VGA 640×480 video output via Raspberry Pi Pico running Pico9918 with TMS9918A-compatible graphics modes.

Hardware/VGA Card Pro/ — Fully programmable VGA output using Pi Pico with custom firmware. (Untested)

Hardware/Video Card/ — Composite video output via TMS9918A Video Display Processor with 16KB video RAM.

Hardware/Video Card Pro/ — Enhanced composite video card. (Untested)

Hardware/Sound Card/ — 3-voice SID audio output via ARMSID module with RCA line-level output.

Hardware/Storage Card/ — CompactFlash storage interface supporting up to 128GB via IDE-compatible protocol.

Hardware/Storage Card Pro/ — SD card (up to 32GB) and 16MB onboard SPI flash storage interface. (Untested, experimental — the stock BIOS has no driver for it; see STP Controller)

Hardware/LCD Card/ — 16×2 character LCD display via 65C22 VIA in 4-bit or 8-bit mode.

Hardware/Blinkenlights Card/ — Visual bus monitoring with LEDs showing address bus (16), data bus (8), and control signals (8) in real time.

Hardware/Prototype Card/ — Blank prototyping area with integrated breadboard and full bus access headers.

Helpers

Hardware/Keyboard Encoder Helper/ — ATmega1284p-based dual keyboard encoder supporting PS/2 keyboard and 8×8 matrix keyboard simultaneously via 65C22 VIA.

Hardware/PS2 Helper/ — ATmega328p-based PS/2 keyboard bridge that drives an MT8808 analog crosspoint switch to emulate a matrix keyboard. Its output is a raw 8×8 matrix and feeds the matrix inputs of a Keyboard Encoder Helper, which is what talks to the 65C22 VIA — not the VIA directly.

Hardware/Keyboard Helper/ — 64-key matrix keyboard with Atari 2600-compatible joystick support.

Hardware/GPIO Helper/ — 8 buttons and 8 LEDs for testing and debugging GPIO Card connections.

Hardware/GPIO Breadboard Helper/ — Breadboard interface adapter for the GPIO Card.

Hardware/Joystick Helper/ — Atari 2600-style dual joystick connector and interface board.

Hardware/Clock Helper/ — Manual clock control providing single-step, free-run, and halt modes for debugging real CPU systems.

Hardware/DB25 Helper/ — GPIO to DB25 connector adapter for external device interfacing.

Hardware/Breadboard Helper/ — Exposes the full AC6502 bus to a breadboard for prototyping and experimentation.

Hardware/Mega Helper/ — Arduino Mega 2560 interface adapter for the AC6502 bus.

Hardware/LCD Board/ — 320×240 TFT LCD display (ILI9341) interfaced via 65C22 VIA. (Untested)

Hardware/VERA Helper/ — VERA FPGA video module adapter for the AC6502 bus.

Firmware

This repository contains PlatformIO-based firmware for the COB system's microcontroller helpers.

KEH Controller

Firmware/KEH Controller/

Firmware for the ATmega1284p on the Keyboard Encoder Helper. Provides:

  • Simultaneous PS/2 keyboard and 8×8 matrix keyboard scanning
  • ASCII conversion with modifier key support (Shift, Ctrl)
  • Buffered, debounced input handling
  • Parallel I/O to the AC6502 bus via 65C22 VIA

See Firmware/KEH Controller/README.md for setup and usage instructions.

PS2 Keyboard Controller

Firmware/PS2 Keyboard Controller/

Firmware for the ATmega328p on the PS2 Helper. Provides:

  • Interrupt-driven PS/2 keyboard scan code reading
  • MT8808 analog crosspoint switch matrix control
  • Make/break detection and extended scan code support
  • Function key emulation via FN key combinations

The MT8808 closes row/column contacts in place of physical key switches, so this card connects to the matrix inputs of a Keyboard Encoder Helper, not to a 65C22 VIA. The encoder does the scanning and ASCII conversion; wired straight to a VIA the card produces nothing, as the BIOS has no matrix-scanning code.

See Firmware/PS2 Keyboard Controller/README.md for setup and usage instructions.

STP Controller

Firmware/STP Controller/

Firmware for the ATmega328p on the Storage Card Pro. Provides:

  • Memory-mapped SPI controller for 6502 bus access
  • Support for SD card, 16MB SPI flash, and external SPI devices
  • Dual-speed SPI (4 MHz normal operation, 400 kHz initialization)
  • PHI2-synchronized interface for reliable 6502 communication

⚠️Experimental. The Storage Card Pro is not part of the default I/O set the BIOS probes for, and no COB machine is built around it today. The BIOS storage slot expects eight True IDE CompactFlash registers at $8C00–$8C07; this card presents two SPI registers instead, so a stock BIOS reports NO DEVICE for every storage path. Using it needs a modified BIOS or software that drives the two registers directly.

See Firmware/STP Controller/README.md for setup and usage instructions.

CAD

CAD/

3D-printable enclosure parts and laser-cut top panels for the COB system.

Production

Production/

JLCPCB-ready Gerber files and BOM/CPL for PCB fabrication and assembly.

Schematics

Schematics/

PDF schematics for each board.

Libraries

Libraries/

Shared KiCad symbol and footprint libraries used across all AC6502 hardware projects.

Bill of Materials

Backplane

ReferenceQtyValueDescriptionDigiKeyMouser
J1–J556502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J6, J726502 BusBus Connector 2×20732-5401-ND

Backplane Helper

ReferenceQtyValueDescriptionDigiKeyMouser
J1, J226502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J316502 BusBus Connector 2×20732-5401-ND

Backplane Pro

Rev 1.1

ReferenceQtyValueDescriptionMouser
C1, C3210uFPolarized capacitor
C21100nFUnpolarized capacitor
D11LEDPower LED 3mm
J115V DCDC Barrel Jack640-DCJ200-10-A-K1-K
J2–J4, J7, J856502 Card ConnectorCard Edge 2×20571-5-5530843-4
J51CLOCK ENBL SWPin Header 1×2
J61RESET SWPin Header 1×2
J916502 BusBus Connector 2×20
JP11Solder JumperSolder Jumper 2-pole
Q112N3904NPN Transistor TO-92
R11330Resistor
R211MResistor
R3147kResistor
R4110kResistor
R511kResistor
SW11POWERSPDT Power Switch612-400MSP1R6BLKM6QE
SW21RESETTact Push Button 5mm
U11LM555Timer SOIC-8
X11OCXO-14Crystal Oscillator DIP-14

Rev 1.0

ReferenceQtyValueDescriptionLCSCDigiKeyMouser
C1, C3–C1413100nFUnpolarized capacitorC49678
C2110uFPolarized capacitorC7171
D111N5819Schottky Diode SOD-323FC191023
D21LEDLED 0805C2297
J11PWR_SWJST XH 1×2455-2247-ND
J21USB-CUSB 2.0 Type-C ReceptacleC2988369
J31RESET_SWJST XH 1×2455-2247-ND
J41CLOCK_ENBL_SWJST XH 1×2455-2247-ND
J5–J956502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J1016502 BusBus Connector 2×20
Q11SS8050NPN Transistor SOT-23C2150
R111MResistorC17514
R2147kResistorC17713
R311kResistorC17513
R4110kResistorC17414
R5, R625.1kResistorC27834
R71330ResistorC17630
SW11ResetPush ButtonC318884
U11LM555xMTimer SOIC-8C7593
X11OCXO-14Crystal Oscillator DIP-14

Blinkenlights Card

ReferenceQtyValueDescriptionLCSC
C1–C44100nFUnpolarized capacitorC49678
D1–D2525LEDLED 0805C2297
D26, D272LEDLED 0805C2295
D28–D303LEDLED 0805C2296
D31, D322LEDLED 0805C2293
R1–R3232330ResistorC17630
U1, U2, U4374HC5738-bit Latch SOIC-20C5608
U3174HC04Hex Inverter SOIC-14C5590

Breadboard Helper

ReferenceQtyValueDescriptionDigiKey
J116502 BusBus Connector 2×20732-5401-ND
J2, J32Pin HeaderPin Header 1×20

Clock Helper

ReferenceQtyValueDescription
C11100nFCapacitor
D1, D22LEDLED 3mm
J11IOPin Header 1×5
R1–R551kResistor
R6–R83330Resistor
SW1, SW22XKB5858-ZDPDT Toggle Switch
SW31XKB5858-WDPDT Toggle Switch
U1174HC74Dual D Flip-flop DIP-14

CPU Card

ReferenceQtyValueDescriptionLCSC
C11100nFUnpolarized capacitorC49678
J21Pin HeaderPin Header 1×2
J31EXPPin Header 2×5
R1–R6610kResistorC2930231
U1165C02CPU DIP-40

Revision History

Rev 1.1

  • Pull-up resistors changed from 1kΩ to 10kΩ.

Rev 1.0

  • Initial release.

CPU Card Pro

ReferenceQtyValueDescriptionLCSC
C1–C44100nFUnpolarized capacitorC49678
J21BANK ADDRPin Header 2×5
J31EXPPin Header 2×4
R1–R661kResistorC17513
U1165C816CPU DIP-40
U2174HC00Quad NAND SOIC-14C5586
U3174HC245Octal Bus Transceiver TSSOP-20C5626
U4174HC5738-bit Latch SOIC-20C5608

DB25 Helper

ReferenceQtyValueDescriptionDigiKey
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
J31KEYBOARDDB-25 Connector (Male)609-1505-ND

GPIO Breadboard Helper

ReferenceQtyValueDescription
J11PORT AGPIO Connector 2×6
J21PORT APin Header 1×12
J31PORT BPin Header 1×12
J41PORT BGPIO Connector 2×6

GPIO Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized capacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21IO SELECTPin Header 2×8
J31PORT AGPIO Connector 2×6
J41PORT BGPIO Connector 2×6
U1174HC138Decoder SOIC-16C5602
U2165C22VIA DIP-40

GPIO Helper

ReferenceQtyValueDescriptionDigiKey
D1–D88LEDLED 3mm
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
R1–R881kResistor
R9–R168330Resistor
SW1–SW88Push ButtonPush Button 6mm2223-TS02-66-50-BK-160-LCR-D-ND

Joystick Helper

ReferenceQtyValueDescriptionDigiKey
J11PORTGPIO Connector 2×6
J21DB-9 MaleDB-9 Connector (Male)609-1481-ND
R1–R881kResistor

Keyboard Encoder Helper

ReferenceQtyValueDescriptionDigiKey
C1, C42100nFCapacitor
C2, C3222pFCapacitor
J11PORT BGPIO Connector 2×6
J21PORT AGPIO Connector 2×6
J31PS/2 KEYBOARD6-pin Mini-DIN
J41KEYBOARDDB-25 Connector (Male)609-1505-ND
R111kResistor
U11ATmega1284-PMCU DIP-40
Y1116 MHzCrystal HC49-U3155-16M20P2/49US-ND

Keyboard Helper

ReferenceQtyValueDescriptionDigiKey
J1, J22JOYSTICKDB-9 Connector (Male)609-1481-ND
J3, J42JOYSTICKGPIO Connector 2×6
J5, J62PORTGPIO Connector 2×6
J71KEYBOARDDB-25 Connector (Male)609-1505-ND
R1–R16161kResistor
SW1–SW6767Cherry MXKey Switch

LCD Board

ReferenceQtyValueDescription
C1–C44100nFCapacitor
D1, D22Schottky DiodeSchottky Diode DO-35
J116502 BusBus Connector 2×20
J21IO SELECTPin Header 2×8
J31HVSYNCPin Header 1×1
R1110kResistor
U1165C22VIA DIP-40
U21Adafruit 2.8" TFTTFT LCD Module
U3174HC138Decoder DIP-16

LCD Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized capacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21GPIOPin Header 1×7
J31IO SELECTPin Header 2×8
R11RResistor
U1165C22VIA DIP-40
U21LCD-16X216×2 Character LCD
U3174HC138Decoder SOIC-16C5602
VR1110kPotentiometer

Mega Helper

ReferenceQtyValueDescription
A11Arduino Mega 2560Arduino Mega 2560 R3 Shield
J116502 BusBus Connector 2×20

Memory Card

ReferenceQtyValueDescriptionLCSC
C1–C55100nFUnpolarized capacitorC49678
J21Pin HeaderPin Header 2×2
J31Pin HeaderPin Header 1×2
R1, R221kResistorC17513
U1, U2, U5374HC00Quad NAND SOIC-14C5586
U31AS6C62256SRAM DIP-28
U41AT28C256EEPROM DIP-28

Prototype Card

ReferenceQtyValueDescriptionLCSC
C1–C33100nFUnpolarized capacitorC49678
J21Bus HeaderPin Socket 2×20
J31EXPPin Header 2×4
U1174HC138Decoder SOIC-16C5602

PS2 Helper

ReferenceQtyValueDescription
C1–C33100nFDisc Capacitor
C4, C5222pFDisc Capacitor
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
J31PS/2Mini-DIN 6-pin
J41JOYSTICKGPIO Connector 2×6
R1–R991kResistor
U11MT8808Analog Matrix Switch DIP-28
U21ATmega328MCU DIP-28
Y1116 MHzCrystal

RAM Card

ReferenceQtyValueDescriptionLCSC
C1–C77100nFUnpolarized CapacitorC49678
J21LATCH ENPin Header 1×2
J31Conn_02x08Pin Header 2×8
J41BANK ADDRPin Header 2×5
R1, R2210kResistorC17414
U11AS6C4008SRAM DIP-32
U2174HC573Octal Latch SOIC-20C5608
U3, U6274HC00Quad NAND SOIC-14C5586
U4174HC21Dual 4-input AND SOIC-14C75398
U5174HC308-input NAND SOIC-14C19818870
U7174HC138Decoder SOIC-16C5602

RTC Card

ReferenceQtyValueDescriptionLCSCDigiKey
BT11BAT-HLD-001-THMCoin Cell Battery Holder
C1–C33100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21AUXPin Header 1×6
J31INT SelectPin Header 1×3
J41Conn_02x08Pin Header 2×8
R111kResistorC17513
U11DS1511YRTC DIP-28DS1511Y+-ND
U2, U3274HC138Decoder SOIC-16C5602

Serial Card

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C6, C83100nFUnpolarized CapacitorC49678
C2–C541uFUnpolarized CapacitorC28323
C7122pFUnpolarized CapacitorC1804
D11Schottky DiodeSchottky Diode DO-35
J21DB9 FEMALE (DCE)DB-9 Connector (Female)609-1487-ND
J31Conn_02x08Pin Header 2×8
J41CTS ENPin Header 1×3
R111MResistorC103906
U11MAX232RS-232 Driver/ReceiverC59824
U2174HC138Decoder SOIC-16C5602
U316551ACIA DIP-28
Y111.8432 MHzCrystal

Serial Card Pro

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C2, C11, C134100nFUnpolarized CapacitorC49678
C3–C1081uFUnpolarized CapacitorC28323
C12122pFUnpolarized CapacitorC1804
D11Schottky DiodeSchottky Diode DO-35
J21DB9 MALE (DTE)DB-9 Connector (Male)609-1481-ND
J31Conn_02x08Pin Header 2×8
J41DCD SelectPin Header 1×3
R111MResistorC103906
U1, U22MAX232RS-232 Driver/ReceiverC59824
U3174HC138Decoder SOIC-16C5602
U416551ACIA DIP-28
Y111.8432 MHzCrystal

Sound Card

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C222.2nFUnpolarized CapacitorC28260
C3, C52100nFUnpolarized CapacitorC49678
C411uFUnpolarized CapacitorC28323
J21VDDJST XH 1×2
J31AUDIORCA ConnectorPJRAN1X1U02X
J51Conn_02x08Pin Header 2×8
R111kResistorC17513
U116581SID Chip DIP-28
U2174HC138Decoder SOIC-16C5602

Storage Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized CapacitorC49678
D11LEDActivity LED 0805C2297
J21Conn_02x08Pin Header 2×8
J31Compact FlashCompactFlash ConnectorC444350
J41ACT LEDJST XH 1×2
R1–R441kResistorC17513
R5, R62330ResistorC17630
U1174HC00Quad NAND SOIC-14C5586
U2174HC138Decoder SOIC-16C5602

Storage Card Pro

ReferenceQtyValueDescriptionLCSCDigiKey
C1–C4, C7, C86100nFUnpolarized CapacitorC49678
C5, C6222pFDisc CapacitorC107114
C9, C1021uFUnpolarized CapacitorC28323
D11LEDActivity LED 0805C2297
J11ACT LEDJST XH 1×2
J31SPIPin Header 1×6
J41SD CARDSD Card ConnectorC569097
J51Conn_02x08Pin Header 2×8
R1, R22330ResistorC17630
R3, R421kResistorC17513
U11TXS0108EPWLevel Shifter TSSOP-20C17206
U21ATmega328MCU DIP-28
U31W25Q128JVSFlash Memory SOIC-8C97521
U4174HC138Decoder SOIC-16C5602
U51LP2985-3.3LDO Regulator 3.3V SOT-23-5C95414
Y1116 MHzCrystal3155-16M20P2/49US-ND

VERA Helper

ReferenceQtyValueDescriptionDigiKey
C1, C22100nFDisc Capacitor
D11Schottky DiodeSchottky Diode DO-35
J116502 BusBus Connector 2×20
J21VERA ModulePin Header 2×12
J31Audio LRCA ConnectorPJRAN1X1U02X
J41Audio RRCA ConnectorPJRAN1X1U03X
J51INT SelectPin Header 1×3
J61Conn_02x08Pin Header 2×8
U1, U2274HC138Decoder DIP-16

VGA Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21INT SelectPin Header 1×3
J31Conn_02x08Pin Header 2×8
U11Pico9918AVDP Module DIP-40
U2, U3274HC138Decoder SOIC-16C5602

VGA Card Pro

ReferenceQtyValueDescriptionLCSC
C1–C66100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21VGADB-15 VGA Connector (Female)
J31INT SelectPin Header 1×3
J41Conn_02x08Pin Header 2×8
Q11BSS138N-Channel MOSFET SOT-23C78284
R1, R2, R4, R741kResistorC17513
R3, R622.2kResistorC17520
R5, R82470ResistorC17710
R91820ResistorC17837
R101390ResistorC17655
R11, R12222ResistorC17561
U11SN74LVC4245APWROctal Bus Transceiver TSSOP-24C7859
U2174LVC245Octal Bus Transceiver TSSOP-20C6082
U31Raspberry Pi PicoMCU Module
U4174HC138Decoder SOIC-16C5602
U5174LVC138Decoder SOIC-16C6061

Video Card

ReferenceQtyValueDescriptionLCSCMouserDigiKey
C1, C2232pFDisc CapacitorC107114
C3–C108100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
FB11BLM41PG600SN1LFerrite Bead 1806C85844
J11INT SelectPin Header 1×3
J31Conn_02x08Pin Header 2×8
J41VIDEORCA ConnectorPJRAN1X1U04X
Q112N4401NPN BJT TO-92
R11470ResistorC17710
R2175ResistorC17820
U11TMS9918AVDP DIP-40
U2, U5, U6374HCT5748-bit Register SOIC-20C6001
U3, U4274HC138Decoder SOIC-16C5602
U71AS6C62256SRAM DIP-28
U8174HCT04Hex Inverter SO-14C672096
Y1110.738635 MHzCrystal774-MP107-E

Video Card Pro

ReferenceQtyValueDescriptionLCSCMouserDigiKey
C1, C2220pFDisc CapacitorC105173
C3–C108100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
FB11BLM41PG600SN1LFerrite Bead 1806C85844
J11VIDEORCA ConnectorPJRAN1X1U04X
J21SERIALPin Header 1×4
J31INT SelectPin Header 1×3
J51Conn_02x08Pin Header 2×8
Q112N4401NPN BJT TO-92
R1, R224.7kResistor
R31470ResistorC17710
R4175ResistorC17820
R511kResistor
U1, U4274HC157Quad 2-to-1 Mux SOIC-16C6823
U2, U5274HC166Shift Register SOIC-16C473363
U31ATmega1284-PMCU DIP-40
U6174HC138Decoder SOIC-16C5602
VR1, VR2210kPotentiometer
Y1114.31818 MHzCrystal774-MP107-E

Purchase

I have a few PCBs available on Tindie for those interested in building their own AC6502 system without ordering from a fab directly.

I sell on Tindie

License

Hardware designs are released under the CERN Open Hardware Licence Version 2 – Permissive.
Firmware is released under the MIT License — KEH Controller, PS2 Keyboard Controller, STP Controller.

About

6502-COB 8-Bit Retro Computer Project

Resources

Stars

47 stars

Watchers

2 watching

Forks

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

6502-COB

6502-COB.png

An AC6502 retro-style 8-bit computer based on the 65C02 microprocessor.

📖 Guide:AC6502 Documentation — the user's and programmer's guide for the whole family. See COB's page in the family appendix.


Table of Contents


Overview

The AC6502 ecosystem is a family of open-source, 65C02-based computers sharing a common architecture, memory map, and BIOS. Each computer in the family is purpose-built for a different use case but runs the same software and firmware.

The COB (Computer on a Backplane) is a full-featured modular desktop computer. It features a real 65C02 CPU, a backplane architecture with expandable card slots, up to 544KB RAM, composite or VGA video output, CompactFlash or SD storage, a real-time clock, and support for PS/2 keyboards, matrix keyboards, and Atari 2600-compatible joysticks.

Architecture

All AC6502 computers share:

  • CPU: 65C02 (or accurate emulation)
  • Memory: 32KB RAM + 32KB ROM, with optional banked RAM expansion
  • Memory Map: Standardized across the ecosystem — zero page, stack, I/O space ($8000–$9FFF), system ROM, and interrupt vectors at $FFFA–$FFFF
  • Bus: 16-bit address bus, 8-bit bidirectional data bus, standard 65C02 control signals (RW, PHI2, RESET, IRQ, NMI, RDY, SYNC)
  • BIOS: A common BIOS provides the kernel, monitor, and BASIC interpreter across all systems

Systems

ProjectDescription
6502-ACEAll-in-one Computer Experience — A single board computer
6502-COBComputer On a Backplane — Modular desktop computer with expandable card slots (YOU ARE HERE)
6502-DEVDevelopment Environment Vehicle — Emulation-based dev system
6502-KIMKeypad Input Monitor - KIM-1 inspired minimal computer
6502-VCSVideo Computer System — Cartridge-based retro gaming console

Software

ProjectDescription
6502-BIOSThe shared BIOS (kernel, monitor, BASIC) for all AC6502 computers
6502-EMULATOREmulator for the whole family — desktop app, browser build, and a command line for scripted runs
6502-PRGTemplate project for writing assembly language programs
6502-CRTTemplate project for writing assembly language cartridges
6502-ASMAssembly language example programs and demos
6502-BASBASIC program listings
6502-WOZMONWozmon as a standalone ROM
6502-NOPAn all-NOP ROM, for probing a board during bring-up
6502-DOCSThe documentation site — the guide, the printable reference cards, branding and label artwork
cffsBuilds CompactFlash disk images for the BIOS filesystem
bastokTokenizes BASIC listings into .prg images, and back
bin2wozConverts a binary into a Wozmon serial upload

Hardware

This repository contains KiCad 7.0+ PCB designs for the backplanes, cards, and helpers that make up the COB system.

Backplanes

Hardware/Backplane/ — Passive backplane providing 5 card slots with full bus interconnect across all slots.

Hardware/Backplane Pro/ — Enhanced backplane with integrated clock generation, reset circuitry, and power distribution plus 5 card slots. Rev 1.1 moves to entirely through-hole components and adds an onboard power switch and DC barrel jack input.

Hardware/Backplane Helper/ — Adds additional card slots to expand the total backplane configuration up to 12 slots.

Cards

Hardware/CPU Card/ — Hosts the 65C02 CPU in a card form factor for backplane-based COB systems.

Hardware/CPU Card Pro/ — Hosts a 65816 16-bit CPU (backward-compatible with 65C02). (Untested)

Hardware/Memory Card/ — Provides 32KB SRAM and 32KB EEPROM with address decoding logic for COB systems using the CPU Card.

Hardware/RAM Card/ — 512KB banked RAM expansion organized as two 256KB banks with 256 × 1KB windows each.

Hardware/RTC Card/ — Real-time clock via Dallas DS1511Y with battery backup and 256 bytes of battery-backed SRAM.

Hardware/GPIO Card/ — General-purpose I/O via 65C22 VIA supporting keyboards, joysticks, timers, and custom devices.

Hardware/Serial Card/ — RS-232 serial communication via 65C51 ACIA and MAX232 level shifter.

Hardware/Serial Card Pro/ — Enhanced serial card with full modem control signals (DTR, DCD, DSR).

Hardware/VGA Card/ — VGA 640×480 video output via Raspberry Pi Pico running Pico9918 with TMS9918A-compatible graphics modes.

Hardware/VGA Card Pro/ — Fully programmable VGA output using Pi Pico with custom firmware. (Untested)

Hardware/Video Card/ — Composite video output via TMS9918A Video Display Processor with 16KB video RAM.

Hardware/Video Card Pro/ — Enhanced composite video card. (Untested)

Hardware/Sound Card/ — 3-voice SID audio output via ARMSID module with RCA line-level output.

Hardware/Storage Card/ — CompactFlash storage interface supporting up to 128GB via IDE-compatible protocol.

Hardware/Storage Card Pro/ — SD card (up to 32GB) and 16MB onboard SPI flash storage interface. (Untested, experimental — the stock BIOS has no driver for it; see STP Controller)

Hardware/LCD Card/ — 16×2 character LCD display via 65C22 VIA in 4-bit or 8-bit mode.

Hardware/Blinkenlights Card/ — Visual bus monitoring with LEDs showing address bus (16), data bus (8), and control signals (8) in real time.

Hardware/Prototype Card/ — Blank prototyping area with integrated breadboard and full bus access headers.

Helpers

Hardware/Keyboard Encoder Helper/ — ATmega1284p-based dual keyboard encoder supporting PS/2 keyboard and 8×8 matrix keyboard simultaneously via 65C22 VIA.

Hardware/PS2 Helper/ — ATmega328p-based PS/2 keyboard bridge that drives an MT8808 analog crosspoint switch to emulate a matrix keyboard. Its output is a raw 8×8 matrix and feeds the matrix inputs of a Keyboard Encoder Helper, which is what talks to the 65C22 VIA — not the VIA directly.

Hardware/Keyboard Helper/ — 64-key matrix keyboard with Atari 2600-compatible joystick support.

Hardware/GPIO Helper/ — 8 buttons and 8 LEDs for testing and debugging GPIO Card connections.

Hardware/GPIO Breadboard Helper/ — Breadboard interface adapter for the GPIO Card.

Hardware/Joystick Helper/ — Atari 2600-style dual joystick connector and interface board.

Hardware/Clock Helper/ — Manual clock control providing single-step, free-run, and halt modes for debugging real CPU systems.

Hardware/DB25 Helper/ — GPIO to DB25 connector adapter for external device interfacing.

Hardware/Breadboard Helper/ — Exposes the full AC6502 bus to a breadboard for prototyping and experimentation.

Hardware/Mega Helper/ — Arduino Mega 2560 interface adapter for the AC6502 bus.

Hardware/LCD Board/ — 320×240 TFT LCD display (ILI9341) interfaced via 65C22 VIA. (Untested)

Hardware/VERA Helper/ — VERA FPGA video module adapter for the AC6502 bus.

Firmware

This repository contains PlatformIO-based firmware for the COB system's microcontroller helpers.

KEH Controller

Firmware/KEH Controller/

Firmware for the ATmega1284p on the Keyboard Encoder Helper. Provides:

  • Simultaneous PS/2 keyboard and 8×8 matrix keyboard scanning
  • ASCII conversion with modifier key support (Shift, Ctrl)
  • Buffered, debounced input handling
  • Parallel I/O to the AC6502 bus via 65C22 VIA

See Firmware/KEH Controller/README.md for setup and usage instructions.

PS2 Keyboard Controller

Firmware/PS2 Keyboard Controller/

Firmware for the ATmega328p on the PS2 Helper. Provides:

  • Interrupt-driven PS/2 keyboard scan code reading
  • MT8808 analog crosspoint switch matrix control
  • Make/break detection and extended scan code support
  • Function key emulation via FN key combinations

The MT8808 closes row/column contacts in place of physical key switches, so this card connects to the matrix inputs of a Keyboard Encoder Helper, not to a 65C22 VIA. The encoder does the scanning and ASCII conversion; wired straight to a VIA the card produces nothing, as the BIOS has no matrix-scanning code.

See Firmware/PS2 Keyboard Controller/README.md for setup and usage instructions.

STP Controller

Firmware/STP Controller/

Firmware for the ATmega328p on the Storage Card Pro. Provides:

  • Memory-mapped SPI controller for 6502 bus access
  • Support for SD card, 16MB SPI flash, and external SPI devices
  • Dual-speed SPI (4 MHz normal operation, 400 kHz initialization)
  • PHI2-synchronized interface for reliable 6502 communication

⚠️Experimental. The Storage Card Pro is not part of the default I/O set the BIOS probes for, and no COB machine is built around it today. The BIOS storage slot expects eight True IDE CompactFlash registers at $8C00–$8C07; this card presents two SPI registers instead, so a stock BIOS reports NO DEVICE for every storage path. Using it needs a modified BIOS or software that drives the two registers directly.

See Firmware/STP Controller/README.md for setup and usage instructions.

CAD

CAD/

3D-printable enclosure parts and laser-cut top panels for the COB system.

Production

Production/

JLCPCB-ready Gerber files and BOM/CPL for PCB fabrication and assembly.

Schematics

Schematics/

PDF schematics for each board.

Libraries

Libraries/

Shared KiCad symbol and footprint libraries used across all AC6502 hardware projects.

Bill of Materials

Backplane

ReferenceQtyValueDescriptionDigiKeyMouser
J1–J556502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J6, J726502 BusBus Connector 2×20732-5401-ND

Backplane Helper

ReferenceQtyValueDescriptionDigiKeyMouser
J1, J226502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J316502 BusBus Connector 2×20732-5401-ND

Backplane Pro

Rev 1.1

ReferenceQtyValueDescriptionMouser
C1, C3210uFPolarized capacitor
C21100nFUnpolarized capacitor
D11LEDPower LED 3mm
J115V DCDC Barrel Jack640-DCJ200-10-A-K1-K
J2–J4, J7, J856502 Card ConnectorCard Edge 2×20571-5-5530843-4
J51CLOCK ENBL SWPin Header 1×2
J61RESET SWPin Header 1×2
J916502 BusBus Connector 2×20
JP11Solder JumperSolder Jumper 2-pole
Q112N3904NPN Transistor TO-92
R11330Resistor
R211MResistor
R3147kResistor
R4110kResistor
R511kResistor
SW11POWERSPDT Power Switch612-400MSP1R6BLKM6QE
SW21RESETTact Push Button 5mm
U11LM555Timer SOIC-8
X11OCXO-14Crystal Oscillator DIP-14

Rev 1.0

ReferenceQtyValueDescriptionLCSCDigiKeyMouser
C1, C3–C1413100nFUnpolarized capacitorC49678
C2110uFPolarized capacitorC7171
D111N5819Schottky Diode SOD-323FC191023
D21LEDLED 0805C2297
J11PWR_SWJST XH 1×2455-2247-ND
J21USB-CUSB 2.0 Type-C ReceptacleC2988369
J31RESET_SWJST XH 1×2455-2247-ND
J41CLOCK_ENBL_SWJST XH 1×2455-2247-ND
J5–J956502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J1016502 BusBus Connector 2×20
Q11SS8050NPN Transistor SOT-23C2150
R111MResistorC17514
R2147kResistorC17713
R311kResistorC17513
R4110kResistorC17414
R5, R625.1kResistorC27834
R71330ResistorC17630
SW11ResetPush ButtonC318884
U11LM555xMTimer SOIC-8C7593
X11OCXO-14Crystal Oscillator DIP-14

Blinkenlights Card

ReferenceQtyValueDescriptionLCSC
C1–C44100nFUnpolarized capacitorC49678
D1–D2525LEDLED 0805C2297
D26, D272LEDLED 0805C2295
D28–D303LEDLED 0805C2296
D31, D322LEDLED 0805C2293
R1–R3232330ResistorC17630
U1, U2, U4374HC5738-bit Latch SOIC-20C5608
U3174HC04Hex Inverter SOIC-14C5590

Breadboard Helper

ReferenceQtyValueDescriptionDigiKey
J116502 BusBus Connector 2×20732-5401-ND
J2, J32Pin HeaderPin Header 1×20

Clock Helper

ReferenceQtyValueDescription
C11100nFCapacitor
D1, D22LEDLED 3mm
J11IOPin Header 1×5
R1–R551kResistor
R6–R83330Resistor
SW1, SW22XKB5858-ZDPDT Toggle Switch
SW31XKB5858-WDPDT Toggle Switch
U1174HC74Dual D Flip-flop DIP-14

CPU Card

ReferenceQtyValueDescriptionLCSC
C11100nFUnpolarized capacitorC49678
J21Pin HeaderPin Header 1×2
J31EXPPin Header 2×5
R1–R6610kResistorC2930231
U1165C02CPU DIP-40

Revision History

Rev 1.1

  • Pull-up resistors changed from 1kΩ to 10kΩ.

Rev 1.0

  • Initial release.

CPU Card Pro

ReferenceQtyValueDescriptionLCSC
C1–C44100nFUnpolarized capacitorC49678
J21BANK ADDRPin Header 2×5
J31EXPPin Header 2×4
R1–R661kResistorC17513
U1165C816CPU DIP-40
U2174HC00Quad NAND SOIC-14C5586
U3174HC245Octal Bus Transceiver TSSOP-20C5626
U4174HC5738-bit Latch SOIC-20C5608

DB25 Helper

ReferenceQtyValueDescriptionDigiKey
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
J31KEYBOARDDB-25 Connector (Male)609-1505-ND

GPIO Breadboard Helper

ReferenceQtyValueDescription
J11PORT AGPIO Connector 2×6
J21PORT APin Header 1×12
J31PORT BPin Header 1×12
J41PORT BGPIO Connector 2×6

GPIO Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized capacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21IO SELECTPin Header 2×8
J31PORT AGPIO Connector 2×6
J41PORT BGPIO Connector 2×6
U1174HC138Decoder SOIC-16C5602
U2165C22VIA DIP-40

GPIO Helper

ReferenceQtyValueDescriptionDigiKey
D1–D88LEDLED 3mm
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
R1–R881kResistor
R9–R168330Resistor
SW1–SW88Push ButtonPush Button 6mm2223-TS02-66-50-BK-160-LCR-D-ND

Joystick Helper

ReferenceQtyValueDescriptionDigiKey
J11PORTGPIO Connector 2×6
J21DB-9 MaleDB-9 Connector (Male)609-1481-ND
R1–R881kResistor

Keyboard Encoder Helper

ReferenceQtyValueDescriptionDigiKey
C1, C42100nFCapacitor
C2, C3222pFCapacitor
J11PORT BGPIO Connector 2×6
J21PORT AGPIO Connector 2×6
J31PS/2 KEYBOARD6-pin Mini-DIN
J41KEYBOARDDB-25 Connector (Male)609-1505-ND
R111kResistor
U11ATmega1284-PMCU DIP-40
Y1116 MHzCrystal HC49-U3155-16M20P2/49US-ND

Keyboard Helper

ReferenceQtyValueDescriptionDigiKey
J1, J22JOYSTICKDB-9 Connector (Male)609-1481-ND
J3, J42JOYSTICKGPIO Connector 2×6
J5, J62PORTGPIO Connector 2×6
J71KEYBOARDDB-25 Connector (Male)609-1505-ND
R1–R16161kResistor
SW1–SW6767Cherry MXKey Switch

LCD Board

ReferenceQtyValueDescription
C1–C44100nFCapacitor
D1, D22Schottky DiodeSchottky Diode DO-35
J116502 BusBus Connector 2×20
J21IO SELECTPin Header 2×8
J31HVSYNCPin Header 1×1
R1110kResistor
U1165C22VIA DIP-40
U21Adafruit 2.8" TFTTFT LCD Module
U3174HC138Decoder DIP-16

LCD Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized capacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21GPIOPin Header 1×7
J31IO SELECTPin Header 2×8
R11RResistor
U1165C22VIA DIP-40
U21LCD-16X216×2 Character LCD
U3174HC138Decoder SOIC-16C5602
VR1110kPotentiometer

Mega Helper

ReferenceQtyValueDescription
A11Arduino Mega 2560Arduino Mega 2560 R3 Shield
J116502 BusBus Connector 2×20

Memory Card

ReferenceQtyValueDescriptionLCSC
C1–C55100nFUnpolarized capacitorC49678
J21Pin HeaderPin Header 2×2
J31Pin HeaderPin Header 1×2
R1, R221kResistorC17513
U1, U2, U5374HC00Quad NAND SOIC-14C5586
U31AS6C62256SRAM DIP-28
U41AT28C256EEPROM DIP-28

Prototype Card

ReferenceQtyValueDescriptionLCSC
C1–C33100nFUnpolarized capacitorC49678
J21Bus HeaderPin Socket 2×20
J31EXPPin Header 2×4
U1174HC138Decoder SOIC-16C5602

PS2 Helper

ReferenceQtyValueDescription
C1–C33100nFDisc Capacitor
C4, C5222pFDisc Capacitor
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
J31PS/2Mini-DIN 6-pin
J41JOYSTICKGPIO Connector 2×6
R1–R991kResistor
U11MT8808Analog Matrix Switch DIP-28
U21ATmega328MCU DIP-28
Y1116 MHzCrystal

RAM Card

ReferenceQtyValueDescriptionLCSC
C1–C77100nFUnpolarized CapacitorC49678
J21LATCH ENPin Header 1×2
J31Conn_02x08Pin Header 2×8
J41BANK ADDRPin Header 2×5
R1, R2210kResistorC17414
U11AS6C4008SRAM DIP-32
U2174HC573Octal Latch SOIC-20C5608
U3, U6274HC00Quad NAND SOIC-14C5586
U4174HC21Dual 4-input AND SOIC-14C75398
U5174HC308-input NAND SOIC-14C19818870
U7174HC138Decoder SOIC-16C5602

RTC Card

ReferenceQtyValueDescriptionLCSCDigiKey
BT11BAT-HLD-001-THMCoin Cell Battery Holder
C1–C33100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21AUXPin Header 1×6
J31INT SelectPin Header 1×3
J41Conn_02x08Pin Header 2×8
R111kResistorC17513
U11DS1511YRTC DIP-28DS1511Y+-ND
U2, U3274HC138Decoder SOIC-16C5602

Serial Card

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C6, C83100nFUnpolarized CapacitorC49678
C2–C541uFUnpolarized CapacitorC28323
C7122pFUnpolarized CapacitorC1804
D11Schottky DiodeSchottky Diode DO-35
J21DB9 FEMALE (DCE)DB-9 Connector (Female)609-1487-ND
J31Conn_02x08Pin Header 2×8
J41CTS ENPin Header 1×3
R111MResistorC103906
U11MAX232RS-232 Driver/ReceiverC59824
U2174HC138Decoder SOIC-16C5602
U316551ACIA DIP-28
Y111.8432 MHzCrystal

Serial Card Pro

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C2, C11, C134100nFUnpolarized CapacitorC49678
C3–C1081uFUnpolarized CapacitorC28323
C12122pFUnpolarized CapacitorC1804
D11Schottky DiodeSchottky Diode DO-35
J21DB9 MALE (DTE)DB-9 Connector (Male)609-1481-ND
J31Conn_02x08Pin Header 2×8
J41DCD SelectPin Header 1×3
R111MResistorC103906
U1, U22MAX232RS-232 Driver/ReceiverC59824
U3174HC138Decoder SOIC-16C5602
U416551ACIA DIP-28
Y111.8432 MHzCrystal

Sound Card

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C222.2nFUnpolarized CapacitorC28260
C3, C52100nFUnpolarized CapacitorC49678
C411uFUnpolarized CapacitorC28323
J21VDDJST XH 1×2
J31AUDIORCA ConnectorPJRAN1X1U02X
J51Conn_02x08Pin Header 2×8
R111kResistorC17513
U116581SID Chip DIP-28
U2174HC138Decoder SOIC-16C5602

Storage Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized CapacitorC49678
D11LEDActivity LED 0805C2297
J21Conn_02x08Pin Header 2×8
J31Compact FlashCompactFlash ConnectorC444350
J41ACT LEDJST XH 1×2
R1–R441kResistorC17513
R5, R62330ResistorC17630
U1174HC00Quad NAND SOIC-14C5586
U2174HC138Decoder SOIC-16C5602

Storage Card Pro

ReferenceQtyValueDescriptionLCSCDigiKey
C1–C4, C7, C86100nFUnpolarized CapacitorC49678
C5, C6222pFDisc CapacitorC107114
C9, C1021uFUnpolarized CapacitorC28323
D11LEDActivity LED 0805C2297
J11ACT LEDJST XH 1×2
J31SPIPin Header 1×6
J41SD CARDSD Card ConnectorC569097
J51Conn_02x08Pin Header 2×8
R1, R22330ResistorC17630
R3, R421kResistorC17513
U11TXS0108EPWLevel Shifter TSSOP-20C17206
U21ATmega328MCU DIP-28
U31W25Q128JVSFlash Memory SOIC-8C97521
U4174HC138Decoder SOIC-16C5602
U51LP2985-3.3LDO Regulator 3.3V SOT-23-5C95414
Y1116 MHzCrystal3155-16M20P2/49US-ND

VERA Helper

ReferenceQtyValueDescriptionDigiKey
C1, C22100nFDisc Capacitor
D11Schottky DiodeSchottky Diode DO-35
J116502 BusBus Connector 2×20
J21VERA ModulePin Header 2×12
J31Audio LRCA ConnectorPJRAN1X1U02X
J41Audio RRCA ConnectorPJRAN1X1U03X
J51INT SelectPin Header 1×3
J61Conn_02x08Pin Header 2×8
U1, U2274HC138Decoder DIP-16

VGA Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21INT SelectPin Header 1×3
J31Conn_02x08Pin Header 2×8
U11Pico9918AVDP Module DIP-40
U2, U3274HC138Decoder SOIC-16C5602

VGA Card Pro

ReferenceQtyValueDescriptionLCSC
C1–C66100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21VGADB-15 VGA Connector (Female)
J31INT SelectPin Header 1×3
J41Conn_02x08Pin Header 2×8
Q11BSS138N-Channel MOSFET SOT-23C78284
R1, R2, R4, R741kResistorC17513
R3, R622.2kResistorC17520
R5, R82470ResistorC17710
R91820ResistorC17837
R101390ResistorC17655
R11, R12222ResistorC17561
U11SN74LVC4245APWROctal Bus Transceiver TSSOP-24C7859
U2174LVC245Octal Bus Transceiver TSSOP-20C6082
U31Raspberry Pi PicoMCU Module
U4174HC138Decoder SOIC-16C5602
U5174LVC138Decoder SOIC-16C6061

Video Card

ReferenceQtyValueDescriptionLCSCMouserDigiKey
C1, C2232pFDisc CapacitorC107114
C3–C108100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
FB11BLM41PG600SN1LFerrite Bead 1806C85844
J11INT SelectPin Header 1×3
J31Conn_02x08Pin Header 2×8
J41VIDEORCA ConnectorPJRAN1X1U04X
Q112N4401NPN BJT TO-92
R11470ResistorC17710
R2175ResistorC17820
U11TMS9918AVDP DIP-40
U2, U5, U6374HCT5748-bit Register SOIC-20C6001
U3, U4274HC138Decoder SOIC-16C5602
U71AS6C62256SRAM DIP-28
U8174HCT04Hex Inverter SO-14C672096
Y1110.738635 MHzCrystal774-MP107-E

Video Card Pro

ReferenceQtyValueDescriptionLCSCMouserDigiKey
C1, C2220pFDisc CapacitorC105173
C3–C108100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
FB11BLM41PG600SN1LFerrite Bead 1806C85844
J11VIDEORCA ConnectorPJRAN1X1U04X
J21SERIALPin Header 1×4
J31INT SelectPin Header 1×3
J51Conn_02x08Pin Header 2×8
Q112N4401NPN BJT TO-92
R1, R224.7kResistor
R31470ResistorC17710
R4175ResistorC17820
R511kResistor
U1, U4274HC157Quad 2-to-1 Mux SOIC-16C6823
U2, U5274HC166Shift Register SOIC-16C473363
U31ATmega1284-PMCU DIP-40
U6174HC138Decoder SOIC-16C5602
VR1, VR2210kPotentiometer
Y1114.31818 MHzCrystal774-MP107-E

Purchase

I have a few PCBs available on Tindie for those interested in building their own AC6502 system without ordering from a fab directly.

I sell on Tindie

License

Hardware designs are released under the CERN Open Hardware Licence Version 2 – Permissive.
Firmware is released under the MIT License — KEH Controller, PS2 Keyboard Controller, STP Controller.

About

6502-COB 8-Bit Retro Computer Project

Resources

Stars

47 stars

Watchers

2 watching

Forks

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Repository files navigation

6502-COB

6502-COB.png

An AC6502 retro-style 8-bit computer based on the 65C02 microprocessor.

📖 Guide:AC6502 Documentation — the user's and programmer's guide for the whole family. See COB's page in the family appendix.


Table of Contents


Overview

The AC6502 ecosystem is a family of open-source, 65C02-based computers sharing a common architecture, memory map, and BIOS. Each computer in the family is purpose-built for a different use case but runs the same software and firmware.

The COB (Computer on a Backplane) is a full-featured modular desktop computer. It features a real 65C02 CPU, a backplane architecture with expandable card slots, up to 544KB RAM, composite or VGA video output, CompactFlash or SD storage, a real-time clock, and support for PS/2 keyboards, matrix keyboards, and Atari 2600-compatible joysticks.

Architecture

All AC6502 computers share:

  • CPU: 65C02 (or accurate emulation)
  • Memory: 32KB RAM + 32KB ROM, with optional banked RAM expansion
  • Memory Map: Standardized across the ecosystem — zero page, stack, I/O space ($8000–$9FFF), system ROM, and interrupt vectors at $FFFA–$FFFF
  • Bus: 16-bit address bus, 8-bit bidirectional data bus, standard 65C02 control signals (RW, PHI2, RESET, IRQ, NMI, RDY, SYNC)
  • BIOS: A common BIOS provides the kernel, monitor, and BASIC interpreter across all systems

Systems

ProjectDescription
6502-ACEAll-in-one Computer Experience — A single board computer
6502-COBComputer On a Backplane — Modular desktop computer with expandable card slots (YOU ARE HERE)
6502-DEVDevelopment Environment Vehicle — Emulation-based dev system
6502-KIMKeypad Input Monitor - KIM-1 inspired minimal computer
6502-VCSVideo Computer System — Cartridge-based retro gaming console

Software

ProjectDescription
6502-BIOSThe shared BIOS (kernel, monitor, BASIC) for all AC6502 computers
6502-EMULATOREmulator for the whole family — desktop app, browser build, and a command line for scripted runs
6502-PRGTemplate project for writing assembly language programs
6502-CRTTemplate project for writing assembly language cartridges
6502-ASMAssembly language example programs and demos
6502-BASBASIC program listings
6502-WOZMONWozmon as a standalone ROM
6502-NOPAn all-NOP ROM, for probing a board during bring-up
6502-DOCSThe documentation site — the guide, the printable reference cards, branding and label artwork
cffsBuilds CompactFlash disk images for the BIOS filesystem
bastokTokenizes BASIC listings into .prg images, and back
bin2wozConverts a binary into a Wozmon serial upload

Hardware

This repository contains KiCad 7.0+ PCB designs for the backplanes, cards, and helpers that make up the COB system.

Backplanes

Hardware/Backplane/ — Passive backplane providing 5 card slots with full bus interconnect across all slots.

Hardware/Backplane Pro/ — Enhanced backplane with integrated clock generation, reset circuitry, and power distribution plus 5 card slots. Rev 1.1 moves to entirely through-hole components and adds an onboard power switch and DC barrel jack input.

Hardware/Backplane Helper/ — Adds additional card slots to expand the total backplane configuration up to 12 slots.

Cards

Hardware/CPU Card/ — Hosts the 65C02 CPU in a card form factor for backplane-based COB systems.

Hardware/CPU Card Pro/ — Hosts a 65816 16-bit CPU (backward-compatible with 65C02). (Untested)

Hardware/Memory Card/ — Provides 32KB SRAM and 32KB EEPROM with address decoding logic for COB systems using the CPU Card.

Hardware/RAM Card/ — 512KB banked RAM expansion organized as two 256KB banks with 256 × 1KB windows each.

Hardware/RTC Card/ — Real-time clock via Dallas DS1511Y with battery backup and 256 bytes of battery-backed SRAM.

Hardware/GPIO Card/ — General-purpose I/O via 65C22 VIA supporting keyboards, joysticks, timers, and custom devices.

Hardware/Serial Card/ — RS-232 serial communication via 65C51 ACIA and MAX232 level shifter.

Hardware/Serial Card Pro/ — Enhanced serial card with full modem control signals (DTR, DCD, DSR).

Hardware/VGA Card/ — VGA 640×480 video output via Raspberry Pi Pico running Pico9918 with TMS9918A-compatible graphics modes.

Hardware/VGA Card Pro/ — Fully programmable VGA output using Pi Pico with custom firmware. (Untested)

Hardware/Video Card/ — Composite video output via TMS9918A Video Display Processor with 16KB video RAM.

Hardware/Video Card Pro/ — Enhanced composite video card. (Untested)

Hardware/Sound Card/ — 3-voice SID audio output via ARMSID module with RCA line-level output.

Hardware/Storage Card/ — CompactFlash storage interface supporting up to 128GB via IDE-compatible protocol.

Hardware/Storage Card Pro/ — SD card (up to 32GB) and 16MB onboard SPI flash storage interface. (Untested, experimental — the stock BIOS has no driver for it; see STP Controller)

Hardware/LCD Card/ — 16×2 character LCD display via 65C22 VIA in 4-bit or 8-bit mode.

Hardware/Blinkenlights Card/ — Visual bus monitoring with LEDs showing address bus (16), data bus (8), and control signals (8) in real time.

Hardware/Prototype Card/ — Blank prototyping area with integrated breadboard and full bus access headers.

Helpers

Hardware/Keyboard Encoder Helper/ — ATmega1284p-based dual keyboard encoder supporting PS/2 keyboard and 8×8 matrix keyboard simultaneously via 65C22 VIA.

Hardware/PS2 Helper/ — ATmega328p-based PS/2 keyboard bridge that drives an MT8808 analog crosspoint switch to emulate a matrix keyboard. Its output is a raw 8×8 matrix and feeds the matrix inputs of a Keyboard Encoder Helper, which is what talks to the 65C22 VIA — not the VIA directly.

Hardware/Keyboard Helper/ — 64-key matrix keyboard with Atari 2600-compatible joystick support.

Hardware/GPIO Helper/ — 8 buttons and 8 LEDs for testing and debugging GPIO Card connections.

Hardware/GPIO Breadboard Helper/ — Breadboard interface adapter for the GPIO Card.

Hardware/Joystick Helper/ — Atari 2600-style dual joystick connector and interface board.

Hardware/Clock Helper/ — Manual clock control providing single-step, free-run, and halt modes for debugging real CPU systems.

Hardware/DB25 Helper/ — GPIO to DB25 connector adapter for external device interfacing.

Hardware/Breadboard Helper/ — Exposes the full AC6502 bus to a breadboard for prototyping and experimentation.

Hardware/Mega Helper/ — Arduino Mega 2560 interface adapter for the AC6502 bus.

Hardware/LCD Board/ — 320×240 TFT LCD display (ILI9341) interfaced via 65C22 VIA. (Untested)

Hardware/VERA Helper/ — VERA FPGA video module adapter for the AC6502 bus.

Firmware

This repository contains PlatformIO-based firmware for the COB system's microcontroller helpers.

KEH Controller

Firmware/KEH Controller/

Firmware for the ATmega1284p on the Keyboard Encoder Helper. Provides:

  • Simultaneous PS/2 keyboard and 8×8 matrix keyboard scanning
  • ASCII conversion with modifier key support (Shift, Ctrl)
  • Buffered, debounced input handling
  • Parallel I/O to the AC6502 bus via 65C22 VIA

See Firmware/KEH Controller/README.md for setup and usage instructions.

PS2 Keyboard Controller

Firmware/PS2 Keyboard Controller/

Firmware for the ATmega328p on the PS2 Helper. Provides:

  • Interrupt-driven PS/2 keyboard scan code reading
  • MT8808 analog crosspoint switch matrix control
  • Make/break detection and extended scan code support
  • Function key emulation via FN key combinations

The MT8808 closes row/column contacts in place of physical key switches, so this card connects to the matrix inputs of a Keyboard Encoder Helper, not to a 65C22 VIA. The encoder does the scanning and ASCII conversion; wired straight to a VIA the card produces nothing, as the BIOS has no matrix-scanning code.

See Firmware/PS2 Keyboard Controller/README.md for setup and usage instructions.

STP Controller

Firmware/STP Controller/

Firmware for the ATmega328p on the Storage Card Pro. Provides:

  • Memory-mapped SPI controller for 6502 bus access
  • Support for SD card, 16MB SPI flash, and external SPI devices
  • Dual-speed SPI (4 MHz normal operation, 400 kHz initialization)
  • PHI2-synchronized interface for reliable 6502 communication

⚠️Experimental. The Storage Card Pro is not part of the default I/O set the BIOS probes for, and no COB machine is built around it today. The BIOS storage slot expects eight True IDE CompactFlash registers at $8C00–$8C07; this card presents two SPI registers instead, so a stock BIOS reports NO DEVICE for every storage path. Using it needs a modified BIOS or software that drives the two registers directly.

See Firmware/STP Controller/README.md for setup and usage instructions.

CAD

CAD/

3D-printable enclosure parts and laser-cut top panels for the COB system.

Production

Production/

JLCPCB-ready Gerber files and BOM/CPL for PCB fabrication and assembly.

Schematics

Schematics/

PDF schematics for each board.

Libraries

Libraries/

Shared KiCad symbol and footprint libraries used across all AC6502 hardware projects.

Bill of Materials

Backplane

ReferenceQtyValueDescriptionDigiKeyMouser
J1–J556502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J6, J726502 BusBus Connector 2×20732-5401-ND

Backplane Helper

ReferenceQtyValueDescriptionDigiKeyMouser
J1, J226502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J316502 BusBus Connector 2×20732-5401-ND

Backplane Pro

Rev 1.1

ReferenceQtyValueDescriptionMouser
C1, C3210uFPolarized capacitor
C21100nFUnpolarized capacitor
D11LEDPower LED 3mm
J115V DCDC Barrel Jack640-DCJ200-10-A-K1-K
J2–J4, J7, J856502 Card ConnectorCard Edge 2×20571-5-5530843-4
J51CLOCK ENBL SWPin Header 1×2
J61RESET SWPin Header 1×2
J916502 BusBus Connector 2×20
JP11Solder JumperSolder Jumper 2-pole
Q112N3904NPN Transistor TO-92
R11330Resistor
R211MResistor
R3147kResistor
R4110kResistor
R511kResistor
SW11POWERSPDT Power Switch612-400MSP1R6BLKM6QE
SW21RESETTact Push Button 5mm
U11LM555Timer SOIC-8
X11OCXO-14Crystal Oscillator DIP-14

Rev 1.0

ReferenceQtyValueDescriptionLCSCDigiKeyMouser
C1, C3–C1413100nFUnpolarized capacitorC49678
C2110uFPolarized capacitorC7171
D111N5819Schottky Diode SOD-323FC191023
D21LEDLED 0805C2297
J11PWR_SWJST XH 1×2455-2247-ND
J21USB-CUSB 2.0 Type-C ReceptacleC2988369
J31RESET_SWJST XH 1×2455-2247-ND
J41CLOCK_ENBL_SWJST XH 1×2455-2247-ND
J5–J956502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J1016502 BusBus Connector 2×20
Q11SS8050NPN Transistor SOT-23C2150
R111MResistorC17514
R2147kResistorC17713
R311kResistorC17513
R4110kResistorC17414
R5, R625.1kResistorC27834
R71330ResistorC17630
SW11ResetPush ButtonC318884
U11LM555xMTimer SOIC-8C7593
X11OCXO-14Crystal Oscillator DIP-14

Blinkenlights Card

ReferenceQtyValueDescriptionLCSC
C1–C44100nFUnpolarized capacitorC49678
D1–D2525LEDLED 0805C2297
D26, D272LEDLED 0805C2295
D28–D303LEDLED 0805C2296
D31, D322LEDLED 0805C2293
R1–R3232330ResistorC17630
U1, U2, U4374HC5738-bit Latch SOIC-20C5608
U3174HC04Hex Inverter SOIC-14C5590

Breadboard Helper

ReferenceQtyValueDescriptionDigiKey
J116502 BusBus Connector 2×20732-5401-ND
J2, J32Pin HeaderPin Header 1×20

Clock Helper

ReferenceQtyValueDescription
C11100nFCapacitor
D1, D22LEDLED 3mm
J11IOPin Header 1×5
R1–R551kResistor
R6–R83330Resistor
SW1, SW22XKB5858-ZDPDT Toggle Switch
SW31XKB5858-WDPDT Toggle Switch
U1174HC74Dual D Flip-flop DIP-14

CPU Card

ReferenceQtyValueDescriptionLCSC
C11100nFUnpolarized capacitorC49678
J21Pin HeaderPin Header 1×2
J31EXPPin Header 2×5
R1–R6610kResistorC2930231
U1165C02CPU DIP-40

Revision History

Rev 1.1

  • Pull-up resistors changed from 1kΩ to 10kΩ.

Rev 1.0

  • Initial release.

CPU Card Pro

ReferenceQtyValueDescriptionLCSC
C1–C44100nFUnpolarized capacitorC49678
J21BANK ADDRPin Header 2×5
J31EXPPin Header 2×4
R1–R661kResistorC17513
U1165C816CPU DIP-40
U2174HC00Quad NAND SOIC-14C5586
U3174HC245Octal Bus Transceiver TSSOP-20C5626
U4174HC5738-bit Latch SOIC-20C5608

DB25 Helper

ReferenceQtyValueDescriptionDigiKey
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
J31KEYBOARDDB-25 Connector (Male)609-1505-ND

GPIO Breadboard Helper

ReferenceQtyValueDescription
J11PORT AGPIO Connector 2×6
J21PORT APin Header 1×12
J31PORT BPin Header 1×12
J41PORT BGPIO Connector 2×6

GPIO Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized capacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21IO SELECTPin Header 2×8
J31PORT AGPIO Connector 2×6
J41PORT BGPIO Connector 2×6
U1174HC138Decoder SOIC-16C5602
U2165C22VIA DIP-40

GPIO Helper

ReferenceQtyValueDescriptionDigiKey
D1–D88LEDLED 3mm
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
R1–R881kResistor
R9–R168330Resistor
SW1–SW88Push ButtonPush Button 6mm2223-TS02-66-50-BK-160-LCR-D-ND

Joystick Helper

ReferenceQtyValueDescriptionDigiKey
J11PORTGPIO Connector 2×6
J21DB-9 MaleDB-9 Connector (Male)609-1481-ND
R1–R881kResistor

Keyboard Encoder Helper

ReferenceQtyValueDescriptionDigiKey
C1, C42100nFCapacitor
C2, C3222pFCapacitor
J11PORT BGPIO Connector 2×6
J21PORT AGPIO Connector 2×6
J31PS/2 KEYBOARD6-pin Mini-DIN
J41KEYBOARDDB-25 Connector (Male)609-1505-ND
R111kResistor
U11ATmega1284-PMCU DIP-40
Y1116 MHzCrystal HC49-U3155-16M20P2/49US-ND

Keyboard Helper

ReferenceQtyValueDescriptionDigiKey
J1, J22JOYSTICKDB-9 Connector (Male)609-1481-ND
J3, J42JOYSTICKGPIO Connector 2×6
J5, J62PORTGPIO Connector 2×6
J71KEYBOARDDB-25 Connector (Male)609-1505-ND
R1–R16161kResistor
SW1–SW6767Cherry MXKey Switch

LCD Board

ReferenceQtyValueDescription
C1–C44100nFCapacitor
D1, D22Schottky DiodeSchottky Diode DO-35
J116502 BusBus Connector 2×20
J21IO SELECTPin Header 2×8
J31HVSYNCPin Header 1×1
R1110kResistor
U1165C22VIA DIP-40
U21Adafruit 2.8" TFTTFT LCD Module
U3174HC138Decoder DIP-16

LCD Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized capacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21GPIOPin Header 1×7
J31IO SELECTPin Header 2×8
R11RResistor
U1165C22VIA DIP-40
U21LCD-16X216×2 Character LCD
U3174HC138Decoder SOIC-16C5602
VR1110kPotentiometer

Mega Helper

ReferenceQtyValueDescription
A11Arduino Mega 2560Arduino Mega 2560 R3 Shield
J116502 BusBus Connector 2×20

Memory Card

ReferenceQtyValueDescriptionLCSC
C1–C55100nFUnpolarized capacitorC49678
J21Pin HeaderPin Header 2×2
J31Pin HeaderPin Header 1×2
R1, R221kResistorC17513
U1, U2, U5374HC00Quad NAND SOIC-14C5586
U31AS6C62256SRAM DIP-28
U41AT28C256EEPROM DIP-28

Prototype Card

ReferenceQtyValueDescriptionLCSC
C1–C33100nFUnpolarized capacitorC49678
J21Bus HeaderPin Socket 2×20
J31EXPPin Header 2×4
U1174HC138Decoder SOIC-16C5602

PS2 Helper

ReferenceQtyValueDescription
C1–C33100nFDisc Capacitor
C4, C5222pFDisc Capacitor
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
J31PS/2Mini-DIN 6-pin
J41JOYSTICKGPIO Connector 2×6
R1–R991kResistor
U11MT8808Analog Matrix Switch DIP-28
U21ATmega328MCU DIP-28
Y1116 MHzCrystal

RAM Card

ReferenceQtyValueDescriptionLCSC
C1–C77100nFUnpolarized CapacitorC49678
J21LATCH ENPin Header 1×2
J31Conn_02x08Pin Header 2×8
J41BANK ADDRPin Header 2×5
R1, R2210kResistorC17414
U11AS6C4008SRAM DIP-32
U2174HC573Octal Latch SOIC-20C5608
U3, U6274HC00Quad NAND SOIC-14C5586
U4174HC21Dual 4-input AND SOIC-14C75398
U5174HC308-input NAND SOIC-14C19818870
U7174HC138Decoder SOIC-16C5602

RTC Card

ReferenceQtyValueDescriptionLCSCDigiKey
BT11BAT-HLD-001-THMCoin Cell Battery Holder
C1–C33100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21AUXPin Header 1×6
J31INT SelectPin Header 1×3
J41Conn_02x08Pin Header 2×8
R111kResistorC17513
U11DS1511YRTC DIP-28DS1511Y+-ND
U2, U3274HC138Decoder SOIC-16C5602

Serial Card

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C6, C83100nFUnpolarized CapacitorC49678
C2–C541uFUnpolarized CapacitorC28323
C7122pFUnpolarized CapacitorC1804
D11Schottky DiodeSchottky Diode DO-35
J21DB9 FEMALE (DCE)DB-9 Connector (Female)609-1487-ND
J31Conn_02x08Pin Header 2×8
J41CTS ENPin Header 1×3
R111MResistorC103906
U11MAX232RS-232 Driver/ReceiverC59824
U2174HC138Decoder SOIC-16C5602
U316551ACIA DIP-28
Y111.8432 MHzCrystal

Serial Card Pro

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C2, C11, C134100nFUnpolarized CapacitorC49678
C3–C1081uFUnpolarized CapacitorC28323
C12122pFUnpolarized CapacitorC1804
D11Schottky DiodeSchottky Diode DO-35
J21DB9 MALE (DTE)DB-9 Connector (Male)609-1481-ND
J31Conn_02x08Pin Header 2×8
J41DCD SelectPin Header 1×3
R111MResistorC103906
U1, U22MAX232RS-232 Driver/ReceiverC59824
U3174HC138Decoder SOIC-16C5602
U416551ACIA DIP-28
Y111.8432 MHzCrystal

Sound Card

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C222.2nFUnpolarized CapacitorC28260
C3, C52100nFUnpolarized CapacitorC49678
C411uFUnpolarized CapacitorC28323
J21VDDJST XH 1×2
J31AUDIORCA ConnectorPJRAN1X1U02X
J51Conn_02x08Pin Header 2×8
R111kResistorC17513
U116581SID Chip DIP-28
U2174HC138Decoder SOIC-16C5602

Storage Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized CapacitorC49678
D11LEDActivity LED 0805C2297
J21Conn_02x08Pin Header 2×8
J31Compact FlashCompactFlash ConnectorC444350
J41ACT LEDJST XH 1×2
R1–R441kResistorC17513
R5, R62330ResistorC17630
U1174HC00Quad NAND SOIC-14C5586
U2174HC138Decoder SOIC-16C5602

Storage Card Pro

ReferenceQtyValueDescriptionLCSCDigiKey
C1–C4, C7, C86100nFUnpolarized CapacitorC49678
C5, C6222pFDisc CapacitorC107114
C9, C1021uFUnpolarized CapacitorC28323
D11LEDActivity LED 0805C2297
J11ACT LEDJST XH 1×2
J31SPIPin Header 1×6
J41SD CARDSD Card ConnectorC569097
J51Conn_02x08Pin Header 2×8
R1, R22330ResistorC17630
R3, R421kResistorC17513
U11TXS0108EPWLevel Shifter TSSOP-20C17206
U21ATmega328MCU DIP-28
U31W25Q128JVSFlash Memory SOIC-8C97521
U4174HC138Decoder SOIC-16C5602
U51LP2985-3.3LDO Regulator 3.3V SOT-23-5C95414
Y1116 MHzCrystal3155-16M20P2/49US-ND

VERA Helper

ReferenceQtyValueDescriptionDigiKey
C1, C22100nFDisc Capacitor
D11Schottky DiodeSchottky Diode DO-35
J116502 BusBus Connector 2×20
J21VERA ModulePin Header 2×12
J31Audio LRCA ConnectorPJRAN1X1U02X
J41Audio RRCA ConnectorPJRAN1X1U03X
J51INT SelectPin Header 1×3
J61Conn_02x08Pin Header 2×8
U1, U2274HC138Decoder DIP-16

VGA Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21INT SelectPin Header 1×3
J31Conn_02x08Pin Header 2×8
U11Pico9918AVDP Module DIP-40
U2, U3274HC138Decoder SOIC-16C5602

VGA Card Pro

ReferenceQtyValueDescriptionLCSC
C1–C66100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21VGADB-15 VGA Connector (Female)
J31INT SelectPin Header 1×3
J41Conn_02x08Pin Header 2×8
Q11BSS138N-Channel MOSFET SOT-23C78284
R1, R2, R4, R741kResistorC17513
R3, R622.2kResistorC17520
R5, R82470ResistorC17710
R91820ResistorC17837
R101390ResistorC17655
R11, R12222ResistorC17561
U11SN74LVC4245APWROctal Bus Transceiver TSSOP-24C7859
U2174LVC245Octal Bus Transceiver TSSOP-20C6082
U31Raspberry Pi PicoMCU Module
U4174HC138Decoder SOIC-16C5602
U5174LVC138Decoder SOIC-16C6061

Video Card

ReferenceQtyValueDescriptionLCSCMouserDigiKey
C1, C2232pFDisc CapacitorC107114
C3–C108100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
FB11BLM41PG600SN1LFerrite Bead 1806C85844
J11INT SelectPin Header 1×3
J31Conn_02x08Pin Header 2×8
J41VIDEORCA ConnectorPJRAN1X1U04X
Q112N4401NPN BJT TO-92
R11470ResistorC17710
R2175ResistorC17820
U11TMS9918AVDP DIP-40
U2, U5, U6374HCT5748-bit Register SOIC-20C6001
U3, U4274HC138Decoder SOIC-16C5602
U71AS6C62256SRAM DIP-28
U8174HCT04Hex Inverter SO-14C672096
Y1110.738635 MHzCrystal774-MP107-E

Video Card Pro

ReferenceQtyValueDescriptionLCSCMouserDigiKey
C1, C2220pFDisc CapacitorC105173
C3–C108100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
FB11BLM41PG600SN1LFerrite Bead 1806C85844
J11VIDEORCA ConnectorPJRAN1X1U04X
J21SERIALPin Header 1×4
J31INT SelectPin Header 1×3
J51Conn_02x08Pin Header 2×8
Q112N4401NPN BJT TO-92
R1, R224.7kResistor
R31470ResistorC17710
R4175ResistorC17820
R511kResistor
U1, U4274HC157Quad 2-to-1 Mux SOIC-16C6823
U2, U5274HC166Shift Register SOIC-16C473363
U31ATmega1284-PMCU DIP-40
U6174HC138Decoder SOIC-16C5602
VR1, VR2210kPotentiometer
Y1114.31818 MHzCrystal774-MP107-E

Purchase

I have a few PCBs available on Tindie for those interested in building their own AC6502 system without ordering from a fab directly.

I sell on Tindie

License

Hardware designs are released under the CERN Open Hardware Licence Version 2 – Permissive.
Firmware is released under the MIT License — KEH Controller, PS2 Keyboard Controller, STP Controller.

About

6502-COB 8-Bit Retro Computer Project

Resources

Stars

47 stars

Watchers

2 watching

Forks

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

6502-COB

6502-COB.png

An AC6502 retro-style 8-bit computer based on the 65C02 microprocessor.

📖 Guide:AC6502 Documentation — the user's and programmer's guide for the whole family. See COB's page in the family appendix.


Table of Contents


Overview

The AC6502 ecosystem is a family of open-source, 65C02-based computers sharing a common architecture, memory map, and BIOS. Each computer in the family is purpose-built for a different use case but runs the same software and firmware.

The COB (Computer on a Backplane) is a full-featured modular desktop computer. It features a real 65C02 CPU, a backplane architecture with expandable card slots, up to 544KB RAM, composite or VGA video output, CompactFlash or SD storage, a real-time clock, and support for PS/2 keyboards, matrix keyboards, and Atari 2600-compatible joysticks.

Architecture

All AC6502 computers share:

  • CPU: 65C02 (or accurate emulation)
  • Memory: 32KB RAM + 32KB ROM, with optional banked RAM expansion
  • Memory Map: Standardized across the ecosystem — zero page, stack, I/O space ($8000–$9FFF), system ROM, and interrupt vectors at $FFFA–$FFFF
  • Bus: 16-bit address bus, 8-bit bidirectional data bus, standard 65C02 control signals (RW, PHI2, RESET, IRQ, NMI, RDY, SYNC)
  • BIOS: A common BIOS provides the kernel, monitor, and BASIC interpreter across all systems

Systems

ProjectDescription
6502-ACEAll-in-one Computer Experience — A single board computer
6502-COBComputer On a Backplane — Modular desktop computer with expandable card slots (YOU ARE HERE)
6502-DEVDevelopment Environment Vehicle — Emulation-based dev system
6502-KIMKeypad Input Monitor - KIM-1 inspired minimal computer
6502-VCSVideo Computer System — Cartridge-based retro gaming console

Software

ProjectDescription
6502-BIOSThe shared BIOS (kernel, monitor, BASIC) for all AC6502 computers
6502-EMULATOREmulator for the whole family — desktop app, browser build, and a command line for scripted runs
6502-PRGTemplate project for writing assembly language programs
6502-CRTTemplate project for writing assembly language cartridges
6502-ASMAssembly language example programs and demos
6502-BASBASIC program listings
6502-WOZMONWozmon as a standalone ROM
6502-NOPAn all-NOP ROM, for probing a board during bring-up
6502-DOCSThe documentation site — the guide, the printable reference cards, branding and label artwork
cffsBuilds CompactFlash disk images for the BIOS filesystem
bastokTokenizes BASIC listings into .prg images, and back
bin2wozConverts a binary into a Wozmon serial upload

Hardware

This repository contains KiCad 7.0+ PCB designs for the backplanes, cards, and helpers that make up the COB system.

Backplanes

Hardware/Backplane/ — Passive backplane providing 5 card slots with full bus interconnect across all slots.

Hardware/Backplane Pro/ — Enhanced backplane with integrated clock generation, reset circuitry, and power distribution plus 5 card slots. Rev 1.1 moves to entirely through-hole components and adds an onboard power switch and DC barrel jack input.

Hardware/Backplane Helper/ — Adds additional card slots to expand the total backplane configuration up to 12 slots.

Cards

Hardware/CPU Card/ — Hosts the 65C02 CPU in a card form factor for backplane-based COB systems.

Hardware/CPU Card Pro/ — Hosts a 65816 16-bit CPU (backward-compatible with 65C02). (Untested)

Hardware/Memory Card/ — Provides 32KB SRAM and 32KB EEPROM with address decoding logic for COB systems using the CPU Card.

Hardware/RAM Card/ — 512KB banked RAM expansion organized as two 256KB banks with 256 × 1KB windows each.

Hardware/RTC Card/ — Real-time clock via Dallas DS1511Y with battery backup and 256 bytes of battery-backed SRAM.

Hardware/GPIO Card/ — General-purpose I/O via 65C22 VIA supporting keyboards, joysticks, timers, and custom devices.

Hardware/Serial Card/ — RS-232 serial communication via 65C51 ACIA and MAX232 level shifter.

Hardware/Serial Card Pro/ — Enhanced serial card with full modem control signals (DTR, DCD, DSR).

Hardware/VGA Card/ — VGA 640×480 video output via Raspberry Pi Pico running Pico9918 with TMS9918A-compatible graphics modes.

Hardware/VGA Card Pro/ — Fully programmable VGA output using Pi Pico with custom firmware. (Untested)

Hardware/Video Card/ — Composite video output via TMS9918A Video Display Processor with 16KB video RAM.

Hardware/Video Card Pro/ — Enhanced composite video card. (Untested)

Hardware/Sound Card/ — 3-voice SID audio output via ARMSID module with RCA line-level output.

Hardware/Storage Card/ — CompactFlash storage interface supporting up to 128GB via IDE-compatible protocol.

Hardware/Storage Card Pro/ — SD card (up to 32GB) and 16MB onboard SPI flash storage interface. (Untested, experimental — the stock BIOS has no driver for it; see STP Controller)

Hardware/LCD Card/ — 16×2 character LCD display via 65C22 VIA in 4-bit or 8-bit mode.

Hardware/Blinkenlights Card/ — Visual bus monitoring with LEDs showing address bus (16), data bus (8), and control signals (8) in real time.

Hardware/Prototype Card/ — Blank prototyping area with integrated breadboard and full bus access headers.

Helpers

Hardware/Keyboard Encoder Helper/ — ATmega1284p-based dual keyboard encoder supporting PS/2 keyboard and 8×8 matrix keyboard simultaneously via 65C22 VIA.

Hardware/PS2 Helper/ — ATmega328p-based PS/2 keyboard bridge that drives an MT8808 analog crosspoint switch to emulate a matrix keyboard. Its output is a raw 8×8 matrix and feeds the matrix inputs of a Keyboard Encoder Helper, which is what talks to the 65C22 VIA — not the VIA directly.

Hardware/Keyboard Helper/ — 64-key matrix keyboard with Atari 2600-compatible joystick support.

Hardware/GPIO Helper/ — 8 buttons and 8 LEDs for testing and debugging GPIO Card connections.

Hardware/GPIO Breadboard Helper/ — Breadboard interface adapter for the GPIO Card.

Hardware/Joystick Helper/ — Atari 2600-style dual joystick connector and interface board.

Hardware/Clock Helper/ — Manual clock control providing single-step, free-run, and halt modes for debugging real CPU systems.

Hardware/DB25 Helper/ — GPIO to DB25 connector adapter for external device interfacing.

Hardware/Breadboard Helper/ — Exposes the full AC6502 bus to a breadboard for prototyping and experimentation.

Hardware/Mega Helper/ — Arduino Mega 2560 interface adapter for the AC6502 bus.

Hardware/LCD Board/ — 320×240 TFT LCD display (ILI9341) interfaced via 65C22 VIA. (Untested)

Hardware/VERA Helper/ — VERA FPGA video module adapter for the AC6502 bus.

Firmware

This repository contains PlatformIO-based firmware for the COB system's microcontroller helpers.

KEH Controller

Firmware/KEH Controller/

Firmware for the ATmega1284p on the Keyboard Encoder Helper. Provides:

  • Simultaneous PS/2 keyboard and 8×8 matrix keyboard scanning
  • ASCII conversion with modifier key support (Shift, Ctrl)
  • Buffered, debounced input handling
  • Parallel I/O to the AC6502 bus via 65C22 VIA

See Firmware/KEH Controller/README.md for setup and usage instructions.

PS2 Keyboard Controller

Firmware/PS2 Keyboard Controller/

Firmware for the ATmega328p on the PS2 Helper. Provides:

  • Interrupt-driven PS/2 keyboard scan code reading
  • MT8808 analog crosspoint switch matrix control
  • Make/break detection and extended scan code support
  • Function key emulation via FN key combinations

The MT8808 closes row/column contacts in place of physical key switches, so this card connects to the matrix inputs of a Keyboard Encoder Helper, not to a 65C22 VIA. The encoder does the scanning and ASCII conversion; wired straight to a VIA the card produces nothing, as the BIOS has no matrix-scanning code.

See Firmware/PS2 Keyboard Controller/README.md for setup and usage instructions.

STP Controller

Firmware/STP Controller/

Firmware for the ATmega328p on the Storage Card Pro. Provides:

  • Memory-mapped SPI controller for 6502 bus access
  • Support for SD card, 16MB SPI flash, and external SPI devices
  • Dual-speed SPI (4 MHz normal operation, 400 kHz initialization)
  • PHI2-synchronized interface for reliable 6502 communication

⚠️Experimental. The Storage Card Pro is not part of the default I/O set the BIOS probes for, and no COB machine is built around it today. The BIOS storage slot expects eight True IDE CompactFlash registers at $8C00–$8C07; this card presents two SPI registers instead, so a stock BIOS reports NO DEVICE for every storage path. Using it needs a modified BIOS or software that drives the two registers directly.

See Firmware/STP Controller/README.md for setup and usage instructions.

CAD

CAD/

3D-printable enclosure parts and laser-cut top panels for the COB system.

Production

Production/

JLCPCB-ready Gerber files and BOM/CPL for PCB fabrication and assembly.

Schematics

Schematics/

PDF schematics for each board.

Libraries

Libraries/

Shared KiCad symbol and footprint libraries used across all AC6502 hardware projects.

Bill of Materials

Backplane

ReferenceQtyValueDescriptionDigiKeyMouser
J1–J556502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J6, J726502 BusBus Connector 2×20732-5401-ND

Backplane Helper

ReferenceQtyValueDescriptionDigiKeyMouser
J1, J226502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J316502 BusBus Connector 2×20732-5401-ND

Backplane Pro

Rev 1.1

ReferenceQtyValueDescriptionMouser
C1, C3210uFPolarized capacitor
C21100nFUnpolarized capacitor
D11LEDPower LED 3mm
J115V DCDC Barrel Jack640-DCJ200-10-A-K1-K
J2–J4, J7, J856502 Card ConnectorCard Edge 2×20571-5-5530843-4
J51CLOCK ENBL SWPin Header 1×2
J61RESET SWPin Header 1×2
J916502 BusBus Connector 2×20
JP11Solder JumperSolder Jumper 2-pole
Q112N3904NPN Transistor TO-92
R11330Resistor
R211MResistor
R3147kResistor
R4110kResistor
R511kResistor
SW11POWERSPDT Power Switch612-400MSP1R6BLKM6QE
SW21RESETTact Push Button 5mm
U11LM555Timer SOIC-8
X11OCXO-14Crystal Oscillator DIP-14

Rev 1.0

ReferenceQtyValueDescriptionLCSCDigiKeyMouser
C1, C3–C1413100nFUnpolarized capacitorC49678
C2110uFPolarized capacitorC7171
D111N5819Schottky Diode SOD-323FC191023
D21LEDLED 0805C2297
J11PWR_SWJST XH 1×2455-2247-ND
J21USB-CUSB 2.0 Type-C ReceptacleC2988369
J31RESET_SWJST XH 1×2455-2247-ND
J41CLOCK_ENBL_SWJST XH 1×2455-2247-ND
J5–J956502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J1016502 BusBus Connector 2×20
Q11SS8050NPN Transistor SOT-23C2150
R111MResistorC17514
R2147kResistorC17713
R311kResistorC17513
R4110kResistorC17414
R5, R625.1kResistorC27834
R71330ResistorC17630
SW11ResetPush ButtonC318884
U11LM555xMTimer SOIC-8C7593
X11OCXO-14Crystal Oscillator DIP-14

Blinkenlights Card

ReferenceQtyValueDescriptionLCSC
C1–C44100nFUnpolarized capacitorC49678
D1–D2525LEDLED 0805C2297
D26, D272LEDLED 0805C2295
D28–D303LEDLED 0805C2296
D31, D322LEDLED 0805C2293
R1–R3232330ResistorC17630
U1, U2, U4374HC5738-bit Latch SOIC-20C5608
U3174HC04Hex Inverter SOIC-14C5590

Breadboard Helper

ReferenceQtyValueDescriptionDigiKey
J116502 BusBus Connector 2×20732-5401-ND
J2, J32Pin HeaderPin Header 1×20

Clock Helper

ReferenceQtyValueDescription
C11100nFCapacitor
D1, D22LEDLED 3mm
J11IOPin Header 1×5
R1–R551kResistor
R6–R83330Resistor
SW1, SW22XKB5858-ZDPDT Toggle Switch
SW31XKB5858-WDPDT Toggle Switch
U1174HC74Dual D Flip-flop DIP-14

CPU Card

ReferenceQtyValueDescriptionLCSC
C11100nFUnpolarized capacitorC49678
J21Pin HeaderPin Header 1×2
J31EXPPin Header 2×5
R1–R6610kResistorC2930231
U1165C02CPU DIP-40

Revision History

Rev 1.1

  • Pull-up resistors changed from 1kΩ to 10kΩ.

Rev 1.0

  • Initial release.

CPU Card Pro

ReferenceQtyValueDescriptionLCSC
C1–C44100nFUnpolarized capacitorC49678
J21BANK ADDRPin Header 2×5
J31EXPPin Header 2×4
R1–R661kResistorC17513
U1165C816CPU DIP-40
U2174HC00Quad NAND SOIC-14C5586
U3174HC245Octal Bus Transceiver TSSOP-20C5626
U4174HC5738-bit Latch SOIC-20C5608

DB25 Helper

ReferenceQtyValueDescriptionDigiKey
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
J31KEYBOARDDB-25 Connector (Male)609-1505-ND

GPIO Breadboard Helper

ReferenceQtyValueDescription
J11PORT AGPIO Connector 2×6
J21PORT APin Header 1×12
J31PORT BPin Header 1×12
J41PORT BGPIO Connector 2×6

GPIO Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized capacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21IO SELECTPin Header 2×8
J31PORT AGPIO Connector 2×6
J41PORT BGPIO Connector 2×6
U1174HC138Decoder SOIC-16C5602
U2165C22VIA DIP-40

GPIO Helper

ReferenceQtyValueDescriptionDigiKey
D1–D88LEDLED 3mm
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
R1–R881kResistor
R9–R168330Resistor
SW1–SW88Push ButtonPush Button 6mm2223-TS02-66-50-BK-160-LCR-D-ND

Joystick Helper

ReferenceQtyValueDescriptionDigiKey
J11PORTGPIO Connector 2×6
J21DB-9 MaleDB-9 Connector (Male)609-1481-ND
R1–R881kResistor

Keyboard Encoder Helper

ReferenceQtyValueDescriptionDigiKey
C1, C42100nFCapacitor
C2, C3222pFCapacitor
J11PORT BGPIO Connector 2×6
J21PORT AGPIO Connector 2×6
J31PS/2 KEYBOARD6-pin Mini-DIN
J41KEYBOARDDB-25 Connector (Male)609-1505-ND
R111kResistor
U11ATmega1284-PMCU DIP-40
Y1116 MHzCrystal HC49-U3155-16M20P2/49US-ND

Keyboard Helper

ReferenceQtyValueDescriptionDigiKey
J1, J22JOYSTICKDB-9 Connector (Male)609-1481-ND
J3, J42JOYSTICKGPIO Connector 2×6
J5, J62PORTGPIO Connector 2×6
J71KEYBOARDDB-25 Connector (Male)609-1505-ND
R1–R16161kResistor
SW1–SW6767Cherry MXKey Switch

LCD Board

ReferenceQtyValueDescription
C1–C44100nFCapacitor
D1, D22Schottky DiodeSchottky Diode DO-35
J116502 BusBus Connector 2×20
J21IO SELECTPin Header 2×8
J31HVSYNCPin Header 1×1
R1110kResistor
U1165C22VIA DIP-40
U21Adafruit 2.8" TFTTFT LCD Module
U3174HC138Decoder DIP-16

LCD Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized capacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21GPIOPin Header 1×7
J31IO SELECTPin Header 2×8
R11RResistor
U1165C22VIA DIP-40
U21LCD-16X216×2 Character LCD
U3174HC138Decoder SOIC-16C5602
VR1110kPotentiometer

Mega Helper

ReferenceQtyValueDescription
A11Arduino Mega 2560Arduino Mega 2560 R3 Shield
J116502 BusBus Connector 2×20

Memory Card

ReferenceQtyValueDescriptionLCSC
C1–C55100nFUnpolarized capacitorC49678
J21Pin HeaderPin Header 2×2
J31Pin HeaderPin Header 1×2
R1, R221kResistorC17513
U1, U2, U5374HC00Quad NAND SOIC-14C5586
U31AS6C62256SRAM DIP-28
U41AT28C256EEPROM DIP-28

Prototype Card

ReferenceQtyValueDescriptionLCSC
C1–C33100nFUnpolarized capacitorC49678
J21Bus HeaderPin Socket 2×20
J31EXPPin Header 2×4
U1174HC138Decoder SOIC-16C5602

PS2 Helper

ReferenceQtyValueDescription
C1–C33100nFDisc Capacitor
C4, C5222pFDisc Capacitor
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
J31PS/2Mini-DIN 6-pin
J41JOYSTICKGPIO Connector 2×6
R1–R991kResistor
U11MT8808Analog Matrix Switch DIP-28
U21ATmega328MCU DIP-28
Y1116 MHzCrystal

RAM Card

ReferenceQtyValueDescriptionLCSC
C1–C77100nFUnpolarized CapacitorC49678
J21LATCH ENPin Header 1×2
J31Conn_02x08Pin Header 2×8
J41BANK ADDRPin Header 2×5
R1, R2210kResistorC17414
U11AS6C4008SRAM DIP-32
U2174HC573Octal Latch SOIC-20C5608
U3, U6274HC00Quad NAND SOIC-14C5586
U4174HC21Dual 4-input AND SOIC-14C75398
U5174HC308-input NAND SOIC-14C19818870
U7174HC138Decoder SOIC-16C5602

RTC Card

ReferenceQtyValueDescriptionLCSCDigiKey
BT11BAT-HLD-001-THMCoin Cell Battery Holder
C1–C33100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21AUXPin Header 1×6
J31INT SelectPin Header 1×3
J41Conn_02x08Pin Header 2×8
R111kResistorC17513
U11DS1511YRTC DIP-28DS1511Y+-ND
U2, U3274HC138Decoder SOIC-16C5602

Serial Card

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C6, C83100nFUnpolarized CapacitorC49678
C2–C541uFUnpolarized CapacitorC28323
C7122pFUnpolarized CapacitorC1804
D11Schottky DiodeSchottky Diode DO-35
J21DB9 FEMALE (DCE)DB-9 Connector (Female)609-1487-ND
J31Conn_02x08Pin Header 2×8
J41CTS ENPin Header 1×3
R111MResistorC103906
U11MAX232RS-232 Driver/ReceiverC59824
U2174HC138Decoder SOIC-16C5602
U316551ACIA DIP-28
Y111.8432 MHzCrystal

Serial Card Pro

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C2, C11, C134100nFUnpolarized CapacitorC49678
C3–C1081uFUnpolarized CapacitorC28323
C12122pFUnpolarized CapacitorC1804
D11Schottky DiodeSchottky Diode DO-35
J21DB9 MALE (DTE)DB-9 Connector (Male)609-1481-ND
J31Conn_02x08Pin Header 2×8
J41DCD SelectPin Header 1×3
R111MResistorC103906
U1, U22MAX232RS-232 Driver/ReceiverC59824
U3174HC138Decoder SOIC-16C5602
U416551ACIA DIP-28
Y111.8432 MHzCrystal

Sound Card

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C222.2nFUnpolarized CapacitorC28260
C3, C52100nFUnpolarized CapacitorC49678
C411uFUnpolarized CapacitorC28323
J21VDDJST XH 1×2
J31AUDIORCA ConnectorPJRAN1X1U02X
J51Conn_02x08Pin Header 2×8
R111kResistorC17513
U116581SID Chip DIP-28
U2174HC138Decoder SOIC-16C5602

Storage Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized CapacitorC49678
D11LEDActivity LED 0805C2297
J21Conn_02x08Pin Header 2×8
J31Compact FlashCompactFlash ConnectorC444350
J41ACT LEDJST XH 1×2
R1–R441kResistorC17513
R5, R62330ResistorC17630
U1174HC00Quad NAND SOIC-14C5586
U2174HC138Decoder SOIC-16C5602

Storage Card Pro

ReferenceQtyValueDescriptionLCSCDigiKey
C1–C4, C7, C86100nFUnpolarized CapacitorC49678
C5, C6222pFDisc CapacitorC107114
C9, C1021uFUnpolarized CapacitorC28323
D11LEDActivity LED 0805C2297
J11ACT LEDJST XH 1×2
J31SPIPin Header 1×6
J41SD CARDSD Card ConnectorC569097
J51Conn_02x08Pin Header 2×8
R1, R22330ResistorC17630
R3, R421kResistorC17513
U11TXS0108EPWLevel Shifter TSSOP-20C17206
U21ATmega328MCU DIP-28
U31W25Q128JVSFlash Memory SOIC-8C97521
U4174HC138Decoder SOIC-16C5602
U51LP2985-3.3LDO Regulator 3.3V SOT-23-5C95414
Y1116 MHzCrystal3155-16M20P2/49US-ND

VERA Helper

ReferenceQtyValueDescriptionDigiKey
C1, C22100nFDisc Capacitor
D11Schottky DiodeSchottky Diode DO-35
J116502 BusBus Connector 2×20
J21VERA ModulePin Header 2×12
J31Audio LRCA ConnectorPJRAN1X1U02X
J41Audio RRCA ConnectorPJRAN1X1U03X
J51INT SelectPin Header 1×3
J61Conn_02x08Pin Header 2×8
U1, U2274HC138Decoder DIP-16

VGA Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21INT SelectPin Header 1×3
J31Conn_02x08Pin Header 2×8
U11Pico9918AVDP Module DIP-40
U2, U3274HC138Decoder SOIC-16C5602

VGA Card Pro

ReferenceQtyValueDescriptionLCSC
C1–C66100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21VGADB-15 VGA Connector (Female)
J31INT SelectPin Header 1×3
J41Conn_02x08Pin Header 2×8
Q11BSS138N-Channel MOSFET SOT-23C78284
R1, R2, R4, R741kResistorC17513
R3, R622.2kResistorC17520
R5, R82470ResistorC17710
R91820ResistorC17837
R101390ResistorC17655
R11, R12222ResistorC17561
U11SN74LVC4245APWROctal Bus Transceiver TSSOP-24C7859
U2174LVC245Octal Bus Transceiver TSSOP-20C6082
U31Raspberry Pi PicoMCU Module
U4174HC138Decoder SOIC-16C5602
U5174LVC138Decoder SOIC-16C6061

Video Card

ReferenceQtyValueDescriptionLCSCMouserDigiKey
C1, C2232pFDisc CapacitorC107114
C3–C108100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
FB11BLM41PG600SN1LFerrite Bead 1806C85844
J11INT SelectPin Header 1×3
J31Conn_02x08Pin Header 2×8
J41VIDEORCA ConnectorPJRAN1X1U04X
Q112N4401NPN BJT TO-92
R11470ResistorC17710
R2175ResistorC17820
U11TMS9918AVDP DIP-40
U2, U5, U6374HCT5748-bit Register SOIC-20C6001
U3, U4274HC138Decoder SOIC-16C5602
U71AS6C62256SRAM DIP-28
U8174HCT04Hex Inverter SO-14C672096
Y1110.738635 MHzCrystal774-MP107-E

Video Card Pro

ReferenceQtyValueDescriptionLCSCMouserDigiKey
C1, C2220pFDisc CapacitorC105173
C3–C108100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
FB11BLM41PG600SN1LFerrite Bead 1806C85844
J11VIDEORCA ConnectorPJRAN1X1U04X
J21SERIALPin Header 1×4
J31INT SelectPin Header 1×3
J51Conn_02x08Pin Header 2×8
Q112N4401NPN BJT TO-92
R1, R224.7kResistor
R31470ResistorC17710
R4175ResistorC17820
R511kResistor
U1, U4274HC157Quad 2-to-1 Mux SOIC-16C6823
U2, U5274HC166Shift Register SOIC-16C473363
U31ATmega1284-PMCU DIP-40
U6174HC138Decoder SOIC-16C5602
VR1, VR2210kPotentiometer
Y1114.31818 MHzCrystal774-MP107-E

Purchase

I have a few PCBs available on Tindie for those interested in building their own AC6502 system without ordering from a fab directly.

I sell on Tindie

License

Hardware designs are released under the CERN Open Hardware Licence Version 2 – Permissive.
Firmware is released under the MIT License — KEH Controller, PS2 Keyboard Controller, STP Controller.

About

6502-COB 8-Bit Retro Computer Project

Resources

Stars

47 stars

Watchers

2 watching

Forks

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

6502-COB

6502-COB.png

An AC6502 retro-style 8-bit computer based on the 65C02 microprocessor.

📖 Guide:AC6502 Documentation — the user's and programmer's guide for the whole family. See COB's page in the family appendix.


Table of Contents


Overview

The AC6502 ecosystem is a family of open-source, 65C02-based computers sharing a common architecture, memory map, and BIOS. Each computer in the family is purpose-built for a different use case but runs the same software and firmware.

The COB (Computer on a Backplane) is a full-featured modular desktop computer. It features a real 65C02 CPU, a backplane architecture with expandable card slots, up to 544KB RAM, composite or VGA video output, CompactFlash or SD storage, a real-time clock, and support for PS/2 keyboards, matrix keyboards, and Atari 2600-compatible joysticks.

Architecture

All AC6502 computers share:

  • CPU: 65C02 (or accurate emulation)
  • Memory: 32KB RAM + 32KB ROM, with optional banked RAM expansion
  • Memory Map: Standardized across the ecosystem — zero page, stack, I/O space ($8000–$9FFF), system ROM, and interrupt vectors at $FFFA–$FFFF
  • Bus: 16-bit address bus, 8-bit bidirectional data bus, standard 65C02 control signals (RW, PHI2, RESET, IRQ, NMI, RDY, SYNC)
  • BIOS: A common BIOS provides the kernel, monitor, and BASIC interpreter across all systems

Systems

ProjectDescription
6502-ACEAll-in-one Computer Experience — A single board computer
6502-COBComputer On a Backplane — Modular desktop computer with expandable card slots (YOU ARE HERE)
6502-DEVDevelopment Environment Vehicle — Emulation-based dev system
6502-KIMKeypad Input Monitor - KIM-1 inspired minimal computer
6502-VCSVideo Computer System — Cartridge-based retro gaming console

Software

ProjectDescription
6502-BIOSThe shared BIOS (kernel, monitor, BASIC) for all AC6502 computers
6502-EMULATOREmulator for the whole family — desktop app, browser build, and a command line for scripted runs
6502-PRGTemplate project for writing assembly language programs
6502-CRTTemplate project for writing assembly language cartridges
6502-ASMAssembly language example programs and demos
6502-BASBASIC program listings
6502-WOZMONWozmon as a standalone ROM
6502-NOPAn all-NOP ROM, for probing a board during bring-up
6502-DOCSThe documentation site — the guide, the printable reference cards, branding and label artwork
cffsBuilds CompactFlash disk images for the BIOS filesystem
bastokTokenizes BASIC listings into .prg images, and back
bin2wozConverts a binary into a Wozmon serial upload

Hardware

This repository contains KiCad 7.0+ PCB designs for the backplanes, cards, and helpers that make up the COB system.

Backplanes

Hardware/Backplane/ — Passive backplane providing 5 card slots with full bus interconnect across all slots.

Hardware/Backplane Pro/ — Enhanced backplane with integrated clock generation, reset circuitry, and power distribution plus 5 card slots. Rev 1.1 moves to entirely through-hole components and adds an onboard power switch and DC barrel jack input.

Hardware/Backplane Helper/ — Adds additional card slots to expand the total backplane configuration up to 12 slots.

Cards

Hardware/CPU Card/ — Hosts the 65C02 CPU in a card form factor for backplane-based COB systems.

Hardware/CPU Card Pro/ — Hosts a 65816 16-bit CPU (backward-compatible with 65C02). (Untested)

Hardware/Memory Card/ — Provides 32KB SRAM and 32KB EEPROM with address decoding logic for COB systems using the CPU Card.

Hardware/RAM Card/ — 512KB banked RAM expansion organized as two 256KB banks with 256 × 1KB windows each.

Hardware/RTC Card/ — Real-time clock via Dallas DS1511Y with battery backup and 256 bytes of battery-backed SRAM.

Hardware/GPIO Card/ — General-purpose I/O via 65C22 VIA supporting keyboards, joysticks, timers, and custom devices.

Hardware/Serial Card/ — RS-232 serial communication via 65C51 ACIA and MAX232 level shifter.

Hardware/Serial Card Pro/ — Enhanced serial card with full modem control signals (DTR, DCD, DSR).

Hardware/VGA Card/ — VGA 640×480 video output via Raspberry Pi Pico running Pico9918 with TMS9918A-compatible graphics modes.

Hardware/VGA Card Pro/ — Fully programmable VGA output using Pi Pico with custom firmware. (Untested)

Hardware/Video Card/ — Composite video output via TMS9918A Video Display Processor with 16KB video RAM.

Hardware/Video Card Pro/ — Enhanced composite video card. (Untested)

Hardware/Sound Card/ — 3-voice SID audio output via ARMSID module with RCA line-level output.

Hardware/Storage Card/ — CompactFlash storage interface supporting up to 128GB via IDE-compatible protocol.

Hardware/Storage Card Pro/ — SD card (up to 32GB) and 16MB onboard SPI flash storage interface. (Untested, experimental — the stock BIOS has no driver for it; see STP Controller)

Hardware/LCD Card/ — 16×2 character LCD display via 65C22 VIA in 4-bit or 8-bit mode.

Hardware/Blinkenlights Card/ — Visual bus monitoring with LEDs showing address bus (16), data bus (8), and control signals (8) in real time.

Hardware/Prototype Card/ — Blank prototyping area with integrated breadboard and full bus access headers.

Helpers

Hardware/Keyboard Encoder Helper/ — ATmega1284p-based dual keyboard encoder supporting PS/2 keyboard and 8×8 matrix keyboard simultaneously via 65C22 VIA.

Hardware/PS2 Helper/ — ATmega328p-based PS/2 keyboard bridge that drives an MT8808 analog crosspoint switch to emulate a matrix keyboard. Its output is a raw 8×8 matrix and feeds the matrix inputs of a Keyboard Encoder Helper, which is what talks to the 65C22 VIA — not the VIA directly.

Hardware/Keyboard Helper/ — 64-key matrix keyboard with Atari 2600-compatible joystick support.

Hardware/GPIO Helper/ — 8 buttons and 8 LEDs for testing and debugging GPIO Card connections.

Hardware/GPIO Breadboard Helper/ — Breadboard interface adapter for the GPIO Card.

Hardware/Joystick Helper/ — Atari 2600-style dual joystick connector and interface board.

Hardware/Clock Helper/ — Manual clock control providing single-step, free-run, and halt modes for debugging real CPU systems.

Hardware/DB25 Helper/ — GPIO to DB25 connector adapter for external device interfacing.

Hardware/Breadboard Helper/ — Exposes the full AC6502 bus to a breadboard for prototyping and experimentation.

Hardware/Mega Helper/ — Arduino Mega 2560 interface adapter for the AC6502 bus.

Hardware/LCD Board/ — 320×240 TFT LCD display (ILI9341) interfaced via 65C22 VIA. (Untested)

Hardware/VERA Helper/ — VERA FPGA video module adapter for the AC6502 bus.

Firmware

This repository contains PlatformIO-based firmware for the COB system's microcontroller helpers.

KEH Controller

Firmware/KEH Controller/

Firmware for the ATmega1284p on the Keyboard Encoder Helper. Provides:

  • Simultaneous PS/2 keyboard and 8×8 matrix keyboard scanning
  • ASCII conversion with modifier key support (Shift, Ctrl)
  • Buffered, debounced input handling
  • Parallel I/O to the AC6502 bus via 65C22 VIA

See Firmware/KEH Controller/README.md for setup and usage instructions.

PS2 Keyboard Controller

Firmware/PS2 Keyboard Controller/

Firmware for the ATmega328p on the PS2 Helper. Provides:

  • Interrupt-driven PS/2 keyboard scan code reading
  • MT8808 analog crosspoint switch matrix control
  • Make/break detection and extended scan code support
  • Function key emulation via FN key combinations

The MT8808 closes row/column contacts in place of physical key switches, so this card connects to the matrix inputs of a Keyboard Encoder Helper, not to a 65C22 VIA. The encoder does the scanning and ASCII conversion; wired straight to a VIA the card produces nothing, as the BIOS has no matrix-scanning code.

See Firmware/PS2 Keyboard Controller/README.md for setup and usage instructions.

STP Controller

Firmware/STP Controller/

Firmware for the ATmega328p on the Storage Card Pro. Provides:

  • Memory-mapped SPI controller for 6502 bus access
  • Support for SD card, 16MB SPI flash, and external SPI devices
  • Dual-speed SPI (4 MHz normal operation, 400 kHz initialization)
  • PHI2-synchronized interface for reliable 6502 communication

⚠️Experimental. The Storage Card Pro is not part of the default I/O set the BIOS probes for, and no COB machine is built around it today. The BIOS storage slot expects eight True IDE CompactFlash registers at $8C00–$8C07; this card presents two SPI registers instead, so a stock BIOS reports NO DEVICE for every storage path. Using it needs a modified BIOS or software that drives the two registers directly.

See Firmware/STP Controller/README.md for setup and usage instructions.

CAD

CAD/

3D-printable enclosure parts and laser-cut top panels for the COB system.

Production

Production/

JLCPCB-ready Gerber files and BOM/CPL for PCB fabrication and assembly.

Schematics

Schematics/

PDF schematics for each board.

Libraries

Libraries/

Shared KiCad symbol and footprint libraries used across all AC6502 hardware projects.

Bill of Materials

Backplane

ReferenceQtyValueDescriptionDigiKeyMouser
J1–J556502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J6, J726502 BusBus Connector 2×20732-5401-ND

Backplane Helper

ReferenceQtyValueDescriptionDigiKeyMouser
J1, J226502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J316502 BusBus Connector 2×20732-5401-ND

Backplane Pro

Rev 1.1

ReferenceQtyValueDescriptionMouser
C1, C3210uFPolarized capacitor
C21100nFUnpolarized capacitor
D11LEDPower LED 3mm
J115V DCDC Barrel Jack640-DCJ200-10-A-K1-K
J2–J4, J7, J856502 Card ConnectorCard Edge 2×20571-5-5530843-4
J51CLOCK ENBL SWPin Header 1×2
J61RESET SWPin Header 1×2
J916502 BusBus Connector 2×20
JP11Solder JumperSolder Jumper 2-pole
Q112N3904NPN Transistor TO-92
R11330Resistor
R211MResistor
R3147kResistor
R4110kResistor
R511kResistor
SW11POWERSPDT Power Switch612-400MSP1R6BLKM6QE
SW21RESETTact Push Button 5mm
U11LM555Timer SOIC-8
X11OCXO-14Crystal Oscillator DIP-14

Rev 1.0

ReferenceQtyValueDescriptionLCSCDigiKeyMouser
C1, C3–C1413100nFUnpolarized capacitorC49678
C2110uFPolarized capacitorC7171
D111N5819Schottky Diode SOD-323FC191023
D21LEDLED 0805C2297
J11PWR_SWJST XH 1×2455-2247-ND
J21USB-CUSB 2.0 Type-C ReceptacleC2988369
J31RESET_SWJST XH 1×2455-2247-ND
J41CLOCK_ENBL_SWJST XH 1×2455-2247-ND
J5–J956502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J1016502 BusBus Connector 2×20
Q11SS8050NPN Transistor SOT-23C2150
R111MResistorC17514
R2147kResistorC17713
R311kResistorC17513
R4110kResistorC17414
R5, R625.1kResistorC27834
R71330ResistorC17630
SW11ResetPush ButtonC318884
U11LM555xMTimer SOIC-8C7593
X11OCXO-14Crystal Oscillator DIP-14

Blinkenlights Card

ReferenceQtyValueDescriptionLCSC
C1–C44100nFUnpolarized capacitorC49678
D1–D2525LEDLED 0805C2297
D26, D272LEDLED 0805C2295
D28–D303LEDLED 0805C2296
D31, D322LEDLED 0805C2293
R1–R3232330ResistorC17630
U1, U2, U4374HC5738-bit Latch SOIC-20C5608
U3174HC04Hex Inverter SOIC-14C5590

Breadboard Helper

ReferenceQtyValueDescriptionDigiKey
J116502 BusBus Connector 2×20732-5401-ND
J2, J32Pin HeaderPin Header 1×20

Clock Helper

ReferenceQtyValueDescription
C11100nFCapacitor
D1, D22LEDLED 3mm
J11IOPin Header 1×5
R1–R551kResistor
R6–R83330Resistor
SW1, SW22XKB5858-ZDPDT Toggle Switch
SW31XKB5858-WDPDT Toggle Switch
U1174HC74Dual D Flip-flop DIP-14

CPU Card

ReferenceQtyValueDescriptionLCSC
C11100nFUnpolarized capacitorC49678
J21Pin HeaderPin Header 1×2
J31EXPPin Header 2×5
R1–R6610kResistorC2930231
U1165C02CPU DIP-40

Revision History

Rev 1.1

  • Pull-up resistors changed from 1kΩ to 10kΩ.

Rev 1.0

  • Initial release.

CPU Card Pro

ReferenceQtyValueDescriptionLCSC
C1–C44100nFUnpolarized capacitorC49678
J21BANK ADDRPin Header 2×5
J31EXPPin Header 2×4
R1–R661kResistorC17513
U1165C816CPU DIP-40
U2174HC00Quad NAND SOIC-14C5586
U3174HC245Octal Bus Transceiver TSSOP-20C5626
U4174HC5738-bit Latch SOIC-20C5608

DB25 Helper

ReferenceQtyValueDescriptionDigiKey
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
J31KEYBOARDDB-25 Connector (Male)609-1505-ND

GPIO Breadboard Helper

ReferenceQtyValueDescription
J11PORT AGPIO Connector 2×6
J21PORT APin Header 1×12
J31PORT BPin Header 1×12
J41PORT BGPIO Connector 2×6

GPIO Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized capacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21IO SELECTPin Header 2×8
J31PORT AGPIO Connector 2×6
J41PORT BGPIO Connector 2×6
U1174HC138Decoder SOIC-16C5602
U2165C22VIA DIP-40

GPIO Helper

ReferenceQtyValueDescriptionDigiKey
D1–D88LEDLED 3mm
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
R1–R881kResistor
R9–R168330Resistor
SW1–SW88Push ButtonPush Button 6mm2223-TS02-66-50-BK-160-LCR-D-ND

Joystick Helper

ReferenceQtyValueDescriptionDigiKey
J11PORTGPIO Connector 2×6
J21DB-9 MaleDB-9 Connector (Male)609-1481-ND
R1–R881kResistor

Keyboard Encoder Helper

ReferenceQtyValueDescriptionDigiKey
C1, C42100nFCapacitor
C2, C3222pFCapacitor
J11PORT BGPIO Connector 2×6
J21PORT AGPIO Connector 2×6
J31PS/2 KEYBOARD6-pin Mini-DIN
J41KEYBOARDDB-25 Connector (Male)609-1505-ND
R111kResistor
U11ATmega1284-PMCU DIP-40
Y1116 MHzCrystal HC49-U3155-16M20P2/49US-ND

Keyboard Helper

ReferenceQtyValueDescriptionDigiKey
J1, J22JOYSTICKDB-9 Connector (Male)609-1481-ND
J3, J42JOYSTICKGPIO Connector 2×6
J5, J62PORTGPIO Connector 2×6
J71KEYBOARDDB-25 Connector (Male)609-1505-ND
R1–R16161kResistor
SW1–SW6767Cherry MXKey Switch

LCD Board

ReferenceQtyValueDescription
C1–C44100nFCapacitor
D1, D22Schottky DiodeSchottky Diode DO-35
J116502 BusBus Connector 2×20
J21IO SELECTPin Header 2×8
J31HVSYNCPin Header 1×1
R1110kResistor
U1165C22VIA DIP-40
U21Adafruit 2.8" TFTTFT LCD Module
U3174HC138Decoder DIP-16

LCD Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized capacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21GPIOPin Header 1×7
J31IO SELECTPin Header 2×8
R11RResistor
U1165C22VIA DIP-40
U21LCD-16X216×2 Character LCD
U3174HC138Decoder SOIC-16C5602
VR1110kPotentiometer

Mega Helper

ReferenceQtyValueDescription
A11Arduino Mega 2560Arduino Mega 2560 R3 Shield
J116502 BusBus Connector 2×20

Memory Card

ReferenceQtyValueDescriptionLCSC
C1–C55100nFUnpolarized capacitorC49678
J21Pin HeaderPin Header 2×2
J31Pin HeaderPin Header 1×2
R1, R221kResistorC17513
U1, U2, U5374HC00Quad NAND SOIC-14C5586
U31AS6C62256SRAM DIP-28
U41AT28C256EEPROM DIP-28

Prototype Card

ReferenceQtyValueDescriptionLCSC
C1–C33100nFUnpolarized capacitorC49678
J21Bus HeaderPin Socket 2×20
J31EXPPin Header 2×4
U1174HC138Decoder SOIC-16C5602

PS2 Helper

ReferenceQtyValueDescription
C1–C33100nFDisc Capacitor
C4, C5222pFDisc Capacitor
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
J31PS/2Mini-DIN 6-pin
J41JOYSTICKGPIO Connector 2×6
R1–R991kResistor
U11MT8808Analog Matrix Switch DIP-28
U21ATmega328MCU DIP-28
Y1116 MHzCrystal

RAM Card

ReferenceQtyValueDescriptionLCSC
C1–C77100nFUnpolarized CapacitorC49678
J21LATCH ENPin Header 1×2
J31Conn_02x08Pin Header 2×8
J41BANK ADDRPin Header 2×5
R1, R2210kResistorC17414
U11AS6C4008SRAM DIP-32
U2174HC573Octal Latch SOIC-20C5608
U3, U6274HC00Quad NAND SOIC-14C5586
U4174HC21Dual 4-input AND SOIC-14C75398
U5174HC308-input NAND SOIC-14C19818870
U7174HC138Decoder SOIC-16C5602

RTC Card

ReferenceQtyValueDescriptionLCSCDigiKey
BT11BAT-HLD-001-THMCoin Cell Battery Holder
C1–C33100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21AUXPin Header 1×6
J31INT SelectPin Header 1×3
J41Conn_02x08Pin Header 2×8
R111kResistorC17513
U11DS1511YRTC DIP-28DS1511Y+-ND
U2, U3274HC138Decoder SOIC-16C5602

Serial Card

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C6, C83100nFUnpolarized CapacitorC49678
C2–C541uFUnpolarized CapacitorC28323
C7122pFUnpolarized CapacitorC1804
D11Schottky DiodeSchottky Diode DO-35
J21DB9 FEMALE (DCE)DB-9 Connector (Female)609-1487-ND
J31Conn_02x08Pin Header 2×8
J41CTS ENPin Header 1×3
R111MResistorC103906
U11MAX232RS-232 Driver/ReceiverC59824
U2174HC138Decoder SOIC-16C5602
U316551ACIA DIP-28
Y111.8432 MHzCrystal

Serial Card Pro

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C2, C11, C134100nFUnpolarized CapacitorC49678
C3–C1081uFUnpolarized CapacitorC28323
C12122pFUnpolarized CapacitorC1804
D11Schottky DiodeSchottky Diode DO-35
J21DB9 MALE (DTE)DB-9 Connector (Male)609-1481-ND
J31Conn_02x08Pin Header 2×8
J41DCD SelectPin Header 1×3
R111MResistorC103906
U1, U22MAX232RS-232 Driver/ReceiverC59824
U3174HC138Decoder SOIC-16C5602
U416551ACIA DIP-28
Y111.8432 MHzCrystal

Sound Card

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C222.2nFUnpolarized CapacitorC28260
C3, C52100nFUnpolarized CapacitorC49678
C411uFUnpolarized CapacitorC28323
J21VDDJST XH 1×2
J31AUDIORCA ConnectorPJRAN1X1U02X
J51Conn_02x08Pin Header 2×8
R111kResistorC17513
U116581SID Chip DIP-28
U2174HC138Decoder SOIC-16C5602

Storage Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized CapacitorC49678
D11LEDActivity LED 0805C2297
J21Conn_02x08Pin Header 2×8
J31Compact FlashCompactFlash ConnectorC444350
J41ACT LEDJST XH 1×2
R1–R441kResistorC17513
R5, R62330ResistorC17630
U1174HC00Quad NAND SOIC-14C5586
U2174HC138Decoder SOIC-16C5602

Storage Card Pro

ReferenceQtyValueDescriptionLCSCDigiKey
C1–C4, C7, C86100nFUnpolarized CapacitorC49678
C5, C6222pFDisc CapacitorC107114
C9, C1021uFUnpolarized CapacitorC28323
D11LEDActivity LED 0805C2297
J11ACT LEDJST XH 1×2
J31SPIPin Header 1×6
J41SD CARDSD Card ConnectorC569097
J51Conn_02x08Pin Header 2×8
R1, R22330ResistorC17630
R3, R421kResistorC17513
U11TXS0108EPWLevel Shifter TSSOP-20C17206
U21ATmega328MCU DIP-28
U31W25Q128JVSFlash Memory SOIC-8C97521
U4174HC138Decoder SOIC-16C5602
U51LP2985-3.3LDO Regulator 3.3V SOT-23-5C95414
Y1116 MHzCrystal3155-16M20P2/49US-ND

VERA Helper

ReferenceQtyValueDescriptionDigiKey
C1, C22100nFDisc Capacitor
D11Schottky DiodeSchottky Diode DO-35
J116502 BusBus Connector 2×20
J21VERA ModulePin Header 2×12
J31Audio LRCA ConnectorPJRAN1X1U02X
J41Audio RRCA ConnectorPJRAN1X1U03X
J51INT SelectPin Header 1×3
J61Conn_02x08Pin Header 2×8
U1, U2274HC138Decoder DIP-16

VGA Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21INT SelectPin Header 1×3
J31Conn_02x08Pin Header 2×8
U11Pico9918AVDP Module DIP-40
U2, U3274HC138Decoder SOIC-16C5602

VGA Card Pro

ReferenceQtyValueDescriptionLCSC
C1–C66100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21VGADB-15 VGA Connector (Female)
J31INT SelectPin Header 1×3
J41Conn_02x08Pin Header 2×8
Q11BSS138N-Channel MOSFET SOT-23C78284
R1, R2, R4, R741kResistorC17513
R3, R622.2kResistorC17520
R5, R82470ResistorC17710
R91820ResistorC17837
R101390ResistorC17655
R11, R12222ResistorC17561
U11SN74LVC4245APWROctal Bus Transceiver TSSOP-24C7859
U2174LVC245Octal Bus Transceiver TSSOP-20C6082
U31Raspberry Pi PicoMCU Module
U4174HC138Decoder SOIC-16C5602
U5174LVC138Decoder SOIC-16C6061

Video Card

ReferenceQtyValueDescriptionLCSCMouserDigiKey
C1, C2232pFDisc CapacitorC107114
C3–C108100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
FB11BLM41PG600SN1LFerrite Bead 1806C85844
J11INT SelectPin Header 1×3
J31Conn_02x08Pin Header 2×8
J41VIDEORCA ConnectorPJRAN1X1U04X
Q112N4401NPN BJT TO-92
R11470ResistorC17710
R2175ResistorC17820
U11TMS9918AVDP DIP-40
U2, U5, U6374HCT5748-bit Register SOIC-20C6001
U3, U4274HC138Decoder SOIC-16C5602
U71AS6C62256SRAM DIP-28
U8174HCT04Hex Inverter SO-14C672096
Y1110.738635 MHzCrystal774-MP107-E

Video Card Pro

ReferenceQtyValueDescriptionLCSCMouserDigiKey
C1, C2220pFDisc CapacitorC105173
C3–C108100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
FB11BLM41PG600SN1LFerrite Bead 1806C85844
J11VIDEORCA ConnectorPJRAN1X1U04X
J21SERIALPin Header 1×4
J31INT SelectPin Header 1×3
J51Conn_02x08Pin Header 2×8
Q112N4401NPN BJT TO-92
R1, R224.7kResistor
R31470ResistorC17710
R4175ResistorC17820
R511kResistor
U1, U4274HC157Quad 2-to-1 Mux SOIC-16C6823
U2, U5274HC166Shift Register SOIC-16C473363
U31ATmega1284-PMCU DIP-40
U6174HC138Decoder SOIC-16C5602
VR1, VR2210kPotentiometer
Y1114.31818 MHzCrystal774-MP107-E

Purchase

I have a few PCBs available on Tindie for those interested in building their own AC6502 system without ordering from a fab directly.

I sell on Tindie

License

Hardware designs are released under the CERN Open Hardware Licence Version 2 – Permissive.
Firmware is released under the MIT License — KEH Controller, PS2 Keyboard Controller, STP Controller.

About

6502-COB 8-Bit Retro Computer Project

Resources

Stars

47 stars

Watchers

2 watching

Forks

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Repository files navigation

6502-COB

6502-COB.png

An AC6502 retro-style 8-bit computer based on the 65C02 microprocessor.

📖 Guide:AC6502 Documentation — the user's and programmer's guide for the whole family. See COB's page in the family appendix.


Table of Contents


Overview

The AC6502 ecosystem is a family of open-source, 65C02-based computers sharing a common architecture, memory map, and BIOS. Each computer in the family is purpose-built for a different use case but runs the same software and firmware.

The COB (Computer on a Backplane) is a full-featured modular desktop computer. It features a real 65C02 CPU, a backplane architecture with expandable card slots, up to 544KB RAM, composite or VGA video output, CompactFlash or SD storage, a real-time clock, and support for PS/2 keyboards, matrix keyboards, and Atari 2600-compatible joysticks.

Architecture

All AC6502 computers share:

  • CPU: 65C02 (or accurate emulation)
  • Memory: 32KB RAM + 32KB ROM, with optional banked RAM expansion
  • Memory Map: Standardized across the ecosystem — zero page, stack, I/O space ($8000–$9FFF), system ROM, and interrupt vectors at $FFFA–$FFFF
  • Bus: 16-bit address bus, 8-bit bidirectional data bus, standard 65C02 control signals (RW, PHI2, RESET, IRQ, NMI, RDY, SYNC)
  • BIOS: A common BIOS provides the kernel, monitor, and BASIC interpreter across all systems

Systems

ProjectDescription
6502-ACEAll-in-one Computer Experience — A single board computer
6502-COBComputer On a Backplane — Modular desktop computer with expandable card slots (YOU ARE HERE)
6502-DEVDevelopment Environment Vehicle — Emulation-based dev system
6502-KIMKeypad Input Monitor - KIM-1 inspired minimal computer
6502-VCSVideo Computer System — Cartridge-based retro gaming console

Software

ProjectDescription
6502-BIOSThe shared BIOS (kernel, monitor, BASIC) for all AC6502 computers
6502-EMULATOREmulator for the whole family — desktop app, browser build, and a command line for scripted runs
6502-PRGTemplate project for writing assembly language programs
6502-CRTTemplate project for writing assembly language cartridges
6502-ASMAssembly language example programs and demos
6502-BASBASIC program listings
6502-WOZMONWozmon as a standalone ROM
6502-NOPAn all-NOP ROM, for probing a board during bring-up
6502-DOCSThe documentation site — the guide, the printable reference cards, branding and label artwork
cffsBuilds CompactFlash disk images for the BIOS filesystem
bastokTokenizes BASIC listings into .prg images, and back
bin2wozConverts a binary into a Wozmon serial upload

Hardware

This repository contains KiCad 7.0+ PCB designs for the backplanes, cards, and helpers that make up the COB system.

Backplanes

Hardware/Backplane/ — Passive backplane providing 5 card slots with full bus interconnect across all slots.

Hardware/Backplane Pro/ — Enhanced backplane with integrated clock generation, reset circuitry, and power distribution plus 5 card slots. Rev 1.1 moves to entirely through-hole components and adds an onboard power switch and DC barrel jack input.

Hardware/Backplane Helper/ — Adds additional card slots to expand the total backplane configuration up to 12 slots.

Cards

Hardware/CPU Card/ — Hosts the 65C02 CPU in a card form factor for backplane-based COB systems.

Hardware/CPU Card Pro/ — Hosts a 65816 16-bit CPU (backward-compatible with 65C02). (Untested)

Hardware/Memory Card/ — Provides 32KB SRAM and 32KB EEPROM with address decoding logic for COB systems using the CPU Card.

Hardware/RAM Card/ — 512KB banked RAM expansion organized as two 256KB banks with 256 × 1KB windows each.

Hardware/RTC Card/ — Real-time clock via Dallas DS1511Y with battery backup and 256 bytes of battery-backed SRAM.

Hardware/GPIO Card/ — General-purpose I/O via 65C22 VIA supporting keyboards, joysticks, timers, and custom devices.

Hardware/Serial Card/ — RS-232 serial communication via 65C51 ACIA and MAX232 level shifter.

Hardware/Serial Card Pro/ — Enhanced serial card with full modem control signals (DTR, DCD, DSR).

Hardware/VGA Card/ — VGA 640×480 video output via Raspberry Pi Pico running Pico9918 with TMS9918A-compatible graphics modes.

Hardware/VGA Card Pro/ — Fully programmable VGA output using Pi Pico with custom firmware. (Untested)

Hardware/Video Card/ — Composite video output via TMS9918A Video Display Processor with 16KB video RAM.

Hardware/Video Card Pro/ — Enhanced composite video card. (Untested)

Hardware/Sound Card/ — 3-voice SID audio output via ARMSID module with RCA line-level output.

Hardware/Storage Card/ — CompactFlash storage interface supporting up to 128GB via IDE-compatible protocol.

Hardware/Storage Card Pro/ — SD card (up to 32GB) and 16MB onboard SPI flash storage interface. (Untested, experimental — the stock BIOS has no driver for it; see STP Controller)

Hardware/LCD Card/ — 16×2 character LCD display via 65C22 VIA in 4-bit or 8-bit mode.

Hardware/Blinkenlights Card/ — Visual bus monitoring with LEDs showing address bus (16), data bus (8), and control signals (8) in real time.

Hardware/Prototype Card/ — Blank prototyping area with integrated breadboard and full bus access headers.

Helpers

Hardware/Keyboard Encoder Helper/ — ATmega1284p-based dual keyboard encoder supporting PS/2 keyboard and 8×8 matrix keyboard simultaneously via 65C22 VIA.

Hardware/PS2 Helper/ — ATmega328p-based PS/2 keyboard bridge that drives an MT8808 analog crosspoint switch to emulate a matrix keyboard. Its output is a raw 8×8 matrix and feeds the matrix inputs of a Keyboard Encoder Helper, which is what talks to the 65C22 VIA — not the VIA directly.

Hardware/Keyboard Helper/ — 64-key matrix keyboard with Atari 2600-compatible joystick support.

Hardware/GPIO Helper/ — 8 buttons and 8 LEDs for testing and debugging GPIO Card connections.

Hardware/GPIO Breadboard Helper/ — Breadboard interface adapter for the GPIO Card.

Hardware/Joystick Helper/ — Atari 2600-style dual joystick connector and interface board.

Hardware/Clock Helper/ — Manual clock control providing single-step, free-run, and halt modes for debugging real CPU systems.

Hardware/DB25 Helper/ — GPIO to DB25 connector adapter for external device interfacing.

Hardware/Breadboard Helper/ — Exposes the full AC6502 bus to a breadboard for prototyping and experimentation.

Hardware/Mega Helper/ — Arduino Mega 2560 interface adapter for the AC6502 bus.

Hardware/LCD Board/ — 320×240 TFT LCD display (ILI9341) interfaced via 65C22 VIA. (Untested)

Hardware/VERA Helper/ — VERA FPGA video module adapter for the AC6502 bus.

Firmware

This repository contains PlatformIO-based firmware for the COB system's microcontroller helpers.

KEH Controller

Firmware/KEH Controller/

Firmware for the ATmega1284p on the Keyboard Encoder Helper. Provides:

  • Simultaneous PS/2 keyboard and 8×8 matrix keyboard scanning
  • ASCII conversion with modifier key support (Shift, Ctrl)
  • Buffered, debounced input handling
  • Parallel I/O to the AC6502 bus via 65C22 VIA

See Firmware/KEH Controller/README.md for setup and usage instructions.

PS2 Keyboard Controller

Firmware/PS2 Keyboard Controller/

Firmware for the ATmega328p on the PS2 Helper. Provides:

  • Interrupt-driven PS/2 keyboard scan code reading
  • MT8808 analog crosspoint switch matrix control
  • Make/break detection and extended scan code support
  • Function key emulation via FN key combinations

The MT8808 closes row/column contacts in place of physical key switches, so this card connects to the matrix inputs of a Keyboard Encoder Helper, not to a 65C22 VIA. The encoder does the scanning and ASCII conversion; wired straight to a VIA the card produces nothing, as the BIOS has no matrix-scanning code.

See Firmware/PS2 Keyboard Controller/README.md for setup and usage instructions.

STP Controller

Firmware/STP Controller/

Firmware for the ATmega328p on the Storage Card Pro. Provides:

  • Memory-mapped SPI controller for 6502 bus access
  • Support for SD card, 16MB SPI flash, and external SPI devices
  • Dual-speed SPI (4 MHz normal operation, 400 kHz initialization)
  • PHI2-synchronized interface for reliable 6502 communication

⚠️Experimental. The Storage Card Pro is not part of the default I/O set the BIOS probes for, and no COB machine is built around it today. The BIOS storage slot expects eight True IDE CompactFlash registers at $8C00–$8C07; this card presents two SPI registers instead, so a stock BIOS reports NO DEVICE for every storage path. Using it needs a modified BIOS or software that drives the two registers directly.

See Firmware/STP Controller/README.md for setup and usage instructions.

CAD

CAD/

3D-printable enclosure parts and laser-cut top panels for the COB system.

Production

Production/

JLCPCB-ready Gerber files and BOM/CPL for PCB fabrication and assembly.

Schematics

Schematics/

PDF schematics for each board.

Libraries

Libraries/

Shared KiCad symbol and footprint libraries used across all AC6502 hardware projects.

Bill of Materials

Backplane

ReferenceQtyValueDescriptionDigiKeyMouser
J1–J556502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J6, J726502 BusBus Connector 2×20732-5401-ND

Backplane Helper

ReferenceQtyValueDescriptionDigiKeyMouser
J1, J226502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J316502 BusBus Connector 2×20732-5401-ND

Backplane Pro

Rev 1.1

ReferenceQtyValueDescriptionMouser
C1, C3210uFPolarized capacitor
C21100nFUnpolarized capacitor
D11LEDPower LED 3mm
J115V DCDC Barrel Jack640-DCJ200-10-A-K1-K
J2–J4, J7, J856502 Card ConnectorCard Edge 2×20571-5-5530843-4
J51CLOCK ENBL SWPin Header 1×2
J61RESET SWPin Header 1×2
J916502 BusBus Connector 2×20
JP11Solder JumperSolder Jumper 2-pole
Q112N3904NPN Transistor TO-92
R11330Resistor
R211MResistor
R3147kResistor
R4110kResistor
R511kResistor
SW11POWERSPDT Power Switch612-400MSP1R6BLKM6QE
SW21RESETTact Push Button 5mm
U11LM555Timer SOIC-8
X11OCXO-14Crystal Oscillator DIP-14

Rev 1.0

ReferenceQtyValueDescriptionLCSCDigiKeyMouser
C1, C3–C1413100nFUnpolarized capacitorC49678
C2110uFPolarized capacitorC7171
D111N5819Schottky Diode SOD-323FC191023
D21LEDLED 0805C2297
J11PWR_SWJST XH 1×2455-2247-ND
J21USB-CUSB 2.0 Type-C ReceptacleC2988369
J31RESET_SWJST XH 1×2455-2247-ND
J41CLOCK_ENBL_SWJST XH 1×2455-2247-ND
J5–J956502 Card ConnectorCard Edge 2×20A31723-ND571-5-5530843-4
J1016502 BusBus Connector 2×20
Q11SS8050NPN Transistor SOT-23C2150
R111MResistorC17514
R2147kResistorC17713
R311kResistorC17513
R4110kResistorC17414
R5, R625.1kResistorC27834
R71330ResistorC17630
SW11ResetPush ButtonC318884
U11LM555xMTimer SOIC-8C7593
X11OCXO-14Crystal Oscillator DIP-14

Blinkenlights Card

ReferenceQtyValueDescriptionLCSC
C1–C44100nFUnpolarized capacitorC49678
D1–D2525LEDLED 0805C2297
D26, D272LEDLED 0805C2295
D28–D303LEDLED 0805C2296
D31, D322LEDLED 0805C2293
R1–R3232330ResistorC17630
U1, U2, U4374HC5738-bit Latch SOIC-20C5608
U3174HC04Hex Inverter SOIC-14C5590

Breadboard Helper

ReferenceQtyValueDescriptionDigiKey
J116502 BusBus Connector 2×20732-5401-ND
J2, J32Pin HeaderPin Header 1×20

Clock Helper

ReferenceQtyValueDescription
C11100nFCapacitor
D1, D22LEDLED 3mm
J11IOPin Header 1×5
R1–R551kResistor
R6–R83330Resistor
SW1, SW22XKB5858-ZDPDT Toggle Switch
SW31XKB5858-WDPDT Toggle Switch
U1174HC74Dual D Flip-flop DIP-14

CPU Card

ReferenceQtyValueDescriptionLCSC
C11100nFUnpolarized capacitorC49678
J21Pin HeaderPin Header 1×2
J31EXPPin Header 2×5
R1–R6610kResistorC2930231
U1165C02CPU DIP-40

Revision History

Rev 1.1

  • Pull-up resistors changed from 1kΩ to 10kΩ.

Rev 1.0

  • Initial release.

CPU Card Pro

ReferenceQtyValueDescriptionLCSC
C1–C44100nFUnpolarized capacitorC49678
J21BANK ADDRPin Header 2×5
J31EXPPin Header 2×4
R1–R661kResistorC17513
U1165C816CPU DIP-40
U2174HC00Quad NAND SOIC-14C5586
U3174HC245Octal Bus Transceiver TSSOP-20C5626
U4174HC5738-bit Latch SOIC-20C5608

DB25 Helper

ReferenceQtyValueDescriptionDigiKey
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
J31KEYBOARDDB-25 Connector (Male)609-1505-ND

GPIO Breadboard Helper

ReferenceQtyValueDescription
J11PORT AGPIO Connector 2×6
J21PORT APin Header 1×12
J31PORT BPin Header 1×12
J41PORT BGPIO Connector 2×6

GPIO Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized capacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21IO SELECTPin Header 2×8
J31PORT AGPIO Connector 2×6
J41PORT BGPIO Connector 2×6
U1174HC138Decoder SOIC-16C5602
U2165C22VIA DIP-40

GPIO Helper

ReferenceQtyValueDescriptionDigiKey
D1–D88LEDLED 3mm
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
R1–R881kResistor
R9–R168330Resistor
SW1–SW88Push ButtonPush Button 6mm2223-TS02-66-50-BK-160-LCR-D-ND

Joystick Helper

ReferenceQtyValueDescriptionDigiKey
J11PORTGPIO Connector 2×6
J21DB-9 MaleDB-9 Connector (Male)609-1481-ND
R1–R881kResistor

Keyboard Encoder Helper

ReferenceQtyValueDescriptionDigiKey
C1, C42100nFCapacitor
C2, C3222pFCapacitor
J11PORT BGPIO Connector 2×6
J21PORT AGPIO Connector 2×6
J31PS/2 KEYBOARD6-pin Mini-DIN
J41KEYBOARDDB-25 Connector (Male)609-1505-ND
R111kResistor
U11ATmega1284-PMCU DIP-40
Y1116 MHzCrystal HC49-U3155-16M20P2/49US-ND

Keyboard Helper

ReferenceQtyValueDescriptionDigiKey
J1, J22JOYSTICKDB-9 Connector (Male)609-1481-ND
J3, J42JOYSTICKGPIO Connector 2×6
J5, J62PORTGPIO Connector 2×6
J71KEYBOARDDB-25 Connector (Male)609-1505-ND
R1–R16161kResistor
SW1–SW6767Cherry MXKey Switch

LCD Board

ReferenceQtyValueDescription
C1–C44100nFCapacitor
D1, D22Schottky DiodeSchottky Diode DO-35
J116502 BusBus Connector 2×20
J21IO SELECTPin Header 2×8
J31HVSYNCPin Header 1×1
R1110kResistor
U1165C22VIA DIP-40
U21Adafruit 2.8" TFTTFT LCD Module
U3174HC138Decoder DIP-16

LCD Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized capacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21GPIOPin Header 1×7
J31IO SELECTPin Header 2×8
R11RResistor
U1165C22VIA DIP-40
U21LCD-16X216×2 Character LCD
U3174HC138Decoder SOIC-16C5602
VR1110kPotentiometer

Mega Helper

ReferenceQtyValueDescription
A11Arduino Mega 2560Arduino Mega 2560 R3 Shield
J116502 BusBus Connector 2×20

Memory Card

ReferenceQtyValueDescriptionLCSC
C1–C55100nFUnpolarized capacitorC49678
J21Pin HeaderPin Header 2×2
J31Pin HeaderPin Header 1×2
R1, R221kResistorC17513
U1, U2, U5374HC00Quad NAND SOIC-14C5586
U31AS6C62256SRAM DIP-28
U41AT28C256EEPROM DIP-28

Prototype Card

ReferenceQtyValueDescriptionLCSC
C1–C33100nFUnpolarized capacitorC49678
J21Bus HeaderPin Socket 2×20
J31EXPPin Header 2×4
U1174HC138Decoder SOIC-16C5602

PS2 Helper

ReferenceQtyValueDescription
C1–C33100nFDisc Capacitor
C4, C5222pFDisc Capacitor
J11PORT AGPIO Connector 2×6
J21PORT BGPIO Connector 2×6
J31PS/2Mini-DIN 6-pin
J41JOYSTICKGPIO Connector 2×6
R1–R991kResistor
U11MT8808Analog Matrix Switch DIP-28
U21ATmega328MCU DIP-28
Y1116 MHzCrystal

RAM Card

ReferenceQtyValueDescriptionLCSC
C1–C77100nFUnpolarized CapacitorC49678
J21LATCH ENPin Header 1×2
J31Conn_02x08Pin Header 2×8
J41BANK ADDRPin Header 2×5
R1, R2210kResistorC17414
U11AS6C4008SRAM DIP-32
U2174HC573Octal Latch SOIC-20C5608
U3, U6274HC00Quad NAND SOIC-14C5586
U4174HC21Dual 4-input AND SOIC-14C75398
U5174HC308-input NAND SOIC-14C19818870
U7174HC138Decoder SOIC-16C5602

RTC Card

ReferenceQtyValueDescriptionLCSCDigiKey
BT11BAT-HLD-001-THMCoin Cell Battery Holder
C1–C33100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21AUXPin Header 1×6
J31INT SelectPin Header 1×3
J41Conn_02x08Pin Header 2×8
R111kResistorC17513
U11DS1511YRTC DIP-28DS1511Y+-ND
U2, U3274HC138Decoder SOIC-16C5602

Serial Card

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C6, C83100nFUnpolarized CapacitorC49678
C2–C541uFUnpolarized CapacitorC28323
C7122pFUnpolarized CapacitorC1804
D11Schottky DiodeSchottky Diode DO-35
J21DB9 FEMALE (DCE)DB-9 Connector (Female)609-1487-ND
J31Conn_02x08Pin Header 2×8
J41CTS ENPin Header 1×3
R111MResistorC103906
U11MAX232RS-232 Driver/ReceiverC59824
U2174HC138Decoder SOIC-16C5602
U316551ACIA DIP-28
Y111.8432 MHzCrystal

Serial Card Pro

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C2, C11, C134100nFUnpolarized CapacitorC49678
C3–C1081uFUnpolarized CapacitorC28323
C12122pFUnpolarized CapacitorC1804
D11Schottky DiodeSchottky Diode DO-35
J21DB9 MALE (DTE)DB-9 Connector (Male)609-1481-ND
J31Conn_02x08Pin Header 2×8
J41DCD SelectPin Header 1×3
R111MResistorC103906
U1, U22MAX232RS-232 Driver/ReceiverC59824
U3174HC138Decoder SOIC-16C5602
U416551ACIA DIP-28
Y111.8432 MHzCrystal

Sound Card

ReferenceQtyValueDescriptionLCSCDigiKey
C1, C222.2nFUnpolarized CapacitorC28260
C3, C52100nFUnpolarized CapacitorC49678
C411uFUnpolarized CapacitorC28323
J21VDDJST XH 1×2
J31AUDIORCA ConnectorPJRAN1X1U02X
J51Conn_02x08Pin Header 2×8
R111kResistorC17513
U116581SID Chip DIP-28
U2174HC138Decoder SOIC-16C5602

Storage Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized CapacitorC49678
D11LEDActivity LED 0805C2297
J21Conn_02x08Pin Header 2×8
J31Compact FlashCompactFlash ConnectorC444350
J41ACT LEDJST XH 1×2
R1–R441kResistorC17513
R5, R62330ResistorC17630
U1174HC00Quad NAND SOIC-14C5586
U2174HC138Decoder SOIC-16C5602

Storage Card Pro

ReferenceQtyValueDescriptionLCSCDigiKey
C1–C4, C7, C86100nFUnpolarized CapacitorC49678
C5, C6222pFDisc CapacitorC107114
C9, C1021uFUnpolarized CapacitorC28323
D11LEDActivity LED 0805C2297
J11ACT LEDJST XH 1×2
J31SPIPin Header 1×6
J41SD CARDSD Card ConnectorC569097
J51Conn_02x08Pin Header 2×8
R1, R22330ResistorC17630
R3, R421kResistorC17513
U11TXS0108EPWLevel Shifter TSSOP-20C17206
U21ATmega328MCU DIP-28
U31W25Q128JVSFlash Memory SOIC-8C97521
U4174HC138Decoder SOIC-16C5602
U51LP2985-3.3LDO Regulator 3.3V SOT-23-5C95414
Y1116 MHzCrystal3155-16M20P2/49US-ND

VERA Helper

ReferenceQtyValueDescriptionDigiKey
C1, C22100nFDisc Capacitor
D11Schottky DiodeSchottky Diode DO-35
J116502 BusBus Connector 2×20
J21VERA ModulePin Header 2×12
J31Audio LRCA ConnectorPJRAN1X1U02X
J41Audio RRCA ConnectorPJRAN1X1U03X
J51INT SelectPin Header 1×3
J61Conn_02x08Pin Header 2×8
U1, U2274HC138Decoder DIP-16

VGA Card

ReferenceQtyValueDescriptionLCSC
C1, C22100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21INT SelectPin Header 1×3
J31Conn_02x08Pin Header 2×8
U11Pico9918AVDP Module DIP-40
U2, U3274HC138Decoder SOIC-16C5602

VGA Card Pro

ReferenceQtyValueDescriptionLCSC
C1–C66100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
J21VGADB-15 VGA Connector (Female)
J31INT SelectPin Header 1×3
J41Conn_02x08Pin Header 2×8
Q11BSS138N-Channel MOSFET SOT-23C78284
R1, R2, R4, R741kResistorC17513
R3, R622.2kResistorC17520
R5, R82470ResistorC17710
R91820ResistorC17837
R101390ResistorC17655
R11, R12222ResistorC17561
U11SN74LVC4245APWROctal Bus Transceiver TSSOP-24C7859
U2174LVC245Octal Bus Transceiver TSSOP-20C6082
U31Raspberry Pi PicoMCU Module
U4174HC138Decoder SOIC-16C5602
U5174LVC138Decoder SOIC-16C6061

Video Card

ReferenceQtyValueDescriptionLCSCMouserDigiKey
C1, C2232pFDisc CapacitorC107114
C3–C108100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
FB11BLM41PG600SN1LFerrite Bead 1806C85844
J11INT SelectPin Header 1×3
J31Conn_02x08Pin Header 2×8
J41VIDEORCA ConnectorPJRAN1X1U04X
Q112N4401NPN BJT TO-92
R11470ResistorC17710
R2175ResistorC17820
U11TMS9918AVDP DIP-40
U2, U5, U6374HCT5748-bit Register SOIC-20C6001
U3, U4274HC138Decoder SOIC-16C5602
U71AS6C62256SRAM DIP-28
U8174HCT04Hex Inverter SO-14C672096
Y1110.738635 MHzCrystal774-MP107-E

Video Card Pro

ReferenceQtyValueDescriptionLCSCMouserDigiKey
C1, C2220pFDisc CapacitorC105173
C3–C108100nFUnpolarized CapacitorC49678
D11Schottky DiodeSchottky Diode DO-35
FB11BLM41PG600SN1LFerrite Bead 1806C85844
J11VIDEORCA ConnectorPJRAN1X1U04X
J21SERIALPin Header 1×4
J31INT SelectPin Header 1×3
J51Conn_02x08Pin Header 2×8
Q112N4401NPN BJT TO-92
R1, R224.7kResistor
R31470ResistorC17710
R4175ResistorC17820
R511kResistor
U1, U4274HC157Quad 2-to-1 Mux SOIC-16C6823
U2, U5274HC166Shift Register SOIC-16C473363
U31ATmega1284-PMCU DIP-40
U6174HC138Decoder SOIC-16C5602
VR1, VR2210kPotentiometer
Y1114.31818 MHzCrystal774-MP107-E

Purchase

I have a few PCBs available on Tindie for those interested in building their own AC6502 system without ordering from a fab directly.

I sell on Tindie

License

Hardware designs are released under the CERN Open Hardware Licence Version 2 – Permissive.
Firmware is released under the MIT License — KEH Controller, PS2 Keyboard Controller, STP Controller.

About

6502-COB 8-Bit Retro Computer Project

Resources

Stars

47 stars

Watchers

2 watching

Forks

Used by

Contributors

Languages