Skip to the content
2 layers17.8 × 40.6 mmSocket 29C040, the printed circuit board in 3D

Socket 29C040

hkzlab/ROsiM11

ROsiM is a ROM simulator/emulator, supporting up to 512k/16bit ROMs

Size
17.8 × 40.6 mm
Copper layers
2
Thickness
1.6 mm
Parts
2
Nets
31
Pads
64
Tracks, vias
33, 0
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
28 Oct 2020
Updated
22 Dec 2023

Overview

Socket 29C040 is an open-source printed circuit board by hkzlab, from the hkzlab/ROsiM repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 17.8 × 40.6 mm with 2 parts on 31 nets, routed with 33 tracks and 0 vias.

Its parts include 1 IC and 1 connector. It belongs with the retro computing and games boards of this library.

README

README.md

ROsiM - ROM simulator

Introduction

The ROsiM is a ROM simulation / emulation board: it uses two 512k/8bit SRAM chips to simulate an 8 or 16 bit ROM (up to 512k bytes or 512k words in size).

The board is based around an ATMega328P chip @20Mhz, controlled via serial connection.

Rev. 1.3 PCB

I made this out of my personal need of a simple way to quickly test ROM images on boards I repair/hack/build. Often, these boards use big 16bit EPROMs and the projects I found around did not cater to my needs.

The idea is to use this bare board and then "pods" that attach to the two 40pin header and adapt it to simulate various types of ROMs.

WARNING: While I might help you with quick questions, there is NOT going to be hand-holding for this one.

Caveat Emptor!

I have currently built and tested revision 1.3 of this board. The following fixes must be implemented to make it usable:

  • Wire the VCCIO pad from FT232RL to VCC and do NOT short it to 3.3v. This is already fixed in board rev. 1.4

The following mod is optional but encouraged for safety, and have been implemented for revision 1.4:

  • Cut the trace between pin 1 of USB connector (Vcc) and F1, and insert a BAT48 SOD123 diode, cathode towards F1. This will protect your USB port if the board gets externally powered.
  • Lower F1 max current to 200mA

Board

This board is designed around relatively cheap through hole (with a few exceptions) components, and should be buildable by anyone with basic soldering skills.

You'll need a way to program your 328P MCU with the bootloader (you can then load the firmware via serial port).

I recommend optiboot. Remember to set the AVR frequency to 20Mhz and baudrate to 115200bps. I might provide prebuilt binaries of this in the future.

Bill of Materials

TODO

Connections

J1 - ISP 6 pin header

This is used for in-circuit programming of the MCU. You won't really use after burning the bootloader to the chip. You can leave this out if you pre-program the ATMega.

J2 - USB Type B female

Connect your USB cable here. It will appear as an FTDI serial port to the host.

The Interface runs at 230400bps 8-n-1. The protocol is mainly ASCII based, but meant to be used with an external software.

J3 - Barrel jack for power

Connect your DC power supply here, center tip positive. Anything between 7 to 9V will be good, 12V will work, but the regulator might get hotter. 500mA should be enough.

J4 - Address header

A 40 pin header:

  • Odd pins 1 thru 37 on the left side will bring out the address lines (A0-A18).
  • Pin 39 will be this board's VCC.
  • All even pins on the right are GND.
J5 - Data header

A 40 pin header:

  • Odd pins 1 thru 31 on the left side will bring out the data lines (D0-D15).
  • Pin 33 will be the /CE signal input.
  • Pin 35 will be the /OE signal input.
  • Pin 39 will be this board's VCC.
  • All even pins on the right are GND.
J6 - /RESET header

An active-low OC signal will be present on this header. You can use to pilot the /RESET of your target board.

Solder an arc of rigid wire on this one, so you can attach a small crocodile clip to it.

J7 - RESET header

An active-high signal (either high or disconnected) will be present on this header.

Solder an arc of rigid wire on this one, so you can attach a small crocodile clip to it.

Software

