Skip to the content
4 layers85.1 × 100 mmPort2-sdcard interface, the printed circuit board in 3D

Port2-sdcard interface

ifilot/p2000t-sdcard3

SD-card cartridge for the P2000T

Size
85.1 × 100 mm
Copper layers
4
Thickness
1.6 mm
Parts
65
Nets
128
Pads
468
Tracks, vias
1,750, 205
Pours
3
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
17 Mar 2024
Updated
5 Jun 2026

Overview

Port2-sdcard interface is an open-source printed circuit board by ifilot, from the ifilot/p2000t-sdcard repository on GitHub. It is a 4-layer board of 85.1 × 100 mm with 65 parts on 128 nets, routed with 1,750 tracks and 205 vias.

It is built around the 74LVC125AD, 74HC00D and 74HC138, with the 74HC273D, 74HC32D and 74HC74D among its other parts. Its parts include 23 capacitors, 21 ICs, 11 resistors, 4 diodes and 2 connectors. It belongs with the retro computing and games and interfaces and adapters boards of this library.

Main components

12

README

README.md

P2000T SD-CARD cartridge

GitHub tag (latest SemVer) build License: GPL v3 License: CC-BY-SA v4 discord

Table of contents

[!TIP] Have questions or comments about the P2000T SD-card cartridge? Join the conversation and chat with the developers on our Discord server.

YouTube

Check out the YouTube video below for a detailed review of the SD-card cartridge.

YouTube

Purpose

Perhaps the most elegant solution for loading CAS files into your P2000T or making backups of your tapes is via a cartridge that hosts an SD-card slot. Even the smallest SD-cards have enough capacity to store the complete P2000T tape archive. Reading from such an SD-card is non-trivial and requires both a hardware solution to interface with the I/O port of the P2000T as well as a software solution to navigate through the files hosted on a FAT32 partition. This repository contains the PCB for interfacing a P2000T with an SD-card and the necessary software routines to grab .CAS files from said SD card and load them into memory.

[!TIP] Documentation

  • Detailed documentation included how-to procedures can be found here
  • There is also a manual in Dutch Dutch flag available.

Downloads

Read the section "How it functions" to understand what each download file does.

[!WARNING] The files shown here cater specifically to PCB version 6 or later where the SD-card listens to I/O port 0x4X. Earlier version of the PCB are no longer actively maintained.

[!TIP]

  • Precompiled SD-card images, including flashing instructions, can be found here
  • A list of PRG programs, specifically designed to operate with the SD-card cartridge, can be found here

How it functions

To interface with the SD-card, an SD-card slot is connected to the I/O port of the P2000T. Interfacing with the SD-card proceeds via the SPI protocol which is encoded in hardware (in contrast to bit-banging the protocol in software). From the perspective of the P2000T, simple 1-byte instructions can be sent and retrieved from the SD-card. By sending specific commands, data is sent or retrieved from the SD-card.

While the SLOT2 cartridge (which hooks up to the I/O port of the P2000T) hosts the circuitry to interface with the SD-card, a SLOT1 cartridge is required that hosts the software. In order to run BASIC programs that are stored on the SD-card as .CAS files, the regular BASIC environment and the required routines to interface with the SD-card need to be present in memory. For this reason, a modified version of the BASIC environment is used which upon boot will load a launcher application from the ROM chip on the SLOT2 cartridge into main memory. This launcher application allows the user to navigate the SD-card and load BASIC programs into memory and run these. Detailed instructions on this process are found here.

The launcher application needs to be placed on the ROM chip by means of a flasher program. The flasher program is a different SLOT1 cartridge which can be downloaded from the download section. The flasher program will copy a LAUNCHER.BIN file from the root folder of the SD-card to the ROM chip on the SLOT2 cartridge. This procedure is also used to update the launcher application. Details on this process can be found here.

It is also possible to make copies of existing tapes to the SD-card. For this purpose, a CASDUMP.PRG program is written. These special types of programs can be loaded from the SD-card and executes via the launcher application. After completion, one automatically returns to the launcher, allowing one to load one of the freshly copied programs.

