Skip to the content
2 layers101.6 × 53.3 mmZ80-512K, the printed circuit board in 3D

Z80 CPU and Memory Module

Size
101.6 × 53.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
30
Nets
107
Pads
309
Tracks, vias
1,693, 81
Pours
2
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
5 Jan 2021
Updated
19 May 2025

Overview

Z80-512K is an open-source printed circuit board by skiselev, from the skiselev/Z80-512K repository on GitHub. It is a 2-layer board of 101.6 × 53.3 mm with 30 parts on 107 nets, routed with 1,693 tracks and 81 vias.

It is built around the ADM693ANZ. Its parts include 7 capacitors, 7 resistors, 5 ICs, 3 connectors and 1 diode. It belongs with the retro computing and games boards and the FPGA and CPLD boards of this library.

Main components

1

README

README.md

Z80-512K

Z80 CPU, 512 KiB SRAM, and 512 KiB Flash ROM module for RCBus systems

Table of Content

Overview

Z80-512K is an RCBus and RC2014* compatible module, designed to run RomWBW firmware including CP/M, ZSDOS, and various applications under these OSes. Z80-512K combines functionality of the following RC2014* modules on a single module, thus saving space on the backplane:

  • Z80 CPU Module
  • 512k ROM 512k RAM Module
  • Clock and Reset Module

In addition to these functions, Z80-512K includes programmable CLK2 clock divider, support for battery-backed SRAM, power failure NMI generation, and a watchdog.

Minimal CP/M computer system can be built using Z80-512K module, a backplane, and a serial port module, such as Z80 SIO or MC68B50 ACIA. For configurable baud rate settings, it is recommened to use serial modules that can use CLK2 as a clock, for example Steve Cousins' SC716 or SC725 modules. Additional storage module is not required, since RomWBW utilizes part of ROM and SRAM for ROM and RAM disks respecitvely, but a Compact Flash module can be added for additional storage. For a compact system, a 3-slot SC723 can be used.

Z80-512K Assembled Board

Specifications

  • Processor: Zilog* Z80 CPU (CMOS version - Z84C00)
  • Memory: 512 KiB battery-backed SRAM, 512 KiB Flash ROM, Zeta SBC V2 compatible memory pager
  • Bus: RC2014* compatible
  • Microprocessor Supervisor:
    • Reset generation
    • SRAM battery backup
    • Power failure NMI
    • Watchdog

Assembly Instructions

Please refer to Assembly Instructions document

Hardware Documentation

Documentation for the Previous Versions

Schematic and PCB Layout

Input/Output Ports

Z80-512K uses an Atmel* ATF1504AS CPLD (complex programmable logic device) to implement Zeta SBC V2 compatible memory pager, watchdog control, and UART clock divider. These functions are configured using registers that are accessible using I/O ports. Upon reset, the configuration registers are set to values that result in an RC2014 compatible configuration, so that RomWBW RCZ80_std.rom image can be used without any modifications.

The following I/O ports are implemented in the CPLD:

0x6D - CONFIG - UART Clock Divisor and Watchdog Configuration (Read/Write)

Bits 0-4 define the ratio the 7.3728 MHz CPU clock (CLK1) is divided by to produce UART clock (CLK2). The output clock can be calculated using the following formula: fCLK2 (Hz) = 7372800 / (3m * 2n), where m is bit 4 of CONFIG register (0 or 1), and n are bits 3-0 of CONFIG register (0 to 15)

PortBit #FunctionValue = 0Value = 1
0x6D0Divide CPU clock by 2Disable divide by 2Enable divide by 2
0x6D1Divide CPU clock by 4Disable divide by 4Enable divide by 4
0x6D2Divide CPU clock by 16Disable divide by 16Enable divide by 16
0x6D3Divide CPU clock by 256Disable divide by 256Enable divide by 256
0x6D4Divide CPU clock by 3Disable divide by 3Enable divide by 3
  • Note: Bits 0-4 are reset to '0' on power-on or reset, so that the divide ratio is set to 1 and the CLK2 frequency is 7.3728 MHz