While this board can be controlled directly via a simple serial terminal, it is advised to use a client software that supports the following protocol, like the ROsiM Loader.

Protocol

The Remote Control protocol is pretty simple and ASCII based. It supports 12 commands, each with its own syntax and response.

String CMD_ERR will be sent in case the command is not recognized, string CMD_INV will be sent in case the command cannot be executed at this time.

RESET
  • Syntax: >K<
  • Response: none

Forces the reset by watchdog of the ROsiM.

MODEL
  • Syntax: >M<
  • Response: [M xx]

Returns the current model of the board in hex.

ADDRESS
  • Syntax: >A 00xxxxxx<
  • Response: [A 00xxxxxx]

Specifies the start address for the next read/write commands. The address must be specified in hex, and a mask of 0x7FFFF will be applied to it.

WRITE
  • Syntax: >W xxxx<
  • Response: [W xxxx]

The SRAM must be in WRITE mode and the board switched to INTERNAL, otherwise the response CMD_INV will be sent.

xxxx is the data to write on SRAM at the current address in hex format. Once the write completes, the address will automatically increment by 1.

READ
  • Syntax: >R<
  • Response: [R xxxx]

The SRAM must be in READ mode and the board switched to INTERNAL, otherwise the response CMD_INV will be sent.

xxxx is the data written at the current address in hex format. Once the read completes, the address will automatically increment by 1.

EXTERNAL RESET
  • Syntax: >E y< where y can be 0 or 1
  • Response: [E y]

Enables (1) or disables (0) the external RESET signal to the target board.

INTERNAL/EXTERNAL SWITCH
  • Syntax: >S y< where y can be 0 or 1
  • Response: [S y]

To execute this command, the SRAM must be in READ mode, otherwise the response CMD_INV will be sent. Sets the board to INTERNAL (1) or EXTERNAL (0) mode. EXTERNAL mode will enable the drivers that communicate through the external address/data/control lines.

READ/WRITE SWITCH
  • Syntax: >X y< where y can be 0 or 1
  • Response: [X y]

To execute this command, the board must be in INTERNAL mode, otherwise the response CMD_INV will be sent. Sets the SRAM to READ (1) or WRITE (0) mode.

VIEW
  • Syntax: >V<
  • Response: [V 00xxxxxx yy]

This command will print out the current address in hex format (00xxxxxx) and a mask (yy) in hex format that contains:

  • bit 0: INTERNAL/EXTERNAL state
  • bit 1: READ/WRITE state
  • bit 2: EXTERNAL RESET state
DEFAULTS
  • Syntax: >D<
  • Response: [D]

Will revert the board state to the following state:

  • INTERNAL
  • SRAM in READ mode
  • EXTERNAL RESET disabled

The selection of the EXTERNAL RESET logic will NOT be restored by this command and will remain set to the current state.

TEST
  • Syntax: >T<
  • Response: [T xx]

Resets the board to defaults then executes a test on the SRAMs by writing patterns of data in them and reading them back.

The output can be:

  • 00 test was completed successfully
  • 01 test failed while writing the first pattern (0xAA55)
  • 02 test failed while writing the first pattern (0x55AA)
  • 03 the test failed while writing the incremental pattern
XMODEM
  • Syntax: >O x<
  • Response: [O yy]

Starts an XMODEM transfer of a binary file into the SRAM.

x can be:

  • 0 The file will be considered an 8-bit dump, the highest 8 bits of the SRAM will be set to 0x00, only the lower 8 bits will be set.
  • 1 The file will be considered a 16-bit dump, and the data will be loaded into the SRAM in words. ODD bytes in the dump will end up in the high byte of the SRAM, EVEN bytes will end up in the low byte of the SRAM.
  • 2 The file will be considered a byte swapped 16-bit dump, and the data will be loaded into the SRAM in words. EVEN bytes in the dump will end up in the high byte of the SRAM, ODD bytes will end up in the low byte of the SRAM.

yy will be:

  • 00 for a failed transfer.
  • 01 for a successful transfer.