Images

SLOT2 cartridge enclosure and populated PCB. Image of cartridge and PCB

Screenshots of navigation and execution of .CAS files. Image of cartridge and PCB

Commands

Upon booting into the LAUNCHER application, the user interfaces with the SD-card using a set of short commands. Below, the list of commands is provided

CommandDescription
lsList contents of current folder
lscasList contents of current folder, listing contents of CAS files
cd <number>Change directory
run <number>Run .CAS file
hexdump <number>Performs a 120-byte hexdump of a file
fileinfo <number>Provides location details of a file
ledtestPerforms a quick test on the read/write LEDs
stackShow current position of the stack pointer
dump<XXXX>Perform a 120-byte hexdump of main memory starting at 0xXXXX
romdump<XXXX>Perform a 120-byte hexdump of cartridge ROM starting at 0xXXXX
ramdump<XXXX>Perform a 120-byte hexdump of cartridge RAM starting at 0xXXXX

Note that <number> needs to replaced with the specific number of a file. Users who are familiar with command line interfaces are probably used to specifying filenames rather than numbers. This reason this approach was chosen is mainly because it is simpler to program and furthermore a bit quicker to type.

Compilation instructions

Compilation is done using the z88dk Docker by means of compile.sh. To compile the launcher, run

bash
cd src
./compile launcher

and for the flasher utility

bash
cd src
./compile flasher

Repository contents

Building the hardware

Gerber files

To create your own SLOT2 cartridge, download the GERBER files from here, put them in a .ZIP file and send them to your favorite PCB print farm. The author of this repository mainly uses JLCPCB, but plenty of alternatives are available. The SLOT2 PCB has four layers. It is recommended to apply an ENIG (gold) coating and chamfer the edge connector for facile insertion into the P2000T. After ordering, one needs to either hand-solder the components (which can be tricky for the SMD chips) or alternatively make use of an assembly service by which the PCB print farm will solder these components for you.

PCB assembly service

The folder pcb/port2-sdcard-interface contains port2-sdcard-interface_bom_bot.csv and port2-sdcard-interface-bottom-pos.csv which can be used for the JLCPCB assembly service. An example of the part placement can be found in the image below. At the time of writing, two components were unavailable, being the memory chip 62128 and a 0 ohm resistor, which is the reason that these two parts are missing. Note that all through-hole parts, e.g. LEDs, oscillator and PLCC32 socket, have to be hand-soldered in.

img PCB assembly

Ordering a cartridge

It is also possible to order a cartridge (typically there are always a few of them in stock). If you are interested, feel free to contact the author of this repository at ivo at ivofilot dot nl to discuss pricing and shipping.

Internal SD-card board

This project also includes an internal SD-card board designed to mount on top of the main baseboard inside the P2000T. In addition to the SD-card reader functionality, the board also provides 64 KiB of additional memory, making it an all-in-one solution.

To install this board, you will need two custom brackets. You can find the necessary bracket files here.

internal SD-card board

Formatting SD-card

The way that the SD-card is formatted is critical. The SD-card needs be formatted using a MBR/FAT32 partition. Often, directly formatting the SD-card via Windows Explorer or similar works well, but sometimes a more rigorous procedure is needed, which is explained below.

  1. Type WINDOWS + R and run CMD.
  2. Run diskpart.
  3. Type list disk followed by select disk <NR> where <NR> corresponds to your SD-card.
  4. Type clean. You get a response with DiskPart succeeded in cleaning the disk..
  5. Type list volume, followed by select volume <ID> where <ID> corresponds to your SD-card drive.
  6. Type convert mbr. You should get the response DiskPart successfully converted the selected disk to MBR format..
  7. Type create partition primary. The response should be DiskPart succeeded in creating the specified partition..
  8. Finally, type format fs=fat32 quick label="P2000T", after which the response is DiskPart successfully formatted the volume..

Your SD-card should now be ready to work in the SD-cartridge. Of course, you still need to copy files to it in order to load something of it.

License

License facts

Parts

