Skip to the content
2 layers218.4 × 74.9 mmManual programmer, the printed circuit board in 3D

Extended Simple-As-Possible Computer based on Ben Eaters video series

Size
218.4 × 74.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
81
Nets
62
Pads
237
Tracks, vias
409, 33
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
20 Oct 2023
Updated
12 Feb 2024

Overview

Manual programmer is an open-source printed circuit board by cyrillvalentini, from the cyrillvalentini/SAP-Extended repository on GitHub. It is a 2-layer board of 218.4 × 74.9 mm with 81 parts on 62 nets, routed with 409 tracks and 33 vias.

Its parts include 49 resistors, 24 diodes, 6 switches and 1 connector. It belongs with the interfaces and adapters boards of this library.

README

README.md

SAP-Extended

Simple-As-Possible Computer based on Ben Eaters video series.

Project

As part of my matura project, I planned and build an 8-Bit computer based around the design from Ben Eater. This repository contains the schematics, design files and instructions for the computer. alt text

Breadboard-computer

The breadboard variant is heavily inspired by the computer made by Ben Eater. In the first phase I build computer, which is functionally similar to his design, while occasionally using different parts which were either already on hand or made the process of expanding easier in the future. After a successful test run, I started to expand the design. To allow for longer programs I expanded the RAM to allow 8-Bit addresses and 7-Bit instructions. This allows for a maximum length of 256 instructions. In order to make these changes different modules had to be expanded as well. The other major difference is the expansion port, which allows expansion cards to be created for the computer. The signals are handled by an additional EEPROM-chip within the control logic.

alt text Simplified diagram of the changes made to the architecture.

Schematics and PCB

After building the breadboard variant, I started working on a PCB version. Being the first larger design, there are some power related issues and some missing filtering components which prevent the computer from running completely. In addition to the breadboard version this design includes a 7-segment display as well as additional power input options. There is an integrated buck converter and an USB Type C port which can supply 5V 3A using PD.

The schematics and PCB were created using KiCad 7.

alt text

Usage

alt text

Programming the computer

To set the computer to programming mode, the clock switch must first be set to manual. The LED should then stop flashing. It is then advisable to press the RESET button once to clear all registers. To be able to program the computer, the programmer must also be plugged in and the RUN/PROGRAM switch must be set to PROGRAM.

Now the actual programming can begin. First, the desired address must be set; without jump commands, these are iterated through in ascending order. In this case, the first command can be saved in the address 00000001. This is followed by the actual command, which can also be entered using the DIP switches. Finally, if the command requires it, the address to be accessed by the command can be entered under "DATA". Once the entire command has been typed in, the "FLASH" button can be pressed. The command should then be displayed in RAM. It is important that the address 00000000 is empty and is not used, as the computer does not always read in the first command after resetting.

Examples

RAM-addressadding two numbersshow input in output-register
0000 00010000 0001 0000 1000 (LDA)0000 1010 0000 0000 (INA)
0000 00100000 0011 0001 0000 (ADD)0000 0101 0000 0000 (OUT)
0000 00110000 0101 0000 0000 (OUT)0000 0110 0000 0001 (JMP)
0000 01000000 1100 0000 0000 (HLT)
...
0000 01000000 0000 0000 0011 (3)
...
0000 01000000 0000 0000 0001 (1)

Run a program

To start the program, the switch must be set to RUN. As soon as this has been done, the program can be started either manually by using the button or by switching to automatic mode. For the I/O, it should be noted that the switch next to the display can be used to switch the decimal output between unsigned binary and two's complement. In addition, the input register deletes its contents after use or can be deleted manually using the button next to it. The commands can be found here

Microcode

The control logic is build using AT28C64B parallel EEPROMs, which need to be programmed. The binary file was created using the txt2bin.py python script. The microcode can conveniently be changed as a text file and converted back into a binary image.

The microcode can be flashed to the EEPROMs using crmaykish's Arduino Mega EEPROM programmer. After hooking everything up as described in the documentation, the EEPROMs can be flashed with their corresponding firmware using following command:

python.exe .\at28c_programmer.py -d <port> -o 0 -f <microcode.bin> -l 8192 -w

Programming port

The modular programming interface allows to use different programmers to load the program into RAM. As of now, there is only a manual programmer that can be used, automatic variants are planned. The interface connects the programmer with a set of multiplexer, which can be controlled using the corresponding switch. By switching to programming mode, the RAM-address as well as the data pins are connected with the pins in the port, which can be accessed by the programmer. There is an additional flash-signal which is hooked up to the write input of the RAM-chips. The full specs of the pins can be found here.