Parts

2
QtyValueFootprintReferences
129C040Package_DIP:DIP-32_W15.24mmU1
1AdapterConnector_PinHeader_2.54mm:PinHeader_2x16_P2.54mm_VerticalJ1

More from hkzlab/ROsiM

12
  • 2 layers170.2 × 78.7 mmROsiM, the printed circuit board in 3D

    ROsiM

    hkzlab/ROsiM

    ROsiM is a ROM simulator/emulator, supporting up to 512k/16bit ROMs

    93 parts11GPL-3.0
  • 2 layers39.4 × 57.2 mmPod 27C040, the printed circuit board in 3D

    Pod 27C040

    hkzlab/ROsiM

    ROsiM is a ROM simulator/emulator, supporting up to 512k/16bit ROMs

    13 parts11GPL-3.0
  • 2 layers17.8 × 53.3 mmSocket A500R5, the printed circuit board in 3D

    Socket A500R5

    hkzlab/ROsiM

    ROsiM is a ROM simulator/emulator, supporting up to 512k/16bit ROMs

    4 parts11GPL-3.0
  • 2 layers17.8 × 35.6 mmSocket 27C16, the printed circuit board in 3D

    Socket 27C16

    hkzlab/ROsiM

    ROsiM is a ROM simulator/emulator, supporting up to 512k/16bit ROMs

    2 parts11GPL-3.0
  • 2 layers17.8 × 40.6 mmSocket 27C020, the printed circuit board in 3D

    Socket 27C020

    hkzlab/ROsiM

    ROsiM is a ROM simulator/emulator, supporting up to 512k/16bit ROMs

    2 parts11GPL-3.0
  • 2 layers17.8 × 35.6 mmSocket 27C32, the printed circuit board in 3D

    Socket 27C32

    hkzlab/ROsiM

    ROsiM is a ROM simulator/emulator, supporting up to 512k/16bit ROMs

    2 parts11GPL-3.0
  • 2 layers17.8 × 40.6 mmSocket 27C040, the printed circuit board in 3D

    Socket 27C040

    hkzlab/ROsiM

    ROsiM is a ROM simulator/emulator, supporting up to 512k/16bit ROMs

    2 parts11GPL-3.0
  • 2 layers17.8 × 35.6 mmSocket 27C64, the printed circuit board in 3D

    Socket 27C64

    hkzlab/ROsiM

    ROsiM is a ROM simulator/emulator, supporting up to 512k/16bit ROMs

    2 parts11GPL-3.0
  • 2 layers17.8 × 35.6 mmSocket 27C256, the printed circuit board in 3D

    Socket 27C256

    hkzlab/ROsiM

    ROsiM is a ROM simulator/emulator, supporting up to 512k/16bit ROMs

    2 parts11GPL-3.0
  • 2 layers17.8 × 50.8 mmSocket 27C400, the printed circuit board in 3D

    Socket 27C400

    hkzlab/ROsiM

    ROsiM is a ROM simulator/emulator, supporting up to 512k/16bit ROMs

    2 parts11GPL-3.0
  • 2 layers17.8 × 50.8 mmSocket 27C400B, the printed circuit board in 3D

    Socket 27C400B

    hkzlab/ROsiM

    ROsiM is a ROM simulator/emulator, supporting up to 512k/16bit ROMs

    2 parts11GPL-3.0
  • 2 layers17.8 × 35.6 mmSocket 27C512, the printed circuit board in 3D

    Socket 27C512

    hkzlab/ROsiM

    ROsiM is a ROM simulator/emulator, supporting up to 512k/16bit ROMs

    2 parts11GPL-3.0

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

How big is the Socket 29C040 PCB?

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

What parts does the Socket 29C040 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 Socket 29C040 KiCad files?

From the hkzlab/ROsiM repository on GitHub, at the commit this page was made from: the board is board/socket_29C040/socket_29C040.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Socket 29C040 design in my own project?

Its repository publishes it under the GPL-3.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).