Skip to the content
2 layers66.9 × 60.4 mmCfadapter, the printed circuit board in 3D

Interfacing a CompactFlash with Zeal 8-bit Computer

Size
66.9 × 60.4 mm
Copper layers
2
Thickness
1.6 mm
Parts
8
Nets
84
Pads
147
Tracks, vias
228, 35
Pours
1
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
28 May 2023
Updated
7 Jul 2025

Overview

Cfadapter is an open-source printed circuit board by Zeal8bit, from the Zeal8bit/Zeal-CompactFlash repository on GitHub, published under the CC0-1.0 licence. It is a 2-layer board of 66.9 × 60.4 mm with 8 parts on 84 nets, routed with 228 tracks and 35 vias.

Its parts include 2 connectors, 1 resistor, 1 IC and 1 diode. It belongs with the retro computing and games boards and the FPGA and CPLD boards of this library.

README

README.md

CompactFlash adapter for Zeal 8-bit Computer

Preview

This repository is part of this Youtube video, check it for more information and explanation about this project.

The goal of this project is to create an adapter for connecting CompactFlash cards to Zeal 8-bit Computer.

This repository includes:

  • An example/driver written in Z80 assembly to communicate with the adapter. It will read the first sector (512 bytes) of the card, show the first two 16-byte line, invert them and write the result back in the CompactFlash. Both 16-byte lines will be printed on screen.
  • A Kicad project for the schematics and PCB board

The output of the example on Zeal 8-bit OS should look like this:

Output

About the connector

As described in the Youtube video, the CompactFlash connector needs to accept cards inserted bottom up. This is because the footprint of the connector is mirrored on the PCB.

Update v1.0.0: the PCB and its connector have been fixed, the card can be connected upside up.

Requirements

To compile this example you will need:

  • bash
  • git (to clone this repo)
  • make
  • Zeal 8-bit OS source code. Only the kernel_headers directory is required, check this repository.
  • z88dk v2.2 (or later). Only its assembler, z80asm, is strictly required. The latest version of z80asm must be used as earlier versions don't have support for MACRO.

To install z88dk, please check out their Github project.

Build

To build the program, define the path to Zeal 8-bit OS, this will let us find the header files used to assemble the example:

text
export ZOS_PATH=/your/path/to/Zeal8bitOS

Then simply use the command:

text
make

After compiling, the folder bin/ should contain the binary readcf.bin. This file can be then loaded to Zeal 8-bit OS through UART thanks to the load command.

The binary can also be embedded within the romdisk that will contain both the OS and a read-only file system. For example:

text
cd $ZOS_PATH
export EXTRA_ROMDISK_FILES="/path/to/this/repo/bin/readcf.bin"
make

More info about compiling Zeal 8-bit OS here.

The resulted ROM image can then be provided to an emulator or directly flashed to the computer's ROM that will use it.

License

Distributed under the Creative Commons Zero v1.0 Universal License. See LICENSE file for more information.

You are free to use it for personal and commercial use, the boilerplate present in each file must not be removed.

Contact

For any suggestion or request, you can contact me at contact [at] zeal8bit [dot] com or on the Discord server https://discord.gg/UzEjwRvBBb

Parts

8
QtyValueFootprintReferences
2RD_ChoiceJumper:SolderJumper-3_P2.0mm_Open_TrianglePad1.0x1.5mm_NumberLabelsJP1, JP2
1CF-CARDConnector_Card:CF-Card_3M_N7E50-E516xx-30CON1
1Extension portConnector_PinHeader_2.54mm:PinHeader_2x25_P2.54mm_VerticalJ1
1GAL16V8Package_DIP:DIP-20_W7.62mm_SocketU1
1LEDLED_THT:LED_D5.0mmD1
1Pull-DownResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1
1Pull-Up ResistorsResistor_THT:R_Array_SIP7RN1

Similar boards

  • 2 layers20.5 × 24.8 mmPi interface, the printed circuit board in 3D

    Pi interface

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    8 parts3.7k
  • 2 layers59.9 × 25.7 mmBuffer, the printed circuit board in 3D

    Buffer

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    8 parts1kGPL-3.0
  • 2 layers52 × 12.6 mmUSB, the printed circuit board in 3D

    USB

    shanteacontrols/OpenDeck

    A platform for building interactive control and sensing devices using MIDI and OSC built with Zephyr RTOS.

    8 parts960Apache-2.0
  • 2 layers87.5 × 48.5 mm7 input macropad, the printed circuit board in 3D

    7 input macropad

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    8 parts915
  • 2 layers36.2 × 63.1 mmPicoMemcard pico, the printed circuit board in 3D

    PicoMemcard pico

    dangiu/PicoMemcard

    Emulating PSX Memory Card (or controller) using a Raspberry Pi Pico

    8 parts694GPL-3.0
  • 2 layers36 × 10 mmPCB4-PWR BTN Rev.A, the printed circuit board in 3D

    PCB4-PWR BTN Rev.A

    OLIMEX/DIY-LAPTOP

    Do It Yourself Open Source Hardware and Software Modular Hacker's Friendly Laptop

    8 parts578Apache-2.0

Questions

How big is the Cfadapter PCB?

It measures 66.9 × 60.4 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Cfadapter use?

8 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 Cfadapter KiCad files?

From the Zeal8bit/Zeal-CompactFlash repository on GitHub, at the commit this page was made from: the board is kicad/cfadapter.kicad_pcb and its schematic kicad/cfadapter.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Cfadapter design in my own project?

Its repository publishes it under the CC0-1.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).