Note that for entering the programming mode successfully the clock must be set to manual in order to function correctly.

Expansions

To allow for future expansion both versions of the computer have an expansion port controlled by a dedicated EEPROM within the control logic. There are 16 individual instructions present in the microcode, which can be used to interact with the expansion. The full specifications can be found here.

8x8 LED-matrix

As of now, the LED-matrix expansion is still in a prototyping phase. Once finished this expansion will allow to display simple graphics which can be copied row by row from either the RAM or the A-register. Combined with the input buttons this will allow the development of simple games, which can be run on the computer.

alt text Unfinished prototype of the 8x8 led-matrix

Planed expansions

  • ALU expansion to allow for additional operations (e.g. logic operations)
  • LCD character display
  • Automatic programmer

Parts

81
QtyValueFootprintReferences
2410KResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR1, R2, R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23 +8
24470Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR25, R26, R27, R28, R29, R30, R31, R32, R33, R34, R35, R36, R37, R38, R39, R40 +8
24LEDLED_THT:LED_D5.0mmD1, D2, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23 +8
6SW_DIP_x04Button_Switch_THT:SW_DIP_SPSTx04_Slide_9.78x12.34mm_W7.62mm_P2.54mmSW1, SW2, SW3, SW4, SW5, SW6
11KResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR49
1DB37_Female_MountingHolesConnector_Dsub:DSUB-37_Female_Horizontal_P2.77x2.84mm_EdgePinOffset7.70mm_Housed_MountingHolesOffset9.12mmJ1
1SW_PushButton_Switch_THT:SW_PUSH_6mmFLASH1

More from cyrillvalentini/SAP-Extended

2
  • 2 layers300 × 300 mmSAP Extended, the printed circuit board in 3D

    SAP Extended

    cyrillvalentini/SAP-Extended

    Extended Simple-As-Possible Computer based on Ben Eaters video series

    440 parts1
  • 2 layers135 × 100 mmLED Matrix, the printed circuit board in 3D

    LED Matrix

    cyrillvalentini/SAP-Extended

    Extended Simple-As-Possible Computer based on Ben Eaters video series

    147 parts1

Similar boards

  • 2 layers162.9 × 178.9 mmAMPCD, the printed circuit board in 3D

    AMPCD

    jrsteensen/OpenHornet

    OpenHornet 1:1 F/A-18C Simulator Repository

    81 parts431
  • 2 layers177.2 × 114.3 mm8-Bit CPU 32k, the printed circuit board in 3D

    8-Bit CPU 32k

    slu4coder/Minimal-UART-Computer-1-2

    Legacy: Version 1 and 2 of my TTL-only CPU featuring UART I/O, an expansion port, 512KB SSD at up to 10MHz clock speed

    81 parts184
  • 2 layersEdrumulus, the printed circuit board in 3D

    Edrumulus

    corrados/edrumulus

    Open Source E-Drum Trigger Module

    81 parts163GPL-2.0
  • 2 layers64 × 55 mmZynthiandac bk2, the printed circuit board in 3D

    Zynthiandac bk2

    zynthian/zynthian-hw

    Zynthian hardware stuff: PCBs, schemes, parts specifications, pin assignment, ...

    81 parts156
  • 2 layersBD0027, the printed circuit board in 3D

    BD0027

    schlae/VapeRE

    Reverse engineered disposable v a p e boards

    81 parts136
  • 2 layers41.9 × 62.8 mmColumn, the printed circuit board in 3D

    Column

    AlaaSaadAbdo/Rommana

    A 30 key well powered by Xiao BLE

    81 parts105
  • 2 layers38.6 × 38.6 mmIotLedDriver, the printed circuit board in 3D

    IotLedDriver

    BerkeleyHCI/PolymorphicBlocks

    A Python-based hardware description language for PCBs for higher-level (block-diagram / system-architecture level) PCB design through libraries of directly reusable subcircuit generators.

    81 parts94BSD-3-Clause
  • 2 layers98.5 × 45.4 mmIdawgz32, the printed circuit board in 3D

    Idawgz32

    ChrisChrisLoLo/idawgz32

    A full 32 key mechanical keyboard that can be made for only $5

    81 parts77GPL-3.0

Questions

How big is the Manual programmer PCB?

It measures 218.4 × 74.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Manual programmer use?

81 parts. 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 Manual programmer KiCad files?

From the cyrillvalentini/SAP-Extended repository on GitHub, at the commit this page was made from: the board is expansions/manual-programmer/manual-programmer.kicad_pcb and its schematic expansions/LED-Matrix (simplified)/LED-Matrix.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Manual programmer design in my own project?

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