Skip to the content
2 layers6502-schematic, the printed circuit board in 3D

A 6502-based computer project! Explore the docs » View Demo Programs · Report Bug · Request Feature

Copper layers
2
Thickness
1.6 mm
Parts
57
Nets
191
Pads
510
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 9.0 (file 20241229)
Created
5 Sep 2023
Updated
16 Aug 2025

Overview

6502-schematic is an open-source printed circuit board by lolakkalol, from the lolakkalol/6502-computer-project repository on GitHub. It is a 2-layer board with 57 parts on 191 nets.

It is built around the SC16C752BIB48, SN74LVC4245APW and 74AHCT1G32GV, with the 74HC14, 74HCT00D and AT28C64B-15PU among its other parts. Its parts include 29 resistors, 14 ICs, 9 connectors, 2 crystals and 1 capacitor. It belongs with the retro computing and games boards and the RP2040 boards of this library.

Main components

7

README

README.md

[blocked]

Contributors Forks Stargazers Issues


Logo

6502 Computer Project

A 6502-based computer project!
Explore the docs »

View Demo Programs · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Product Name Screen Shot

This project started thanks to Ben Eater's video series on his 6502-based computer, which is the basis for my project and learning experience. The project has a very simple goal of me learning low-level embedded system development on hardware and software. To achieve this learning goal, a few project goals/milestones have been set up to steer the project in a satisfactory direction. The computer should also not be a carbon copy of Ben Eater's computer to promote self-learning and delving into documentation and learning by doing. I believe you remember things better when you fail at something and, in the end, solve the problems that made you fail.

Goals

These goals aim to create a 6502-based computer on a single PCB that can be expanded with modules later on.

  • Learn "low-level" embedded computer architecture basics
    • Both hardware and software
  • Build a 6502-based computer on a PCB which shall:
    • Be expandable, meaning you can add modules to it later (Some kind of expansion bus)
    • Output text console to a computer screen
    • Handle mouse and keyboard (USB/PS2 either or both)
    • Have serial communication capability
    • Load programs over serial into RAM (Maybe some kind of bootloader?)
    • Flash the program flash over some protocol
    • Some kind of operating system
  • Try and avoid scope creep
  • HAVE FUN!

(back to top)

Built With

These are the currently used programs and frameworks used for building the project, for both software and hardware.

  • CA65, LD65 for assembling, linking and relocating the code.
  • KiCad for designing the computer and its physical layout.
  • GNU Make for automating the build tasks of CC65 and LD65.

(back to top)

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

Installation (Software)

  1. Clone the repository
  2. In 6502-computer-project/programs/<program name>/ simple run make
  3. Flash the EEPROM using your choice of programmer

(back to top)

Usage

This project currently has three different areas: Schematics and KiCad symbols, hardware debugger, and programs, each will be explained below.

Schematics and KiCad symbols

Found in the folder 6502-and-friends and 6502-schematic, here the schematic over the computer, the custom symbols and PCB design can be found.

Hardware debugger

Found, at the moment, in the folder bus-sniffer; this is simply a program for an Arduino Mega2560 sniffing and printing to the console the: Address bus, data buss and control bus. It can also supply its own clock, which can be halted at the press of a button and send single clock pulses to support hardware debugging.

Programs

Found in the folder Programs, contain all the currently constructed programs and a template for creating a new program. Each program comes with its own make file specifying how it is to be built together with throughout commenting. All programs are written in 6502 assembly and most is created according to the specified template.

The template contain the following:

  • main.asm Here is the main code.
  • lib.asm Here, the supporting code should be put, such as sub-routines, following the example sub-routines structure.
  • start.asm holds the start-up code and is already written in the template; it is responsible for initializing memory segments at startup.
  • makefile Specifies how to build and link main.asm, lib.asm and start.asm.
  • target.cfg Specifies the address space, segments, and their location in memory for the linker to us.

(back to top)

Roadmap

There are currently two main roadmaps, one for a Pi estimation program used to get familiar with the 6502 and another for the actual computer project. For the Pi estimation program the computer seen in the current KiCad schematic is used.

Pi estimation

  • IEEE 754 Floating point arithmetic
    • Addition/Subtraction
    • Multiplication
    • Division
    • (To be expanded upon if necessary)
  • LCD printing
  • Convert Floating point numbers to decimal
  • Pi estimation algorithm
    • (To be expanded upon)

6502-based computer

  • Decide desirable features
  • Design schematic
    • Research chips needed
    • Plan address space
    • Create KiCad symbols for chips
    • Route connections between chips
    • (To be expanded upon)
  • Operating system?

See the open issues for a full list of proposed features (and known issues).

(back to top)

Micro documentation

Here a very small condenced documentation can be found only used as a quick reference. The code is often commented so do not forget to look there.

Memory map

image

Floating point routines

The floating point routines are all commented on and explained in the code but have also been planned before implementation using a high-level flowchart in draw.io found below.

Flowchart

Contact

Alexander Stenlund - alexander.stenlund@telia.com

Project Link: https://github.com/lolakkalol/6502-computer-project

