Skip to the content
4 layers40.6 × 17.8 mmRamboard, the printed circuit board in 3D

An experimental single-board computer using the 65C816

Size
40.6 × 17.8 mm
Copper layers
4
Thickness
1.6 mm
Parts
5
Nets
54
Pads
134
Tracks, vias
298, 21
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
24 Apr 2021
Updated
4 Oct 2026

Overview

Ramboard is an open-source printed circuit board by c0pperdragon, from the c0pperdragon/OS816 repository on GitHub. It is a 4-layer board of 40.6 × 17.8 mm with 5 parts on 54 nets, routed with 298 tracks and 21 vias.

It is built around the CY62167ELL-45ZXIT. Its parts include 2 ICs and 2 connectors. It belongs with the computers and single-board computers boards of this library.

Main components

1

README

README.md

OS816

A small single board computer using the 65C816 processor running at 10MHz, together with 512KB of RAM, 512KB of flash and a simple but effective I/O circuitry.

I made a small boot loader program for this hardware sitting in the top 4KB of flash to upload further code via a serial connection to avoid the need of swapping the Flash IC in and out of the board all the time.

User programs can be developed with the WDC compiler tool chain that provides an assembler as well as a C compiler confirming to the C89/90 standard (a.k.a ANSI C). I had to fix some bugs and add implementations for stdin/stdout over serial and file access to utilize the unoccupied area of the Flash memory. By now it is complete enough to run the "frotz" interactive fiction interpreter to play some of the old text adventure classics.

alt text

Minimum 65C816 setup

This processor is a tricky beast to use in a circuit as it has some unusual quirks that need consideration, especially when you want to use more than 64KB of address space.

  1. RD and WR signals need to be externally generated.
  2. Address bits 16-23 are multiplexed with the data bus.
  3. Difficult to use flat RAM and ROM areas, as both the stack as well as the initial boot code needs to be placed in bank 0.

Points 1 and 2 are just solved with some extra logic on the board. Point 3 is solved by using the emulation bit to force the top 8 address lines to $FF during startup time. Once the program is running it switches to native mode to make use of the full address range with flat regions for both RAM, IO and flash.

Memory map

fromtotype
00000007FFFFRAM
400000400000IO port
C00000C7EFFFUser flash
FFF000FFFFFFBoot loader flash

Many other ranges of the 16MB space are mirrors of some of the specified ranges here, but should not be used in order to allow future extensions.

Compiling for the platform

The free WDC compiler tools (running on Windows only) are used that include a C compiler, so it is easy to get most things done without directly touching the 65C816 machine code. The OS816 libraries are designed for the "large" memory model to evenly access static and dynamic data without bothering about banks, direct page and all the other intricate details of this specific CPU. Low level access to the hardware (essentially to the IO port, but also the flash programming functions) is provided by libraries that are directly written in machine code for best performance and because sometimes it would not be possible otherwise.

The necessary compiler and linker can be found at the Western Design Center's download page. Additionally you need a python 3 interpreter to run my extra build tools.

To see how all these tools should be used, have a look at the build scripts for the various examples provided.

Get the boot loader into the flash

This is a step you probably need to do only once, but it requires the use of a dedicated chip programmer, like the TL866-II Plus and its corresponding programming software. Building the OS816 libraries by executing the 'build.bat' script in the 'src' directory, will create some libraries in the 'bin' directory, and also the 'boot.hex' file which needs to be written to the flash IC. To avoid buying this not completely cheap programmer I could provide you with a pre-flashed IC for a reasonable price.

With the kit I sell at tindie, the flash IC comes already pre-programmed.

Serial interface

With its simple IO hardware, the CPU is in charge of all signal handling. With a 10MHz clock and hand-crafted machine code it was possible to implement a reliable serial communication that can run at 115.2kHz (1 start bit, 1 stop bit, no parity). But as the CPU can not do any communication when being busy with other things it is necessary that the communication partner must only send data when the CPU is prepared to receive it. A straight forward solution is the use of hardware flow control using RTS/CTS handshake lines. In my reference setup I use a cheap USB-to-UART interface board with support for these signals.

Pin locationOS816Partner
OUTPUT 0TXRX
OUTPUT 1RTSCTS
INPUT 7RXTX
INPUT 6CTSRTS