Bit 5 enables or disables the watchdog and controls the generation of watchdog (WDOG) signal. On the board the WDOG signal is connected to the CPU supervisor IC U5 ADM693A. The CPU supervisor will reset the board if WDOG signal is not pulsed within 1.6 seconds. When watchdog is disabled, the /M1 signal is routed to WDOG signal, so that it is pulsed on every instruction fetch. When watchdog is enabled, the WDOG signal should be pulsed by writting to WDOG register, port 0x6F (see below) in intervals of less than 1.6 seconds.

PortBit #FunctionValue = 0Value = 1
0x6D5Watchdog enableDisable watchdogEnable watchdog
  • Note: Bit 5 is reset to '0' on power-on or reset, so that watchdog is disabled
PortBit #FunctionValue
0x6D7-6Not implementedShould be set to 0
0x6F - WDOG - Reset Watchdog (Write-only)

Any write to this port pulses the WDOG signal, which resets the watchdog in the CPU supervisor U5

PortBit #FunctionValue
0x6FN/AWDOG - Reset watchdogAny write to this port resets the watchdog
0x78-0x7B - MPGSEL - Memory Page Select Registers (Write-only)
PortBit #FunctionValue
0x785-0MPGSEL_0 - Page number for bank #0 0x0000-0x3FFF0-31 - Page number
0x787-6Not implementedShould be set to 0
0x795-0MPGSEL_1 - Page number for bank #1 0x4000-0x7FFF0-31 - Page number
0x797-6Not implementedShould be set to 0
0x7A5-0MPGSEL_2 - Page number for bank #2 0x8000-0xBFFF0-31 - Page number
0x7A7-6Not implementedShould be set to 0
0x7B5-0MPGSEL_2 - Page number for bank #3 0xC000-0xFFFF0-31 - Page number
0x7B7-6Not implementedShould be set to 0
0x7Ch - MPGENA - Enable Memory Paging (Write-only)
PortBit #FunctionValue = 0Value = 1
0x7C0Memory paging enableDisable memory pagingEnable memory paging
  • Note: The register is reset to '0' on power-on or reset, which disables the memory paging. When memory paging is disabled the memory page 0 (lower 16 KiB of the Flash ROM) is mapped to all banks.
PortBit #FunctionValue
0x7C7-1Not implementedShould be set to 0

Connectors

J1 - NVRAM Battery

Connect 3V battery for SRAM backup to this connector.

Important: If the SRAM battery backup is not desired, short J1 with a jumper. Do not leave this connector open.

PinSignal NameDescription
1VBATPositive terminal - +3V
2GNDNegative terminal - ground
J2 - JTAG - CPLD

This connector can be used to program the U4 CPLD