(back to top)

Acknowledgments

(back to top)

Parts

57
QtyValueFootprintReferences
14220Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_VerticalR1, R2, R4, R5, R6, R7, R9, R10, R11, R12, R13, R14, R15, R16
41kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_VerticalR18, R21, R24, R28
42kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_VerticalR19, R20, R23, R29
3500Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_VerticalR17, R22, R25
3Conn_01x08Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ4, J6, J9
20Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR26, R27
2Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ7, J8
2Conn_01x05Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ1, J3
2SN74LVC4245APackage_SO:SOIC-24W_7.5x15.4mm_P1.27mmU15, U16
2ecs-2100x6502-and-friends:ECS-2100XY1, Y2
1660Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_VerticalR8
174AHCT1G32Package_TO_SOT_SMD:SOT-23-5_HandSolderingU11
174HC14Package_DIP:CERDIP-14_W7.62mm_SideBrazed_LongPadsU8
174HCT00Package_DIP:DIP-14_W7.62mm_LongPadsU13
1AS6C62256Package_DIP:DIP-28_W15.24mm_LongPadsU4
1AT28C256Package_DIP:DIP-28_W15.24mm_LongPadsU3
1AT28C64B-15PUPackage_DIP:DIP-28_W15.24mm_LongPadsU10
1CCapacitor_THT:C_Disc_D9.0mm_W5.0mm_P10.00mmC1
1CD74HC165EPackage_DIP:DIP-16_W7.62mm_LongPadsU7
1Conn_01x16Connector_PinHeader_2.54mm:PinHeader_1x16_P2.54mm_VerticalJ5
1DDiode_THT:D_5W_P10.16mm_HorizontalD1
1DE15_Plug_HighDensity_MountingHolesConnector_PinHeader_2.54mm:PinHeader_2x08_P2.54mm_VerticalJ2
1Push_ButtonButton_Switch_THT:KSA_Tactile_SPSTB1
1RResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_VerticalR3
1Raspberry PI Pico v16502-and-friends:Raspberry_PI_Pico_SocketU17
1SC16C752BIB48Package_QFP:LQFP-48_7x7mm_P0.5mmU5
1W65C02SPackage_DIP:DIP-40_W15.24mm_LongPadsU1
1W65C22Package_DIP:DIP-40_W15.24mm_LongPadsU2
1~Connector_PinHeader_2.54mm:PinHeader_1x16_P2.54mm_VerticalU6

More from lolakkalol/6502-computer-project

1
  • 2 layers22 × 37 mmSOIC-28-to DIP, the printed circuit board in 3D

    SOIC-28-to DIP

    lolakkalol/6502-computer-project

    A 6502-based computer project! Explore the docs » View Demo Programs · Report Bug · Request Feature

    3 parts

Similar boards

  • 4 layers99.1 × 75.7 mmCircuit tap, the printed circuit board in 3D

    Circuit tap

    gcoonrod/circuit-tap

    Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

    65 partsApache-2.0
  • 2 layers208 × 110 mm8 16 computer 2, the printed circuit board in 3D

    8 16 computer 2

    halfburnttoast/TCPU816-v1

    Version 1.1 of my 8-bit, TTL computer.

    120 parts21
  • 4 layers92 × 99.5 mmGranit, the printed circuit board in 3D

    Granit

    laenzlinger/granit

    Custom carrier board for Raspberry Pi CM4/CM5 — minimal offsite backup appliance with JMS578 USB-to-SATA bridge

    120 parts2CERN-OHL-P-2.0
  • 2 layers81.9 × 99.4 mmZ80badgev2 BACKUP, the printed circuit board in 3D

    Z80badgev2 BACKUP

    12zcab/Z80BadgeV2

    Z80 Badge V2 for GadgetMarket@ HackClub!

    29 parts1
  • 4 layers50 × 75 mmAOS16 Double Buffer, the printed circuit board in 3D

    AOS16 Double Buffer

    AJain9199/AOS16

    Table of Contents About The Project Pictures Technical Details Directory Structure To-Do Acknowledgments

    69 parts1
  • 4 layers173 × 134 mmCha, the printed circuit board in 3D

    Cha

    DocteurPCB/SDAES

    SD to AES project

    117 parts
  • 2 layers58.4 × 40 mmV2a, the printed circuit board in 3D

    V2a

    KITTY-6502/hardware

    the KITTY is a 65c02 homebrew kit microcomputer designed around text mode graphics and cartridge media. It is fully open source, and uses exclusively in-production parts.

    4 parts

Questions

What parts does the 6502-schematic use?

57 parts, built around the SC16C752BIB48, SN74LVC4245APW, 74AHCT1G32GV and 74HC14. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the 6502-schematic KiCad files?

From the lolakkalol/6502-computer-project repository on GitHub, at the commit this page was made from: the board is 6502-schematic/6502-schematic.kicad_pcb and its schematic 6502-schematic/6502-schematic.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the 6502-schematic design in my own project?

Its repository states no licence, so its author keeps all rights: ask lolakkalol before reusing the design.