65
QtyValueFootprintReferences
200.1uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C2, C3, C4, C5, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C22 +4
43.3kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR8, R9, R10, R11
374HC00Package_SO:SO-14_3.9x8.65mm_P1.27mmU2, U4, U14
210kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR3, R4
222pFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC20, C21
2560Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R7
274HC138Package_SO:SOIC-16_3.9x9.9mm_P1.27mmU6, U17
274HC273Package_SO:SOIC-20W_7.5x12.8mm_P1.27mmU8, U11
274HC32Package_SO:SO-14_3.9x8.65mm_P1.27mmU9, U10
274HC74Package_SO:SO-14_3.9x8.65mm_P1.27mmU3, U18
1 CY62128ELL-45SXIPackage_SO:SSOP-32_11.305x20.495mm_P1.27mmU1
10Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2
1100uFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC23
116MHzOscillator:Oscillator_DIP-14X1
1180Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR6
11kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR5
174HC02Package_SO:SO-14_3.9x8.65mm_P1.27mmU19
174HC123Package_SO:SOIC-16_3.9x9.9mm_P1.27mmU7
174HC163Package_SO:SOIC-16_3.9x9.9mm_P1.27mmU5
174HC165Package_SO:SOIC-16_3.9x9.9mm_P1.27mmU12
174HC595Package_SO:SOIC-16_3.9x9.9mm_P1.27mmU13
174HC85Package_SO:SOIC-16_3.9x9.9mm_P1.27mmU20
174LVC125Package_SO:TSSOP-14_4.4x5mm_P0.65mmU21
1ACTLED_THT:LED_D5.0mmD2
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U16
1LOGOcomponents:qrcodeG002
1LOGOcomponents:philips_logoG003
1LOGOcomponents:sdcard_logoG004
1Micro_SD_Card_Det1components:CONN9_MSD-1_CUDJ1
1P2000T Port 2components:p2000t_cartridge_edgeJ2
1READLED_THT:LED_D5.0mmD3
1SELLED_THT:LED_D5.0mmD1
1SST39SF010Package_LCC:PLCC-32_THT-SocketU15
1WRITELED_THT:LED_D5.0mmD4

More from ifilot/p2000t-sdcard

2
  • 2 layers82.6 × 67.3 mmSdcard prototype, the printed circuit board in 3D

    Sdcard prototype

    ifilot/p2000t-sdcard

    SD-card cartridge for the P2000T

    43 parts3

Similar boards

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

    Micro

    jurendono/VMC

    A Versitile 6502 Based Microcomputer

    235 parts
  • 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 layers297 × 210 mmCpu, the printed circuit board in 3D

    Cpu

    tetrix450/masic-cpu

    MASIC CPU schematics and PCB

    197 partsMIT
  • 2 layers299.7 × 198.1 mmCisc-8, the printed circuit board in 3D

    Cisc-8

    nailed-barnacle/Cisc-8-ttl-processor

    A cut-down version of the 8080 processor using HCTTL and including a discrete ALU and instruction decoder

    319 parts1MIT
  • 4 layers188 × 128.3 mmZAK180, the printed circuit board in 3D

    ZAK180

    agkaminski/ZAK180

    DIY all-in-keyboard computer featuring Z180 and floppy drive

    140 parts
  • 2 layers234 × 100 mmV2b, the printed circuit board in 3D

    V2b

    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.

    147 parts
  • 2 layers177.8 × 130.8 mmDurango, the printed circuit board in 3D

    Durango

    zuiko21/minimOS

    Scalable OS for 6502/65816

    159 parts23MIT

Questions

How big is the Port2-sdcard interface PCB?

It measures 85.1 × 100 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Port2-sdcard interface use?

65 parts, built around the 74LVC125AD, 74HC00D, 74HC138 and 74HC273D. 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 Port2-sdcard interface KiCad files?

From the ifilot/p2000t-sdcard repository on GitHub, at the commit this page was made from: the board is pcb/port2-sdcard-interface/port2-sdcard-interface.kicad_pcb and its schematic pcb/internal-sdcard-interface/internal-sdcard-interface.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Port2-sdcard interface design in my own project?

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