PinSignal NameDescriptionPinSignal NameDescription
1TCKTest Clock2GNDGround
3TDOTest Data Output45V5V Power Supply - Output to JTAG adapter
5TMSTest Mode Select6NCNo Connect
7NCNo Connect8NCNo Connect
9TDITest Data Input10GNDGround
J3, J4 - RC2014* Bus
PinSignal NameDescriptionPinSignal NameDescription
J3-1A15Address A15; OutputJ3-41p41Reserved; Not connected
J3-2A14Address A14; OutputJ3-42/BAIBus Acknowledge In; Not connected
J3-3A13Address A13; OutputJ3-43/BAOBus Acknowledge Out; Not connected
J3-4A12Address A12; OutputJ3-44p44Reserved; Not connected
J3-5A11Address A11; OutputJ3-45p45Reserved; Not connected
J3-6A10Address A10; OutputJ3-46p46Reserved; Not connected
J3-7A9Address A9; OutputJ3-47p47Reserved; Not connected
J3-8A8Address A8; OutputJ3-48p48Reserved; Not connected
J3-9A7Address A7; OutputJ3-49A23Address A23; Input; Not connected
J3-10A6Address A6; OutputJ3-50A22Address A22; Input; Not connected
J3-11A5Address A5; OutputJ3-51A21Address A21; Input; Not connected
J3-12A4Address A4; OutputJ3-52A20Address A20; Input; Not connected
J3-13A3Address A3; OutputJ3-53A19Address A19; Input; Not connected
J3-14A2Address A2; OutputJ3-54A18Address A18; Input; Not connected
J3-15A1Address A1; OutputJ3-55A17Address A17; Input; Not connected
J3-16A0Address A0; OutputJ3-56A16Address A16; Input; Not connected
J3-17GNDGroundJ3-57GNDGround
J3-18VCCPower Supply - +5VJ3-58VCCPower Supply - +5V
J3-19/M1Machine Cycle One; OutputJ3-59/RFSHDRAM refresh; Output
J3-20/RESETReset; OutputJ3-60PAGEPage ROM/RAM input; Not connected
J3-21CLK1CPU Clock; OutputJ3-61CLK2UART Clock (programmable); Output
J3-22/INTInterrupt; InputJ3-62/BUSACKDMA Bus Acknowledge; Output
J3-23/MREQMemory Request; OutputJ3-63/HALTHalt; Output
J3-24/WRWrite Request; OutputJ3-64/BUSREQDMA Bus Request; Input
J3-25/RDRead Request; OutputJ3-65/WAITWait; Input
J3-26/IORQInput/Output Request; OutputJ3-66/NMINon-maskable Interrupt; Input
J3-27D0Data D0; Input/OutputJ3-67D8Data D8; Input/Output; Not connected
J3-28D1Data D1; Input/OutputJ3-68D9Data D9; Input/Output; Not connected
J3-29D2Data D2; Input/OutputJ3-69D10Data D10; Input/Output; Not connected
J3-30D3Data D3; Input/OutputJ3-70D11Data D11; Input/Output; Not connected
J3-31D4Data D4; Input/OutputJ3-71D12Data D12; Input/Output; Not connected
J3-32D5Data D5; Input/OutputJ3-72D13Data D13; Input/Output; Not connected
J3-33D6Data D6; Input/OutputJ3-73D14Data D14; Input/Output; Not connected
J3-34D7Data D7; Input/OutputJ3-74D15Data D15; Input/Output; Not connected
J3-35TXChannel 1, Transmit Data; Not ConnectedJ3-75TX2Channel 2, Transmit Data; Not Connected
J3-36RXChannel 1, Receive Data; Not ConnectedJ3-76RX2Channel 2, Receive Data; Not Connected
J3-37/IRQ1Interrupt Request 1; Not connectedJ3-77/IRQ2Interrupt Request 2; Not connected
J3-38IEIInterrupt Enable In; Not connectedJ3-78p78Reserved; Not connected
J3-39IEOInterrupt Enable Out; Not connectedJ3-79p79Reserved; Not connected
J3-40USER4User Pin 4; Not connectedJ3-80USER8User Pin 8; Not connected

Bill of Materials

Version 2.0

Mouser projects - all components except of the PCB:

Z80-512K project on Tindie:

