Skip to the content
2 layersM100 expander proto, the printed circuit board in 3D

Just me prototyping an expansion for TRS-80 Model 100

Copper layers
2
Thickness
1.6 mm
Parts
2
Nets
54
Pads
84
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 5 (file 20171130)
Created
30 Sep 2020
Updated
3 Oct 2020

Overview

M100 expander proto is an open-source printed circuit board by KP1533TM2, from the KP1533TM2/m100_expander_proto repository on GitHub. It is a 2-layer board with 2 parts on 54 nets.

Its parts include 1 IC and 1 connector. It belongs with the FPGA and CPLD boards of this library.

README

README.md

TRS-80 Model 100 RAM expander and SPI peripheral (prototype)

Just me prototyping an expansion for TRS-80 Model 100.

Some barebones documentation

Hardware

My current "hardware platform" is made out of:

  • Altera EPM3064ALC-44 CPLD
  • LM1117-ADJ for CPLD 3.3V power supply
  • Winbond W24512A 64k SRAM
  • 74HC373 for external address latch (8085 has lower address bus multiplexed with data bus)
  • Eon 25F80 SPI Flash ROM (1 megabyte), socketable DIP package

MAX3000A CPLD is quite power-hungry, drawing atleast 20mA when empty and idle, so I'm considering Xilinx CoolRunner (or CoolRunner2+lever translator IC).

There's no rhyme or reason with the choice of components above, I just threw together a prototype out of reasonable enough parts that I have on hand.

Device takes up "system bus" socket only, however it takes over option ROM duties, so the option ROM socket shouldn't be used.

todo: pics

todo: schematic

I/O ports

CPLD implements SPI peripheral, address decoding and basic memory mapping. A few I/O registers are implemented in CPLD to control the operation:

AddressAccessDescription
0xE0...0xEFWDuplicates bit 0 of builtin M100 register of the same address range in order to page in Option "ROM".
0x70RDummy register, maybe put a version or ID in there or remove it entirely in the future.
0x71RWSPI CS register. Only bit 0 available at the moment, for selecting SPI flash ROM. Other bits read 0.
0x72RWSPI data register. Causes transaction when written to, sends written byte over SPI, reads a byte received by SPI in the last transaction
0x73RWShadow RAM/"Option ROM" access control register. Bit 0 allows writing to ROM addresses while system ROM is active. Other bits read 0.

All power-on/reset default values are 0, unless otherwise specified.

Option ROM loading algorithm

  • Normal operation, system ROM is active
  • Write 0x01 to I/O 0x73 maps lower RAM writes into system ROM area
  • 0x8000 bytes of SPI flash are read at specified address and writted to system ROM area
  • Write 0x00 to I/O 0x73 - lower RAM becomes read-only again
  • Lower RAM would then substitute system ROM as an option ROM normally

There's a distant probability that, since device duplicates internal option ROM switch register instead of using internal one, they might disagree and cause contention. But more likely than anything, it would be because option ROM circuitry might be already damaged in either the computer or the device.

ROM loader

There's a VirtualT IDE project that contains a small assembly routine to copy option ROMs programmed into SPI flash into RAM.

  • Assemble it, generate BASIC loader, put it on real M100;
  • Run it, follow up with CLEAR statement;
  • CALL58240,<# of ROM image from 0 to 31>;
  • After Ok, restart it (to let system probe for option ROM successfully);
  • Go to BASIC again, then CALL 63012 as with normal option ROM

ROM images should be programmed in externally with a programmer at the moment, consecutively starting at address 0:

  • ROM image 0 -> 0x000000 - 0x007fff
  • ROM image 1 -> 0x008000 - 0x00ffff
  • ROM image 2 -> 0x010000 - 0x017fff
  • etc etc...

Problems

  • Battery-backed RAM still corrupts itself after power-on, not during restart/reset though - might need pullups or has something to do with MAX3000A power sequencing

Solved by wiring *Ⓐ signal (system bus pin 16) to SRAM CE2 - SRAM effectively becomes active only when CPU is active. Also added 10k pulldown resistor for good measure.

Parts

2
QtyValueFootprintReferences
1EPM3064Axx-44Package_QFP:TQFP-44_10x10mm_P0.8mmU1
1M100 System BusPackage_DIP:DIP-40_W15.24mm_SocketJ1

Similar boards

  • 2 layers37 × 19 mmPassive rpi hub75-adapter, the printed circuit board in 3D

    Passive rpi hub75-adapter

    hzeller/rpi-rgb-led-matrix

    Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO

    2 parts4.4kGPL-2.0
  • 2 layersDiode template, the printed circuit board in 3D

    Diode template

    adamws/kicad-kbplacer

    KiCad plugin for automatic keyboard's key placement and routing

    2 parts547GPL-3.0
  • 2 layers20.3 × 15.2 mmL0 button, the printed circuit board in 3D

    L0 button

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    2 parts546MIT
  • 2 layers35.1 × 46.8 mmSDEX2M2 Breakout Board, the printed circuit board in 3D

    SDEX2M2 Breakout Board

    NVNTLabs/switch2-SDEX2M2

    Micro SD Express to M.2 NVME Adapter for Nintendo Switch 2

    2 parts542GPL-3.0
  • 2 layers59.3 × 36.6 mmExpansionBoardTemplate, the printed circuit board in 3D

    ExpansionBoardTemplate

    BlueSCSI/BlueSCSI-v2

    BlueSCSI v2/Ultra - an open source, open hardware, SCSI emulator using the Pi Pico PR2040 and Pico 2 RP2350

    2 parts459GPL-3.0
  • 2 layersAlpha.9mm.wire, the printed circuit board in 3D

    Alpha.9mm.wire

    ohmtech-rdi/eurorack-blocks

    Software to Hardware Prototyping for Eurorack using C++, Max/Gen~ or Faust

    2 parts410
  • 2 layers26.7 × 64 mmGpu power, the printed circuit board in 3D

    Gpu power

    dennisss/dacha

    Monorepo for awesome tools/projects/libraries

    2 parts397Apache-2.0

Questions

What parts does the M100 expander proto use?

2 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 M100 expander proto KiCad files?

From the KP1533TM2/m100_expander_proto repository on GitHub, at the commit this page was made from: the board is hw/main/main.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the M100 expander proto design in my own project?

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