Skip to the content
2 layers135 × 100 mmLED Matrix, the printed circuit board in 3D

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

Size
135 × 100 mm
Copper layers
2
Thickness
1.6 mm
Parts
147
Nets
189
Pads
521
Tracks, vias
1,470, 143
Pours
1
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
20 Oct 2023
Updated
12 Feb 2024

Overview

LED Matrix is an open-source printed circuit board by cyrillvalentini, from the cyrillvalentini/SAP-Extended repository on GitHub. It is a 2-layer board of 135 × 100 mm with 147 parts on 189 nets, routed with 1,470 tracks and 143 vias.

It is built around the 74HC273D, 74HC02 and 74HC04D. Its parts include 65 resistors, 64 diodes, 12 ICs, 1 connector and 1 switch. It belongs with the lEDs and displays boards of this library.

Main components

3

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

147
QtyValueFootprintReferences
64470Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR1, R2, R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23 +48
64LEDLED_THT:LED_D5.0mmD1, D2, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23 +48
874HC273Package_SO:TSSOP-20_4.4x6.5mm_P0.65mmU7, U8, U9, U10, U11, U12, U13, U14
274HC02Package_SO:TSSOP-14_4.4x5mm_P0.65mmU2, U3
110KResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR65
174HC04Package_SO:TSSOP-14_4.4x5mm_P0.65mmU1
174LS138Package_SO:TSSOP-16_4.4x5mm_P0.65mmU4
1DC37_ReceptacleConnector_Dsub:DSUB-37_Female_Horizontal_P2.77x2.84mm_EdgePinOffset9.90mm_Housed_MountingHolesOffset11.32mmJ1
1SW_DIP_ENABLE-REGButton_Switch_THT:SW_DIP_SPSTx01_Slide_9.78x4.72mm_W7.62mm_P2.54mmSW1

The 143 most common of 147 parts.

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 layers218.4 × 74.9 mmManual programmer, the printed circuit board in 3D

    Manual programmer

    cyrillvalentini/SAP-Extended

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

    81 parts1

Similar boards

  • 2 layers100 × 100 mm1802-Mini SPI DMA, the printed circuit board in 3D

    1802-Mini SPI DMA

    arhefner/1802-Mini-SPI-DMA

    SPI Expansion Board for the 1802/Mini Computer

    44 parts2MIT
  • 2 layers117.5 × 99.7 mmVGA, the printed circuit board in 3D

    VGA

    cherry-takuan/NLP_VGA

    VGA board for NLP-16A

    72 parts
  • 2 layers80 × 100 mmP2000t slot2-datacartridge, the printed circuit board in 3D

    P2000t slot2-datacartridge

    ifilot/p2000t-tape-monitor

    P2000T cartridge software for reading out tapes and copying them to external rom chip

    28 parts
  • 2 layers200 × 150 mmMicro, the printed circuit board in 3D

    Micro

    jurendono/VMC

    A Versitile 6502 Based Microcomputer

    235 parts
  • 2 layers80.8 × 60.1 mmRam board, the printed circuit board in 3D

    Ram board

    jfoucher/planck-6502

    This is a mirror of https://gitlab.com/planck-6502/planck-6502

    17 parts2
  • 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

Questions

How big is the LED Matrix PCB?

It measures 135 × 100 mm and has 2 copper layers, 1.6 mm thick.

What parts does the LED Matrix use?

147 parts, built around the 74HC273D, 74HC02 and 74HC04D. 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 LED Matrix KiCad files?

From the cyrillvalentini/SAP-Extended repository on GitHub, at the commit this page was made from: the board is expansions/LED-Matrix (simplified)/LED-Matrix.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 LED Matrix design in my own project?

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