Component typeReferenceDescriptionQuantityPossible sources and notes
PCBZ80-512K PCB - Version 2.01Buy from my Tindie store: Complete kit; Z80-512K PCB, a preprogrammed CPLD and optionally a Flash ROM, or order from a PCB manufacturer of your choice using provided Gerber or KiCad files
Integrated CircuitU1Z84C00xxPEG - Z80 CPU, CMOS, 40 pin DIP1Mouser 692-Z84C0010PEG
Integrated CircuitU2SST39SF040 - 512 KiB Flash ROM, 32 pin DIP1Mouser 804-39SF0407CPHE
Integrated CircuitU3AS6C4008 - 512 KiB SRAM, 32 pin DIP1Mouser 913-AS6C4008-55PCN
Integrated CircuitU4ATF1504AS - CPLD, 64 macrocells, 44 pin PLCC1Mouser 556-AF1504AS10JU44; Possible alternative: Altera EPM7064SLC44-10
Integrated CircuitU5ADM693A - Microprocessor Supervisory Circuit1Mouser 584-ADM693ANZ. Optional: CPU reset, watchdog, and power failure NMI. Possible alternatives: MAX693, LTC693, ADM691, MAX691, LTC691, ADM695, MAX695, LTC965, LTC1235
OscillatorX17.3728 MHz, CMOS oscillator, half can1Mouser 774-MXO45HS-3C-7.3 or 520-2200B-073
LEDD1LED indicator, 3 mm, blue1Mouser 710-151033BS03000
ConnectorJ12 pin header with friction lock, right angle1Mouser 571-6404572. Optional: battery-backed SRAM
Pin HeaderJ22x5 pin header, 2.54 mm pitch, vertical1Mouser 649-77313-118-10LF. Optional: JTAG header
Pin HeaderJ32x40 pin header, 2.54 mm pitch, right angle1Mouser 517-5121TG
CapacitorC110 uF, 25V, MLCC, 5 mm pitch1Mouser 810-FG28X5R1E106MR06
CapacitorC2 - C70.1 uF, 50V, MLCC, 5 mm pitch6Mouser 594-K104K15X7RF53H5. Note: C5 is optional, required if U5 installed
Resistor ArrayRN14.7 kohm, bussed, 9 pin SIP1Mouser 652-4609X-1LF-4.7K or 652-4609X-AP1-472LF
Resistor ArrayRN24.7 kohm, bussed, 6 pin SIP1Mouser 652-4606X-1LF-4.7K or 652-4606X-AP1-472LF
ResistorR1 - R510 kohm, 0.25 W, 1% tolerance, axial5Mouser 603-MFR-25FRF5210K. Optional: R1 - R4 - JTAG header, R5 - Power failure NMI
ResistorR629.4 kohm, 0.25 W, 1% tolerance, axial1Mouser 603-MFR-25FBF52-29K4. Optional: Power failure NMI
ResistorR71 kohm, 0.25 W, axial1Mouser 603-MFR-25FRF521K
Trimmer ResistorRV12 kohm, through hole1Mouser 652-3362W-1-202LF. Optional: Power failure NMI
IC SocketU140 pin DIP1Mouser 517-4840-6000-CP
IC SocketU2, U332 pin DIP2Mouser 517-4832-6000-CP
IC SocketU444 pin PLCC, through hole1Mouser 517-8444-11B1-RK-TP
IC SocketU516 pin DIP1Mouser 517-4816-3000-CP. Optional: CPU reset, watchdog, and power failure NMI. Install two wire jumpers as indicated on the PCB if U5 is not used.
Oscillator SocketX14 pin DIP, Half Can1Mouser 535-1108800
JumperJ1Shunt, 2 pin 2.54 mm pitch1Mouser 806-SX1100-B. Optional: install if battery is not used, but U5 is installed
Connector ContactsJ1Connector contact2Mouser 571-14453361. Optional: connector for battery enclosure, install for battery-backed SRAM
Connector HousingJ12 pin housing, 2.54 mm pitch1Mouser 571-13758202. Optional: connector for battery enclosure, install for battery-backed SRAM
Battery holderJ12xAAA battery enclosure with switch1Mouser 12BH421/CS-GR. Optional: battery enclosure, install for battery-backed SRAM

CPLD Fuse Map

Z80-512K uses Atmel ATF1504AS or Intel*/Altera* EPM7064STC44 CPLD (U4) CPLD for memory pager and varous other logic. Atmel CPLD fuse map, Altera CPLD fuse map, and the CPLD source code are provided in CPLD directory of this repository. Use ATMISP software to program Atmel CPLD. Use free Altera Quartus II 13.0sp1 Web Edition to program Altera CPLD. Newer Quartus versions do not support Altera MAX7000 CPLDs.

Release Notes

Changes

  • Version 2.0:

    • Update form factor from RC2014* compatible to RCBus
    • Move the battery connector to the edge of the board
    • Make U5, CPU Supervisor IC, optional. Add information on the silkscreen for the configuration without U5
  • Version 1.2

    • Add CPU LED back. Use WDOG signal to control the LED
  • Version 1.1

    • Add CPLD STATUS register read back capability
    • Remove LEDs
    • Improve PCB routing: use wider traces where possible, better ground fill
    • Add signal names on the bottom silk screen
  • Version 1.0

    • Initial version

Known Issues

  • Version 1.1

    • No diagnostic LEDs
      • Workaround: Connect an external LED in series with 1 kohm resistor between U5 pin 11 (WDOG signal) and VCC signal.
  • Version 1.0

    • No CPLD STATUS register read back
      • Workaround: Program CPLD with the version 1.1 fuse map. Cut LED_OUT trace at D2 LED (negative terminal), connect U4 pin 36 to U1 pin 21 (RD signal) with a piece of wire. If diagnostic LED is needed, connect negative terminal of the LED to U5 pin 11 (WDOG signal)