If your USB-to-UART interface does only have a CTS input, but no RTS output, this can also be made to work. Just pull the CTS input of the OS816 permanently to GND to disable flow control in the direction from the OS816 to your computer, assuming that your computer is fast enough so it can always process all incomming data.

Uploading

Compiling with the recommended tools will create a file in Intel HEX format. This file contains the "user code" which can be written to flash using the resident boot loader program. When starting up the machine with a serial terminal attached, the boot loader enters a command line interface. Here memory locations can be inspected or modified and also the content of the flash can be reprogrammed. After completely erasing the user flash area with the "!" command, you can conveniently dump a whole intel hex file into the terminal whose lines will be treated as individual programming commands. Once the user program is in the flash, the command "x" will start up this program. When the machine starts up with a user program already installed, the boot loader will give you 1 second time to enter the command line interface by pressing a key. Otherwise it will fire up the user program directly.

Overclocking

I have chosen this moderately fast 10MHz as the clock speed to always stay safely inside all the timing constraints and to make cycle-counting as simple as possible. But I was also able to run the board at 16MHz without problems. If you want to try this, you need to swap out the crystal and set the serial communication speed in your terminal program accordingly.

Contact

For questions regarding purchases of either a pre-programmed flash IC or a whole kit for self-assembly (using through-hole parts exclusively), please contact me directly at: reinhard.grafl (at) aon.at

For other questions that may also be of interest for other users, please create an issue ticket.

Parts

5
QtyValueFootprintReferences
2CY62167ELL-45ZXITfootprints:TSOP-I-48_18.4x12mm_P0.5mm_shortpadU1, U2
1Conn_01x03Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ2
1Conn_02x16_Counter_ClockwisePackage_DIP:DIP-32_W15.24mm_SocketJ1
1Jumper_3_OpenJumper:SolderJumper-3_P1.3mm_Open_RoundedPad1.0x1.5mm_NumberLabelsJP1

More from c0pperdragon/OS816

1
  • 4 layers76.7 × 76.7 mmOS816, the printed circuit board in 3D

    OS816

    c0pperdragon/OS816

    An experimental single-board computer using the 65C816

    40 parts28

Similar boards

  • 4 layers28.5 × 28 mmPmod gpdevboard, the printed circuit board in 3D

    Pmod gpdevboard

    azonenberg/openfpga

    Open FPGA tools

    5 parts259
  • 4 layers16 × 13.2 mmSiw, the printed circuit board in 3D

    Siw

    loxodes/vna

    Under development open hardware microwave vector network analyzer

    5 parts205
  • 4 layers105 × 36 mmTdr standard, the printed circuit board in 3D

    Tdr standard

    azonenberg/starshipraider

    Open hardware test equipment

    5 parts193BSD-3-Clause
  • 4 layers22.4 × 46.8 mmPCB1, the printed circuit board in 3D

    PCB1

    lukasloetkolben/OpenpilotHardware

    Welcome to the Openpilot Hardware Collection!

    5 parts95MIT
  • 4 layers108 × 31.8 mmSimm72 ram 16M55, the printed circuit board in 3D

    Simm72 ram 16M55

    agranlund/raven

    Homemade MC68060 + DSP56303 Atari-compatible computer. Hardware, firmware, and software stack

    5 parts87
  • 4 layers35.1 × 25.3 mmT41-si5340-Oscillator daughterboard, the printed circuit board in 3D

    T41-si5340-Oscillator daughterboard

    DRWJSCHMIDT/T41

    This is the repository for the officially released V10, V11, and V12 versions of the T41 Software Defined Transceiver hardware and kits.

    5 parts66
  • 4 layers37.5 × 25.5 mmCoupler nightly, the printed circuit board in 3D

    Coupler nightly

    matthuszagh/fmcw

    6GHz frequency-modulated continuous-wave radar with real-time range detection

    5 parts66Apache-2.0

Questions

How big is the Ramboard PCB?

It measures 40.6 × 17.8 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Ramboard use?

5 parts, built around the CY62167ELL-45ZXIT. 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 Ramboard KiCad files?

From the c0pperdragon/OS816 repository on GitHub, at the commit this page was made from: the board is ramboard/ramboard.kicad_pcb and its schematic mainboard/mainboard.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Ramboard design in my own project?

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