Wishlist

  • Consider using JST connector for the battery
    • Lower profile than TE latchable connector
    • Ready-made battery holders with JST connectors, such as Adafruit 4191 can be used
  • Add RCBUs logo

Red Tape

Licensing

Z80-512K is an open source hardware project certified by Open Source Hardware Association, certification UID is US001061. The hardware design itself, including schematic and PCB layout design files are licensed under the strongly-reciprocal variant of CERN Open Hardware Licence version 2. The CPLD VHDL code is licensed under GNU General Public License v3. Documentation, including this file, is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.

CERN-OHL-2.0-S, GPL-3.0, CC-BY-SA-4.0

Trademarks

  • "RC2014" is a registered trademark of RFC2795 Ltd.
  • Other names and brands may be claimed as the property of others.

Parts

30
QtyValueFootprintReferences
6100nFMy_Components:Cap_Cer_508C2, C3, C4, C5, C6, C7
510kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_VerticalR1, R2, R3, R4, R5
110uFMy_Components:Cap_Cer_508C1
11kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_VerticalR7
129.4kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_VerticalR6
12kPotentiometer_THT:Potentiometer_Bourns_3266W_VerticalRV1
13.2mmMountingHole:MountingHole_3.2mm_M3_DIN965H1
14.7kMy_Components:Conn_SIL9RN1
14.7kMy_Components:Conn_SIL6RN2
17.3728MHzMy_Components:OSC_Half_Can_DIP8X1
1ADM693AMy_Components:Socket_DIP16_300U5
1AS6C4008My_Components:Socket_DIP32_600U3
1ATF1504ASMy_Components:IC_PLCC44_THU4
1CPUMy_Components:LED_3mmD1
1JTAGMy_Components:Conn_Pin_Header_5x2_2.54mmJ2
1Logo_Open_Hardware_SmallSymbol:OSHW-Logo_5.7x6mm_SilkScreenLOGO1
1RCBus-80My_Components:Conn_Pin_Header_40x2_2.54mm_Right_Angle_RCBus80J3
1SST39SF040My_Components:Socket_DIP32_600U2
1VBATConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_HorizontalJ1
1Z84C00My_Components:Socket_DIP40_600U1

The 29 most common of 30 parts.

Similar boards

  • 2 layers52.2 × 52.2 mmBase promicro, the printed circuit board in 3D

    Base promicro

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    30 parts3kApache-2.0
  • 2 layers40.6 × 15.2 mmVr mmm, the printed circuit board in 3D

    Vr mmm

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    30 parts1.2k
  • 2 layers270 × 11 mmDaylight, the printed circuit board in 3D

    Daylight

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    30 parts1.1kGPL-3.0
  • 2 layers65 × 30 mmRgb to hdmi, the printed circuit board in 3D

    Rgb to hdmi

    hoglet67/RGBtoHDMI

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

    30 parts1kGPL-3.0
  • 2 layers40.5 × 58 mmInitial v, the printed circuit board in 3D

    Initial v

    tenderlove/initial-v

    It's a BMW shifter converted to a Bluetooth Keyboard that you use with Vim

    30 parts1kApache-2.0
  • 2 layers34.3 × 41.8 mmMotionCubeViewAllForces, the printed circuit board in 3D

    MotionCubeViewAllForces

    hackclub/OnBoard

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

    30 parts915
  • 2 layers57.4 × 62 mmPicoWS2812, the printed circuit board in 3D

    PicoWS2812

    ErichStyger/mcuoneclipse

    McuOnEclipse projects and examples

    30 parts765
  • 2 layers52.1 × 46.8 mmFIRE TEST PANEL, the printed circuit board in 3D

    FIRE TEST PANEL

    jrsteensen/OpenHornet

    OpenHornet 1:1 F/A-18C Simulator Repository

    30 parts431

Questions

How big is the Z80-512K PCB?

It measures 101.6 × 53.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Z80-512K use?

30 parts, built around the ADM693ANZ. 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 Z80-512K KiCad files?

From the skiselev/Z80-512K repository on GitHub, at the commit this page was made from: the board is KiCad/Z80-512K.kicad_pcb and its schematic KiCad/Z80-512K.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Z80-512K design in my own project?

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