Skip to the content
2 layersEPROM Prog PS, the printed circuit board in 3D

This project implements an EPROM reader using the M68HC11 microcontroller and a 2764 EPROM chip. The system reads the first 25 bytes of data stored in the EPROM and transmits it to a host computer via serial…

Copper layers
2
Thickness
1.6 mm
Parts
25
Nets
13
Pads
54
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 8.0 (file 20240108)
Created
1 Dec 2025
Updated
8 Dec 2025

Overview

EPROM Prog PS is an open-source printed circuit board by AebrahmRamos, from the AebrahmRamos/M68HC11-EPROM-Programmer repository on GitHub. It is a 2-layer board with 25 parts on 13 nets.

Its parts include 10 resistors, 6 diodes, 3 capacitors, 3 connectors and 2 transistors.

README

README.md

M68HC11-EPROM-Programmer

Part 1: EPROM Reader

Overview

This project implements an EPROM reader using the M68HC11 microcontroller and a 2764 EPROM chip. The system reads the first 25 bytes of data stored in the EPROM and transmits it to a host computer via serial communication for display in both hexadecimal and ASCII formats.

Hardware Configuration

The hardware setup maps the M68HC11 ports to the 2764 EPROM pins as follows:

  • Port B (PB0-PB7): Connected to EPROM address inputs A0-A7
  • Port C (PC0-PC7): Connected to EPROM data outputs Q0-Q7
  • Port A (PA5, PA6): Control signals for Chip Enable (CE) and Output Enable (OE)
  • Upper Address Lines (A8-A12): Grounded to restrict addressable space to the first 256 bytes

The EPROM operates with a 5V supply and has an access time of 180-250ns depending on the speed grade.

Software Implementation

The system consists of two main components:

Assembly Program (programmer.asm)

The M68HC11 assembly program performs the following steps:

  1. Initialization: Sets up the stack pointer and forces the device into single-chip mode
  2. Port Configuration: Configures Port C as input and sets control pins to inactive (HIGH)
  3. Serial Setup: Initializes the SCI (Serial Communication Interface) to 9600 baud
  4. Startup Delay: Implements a LONG_DELAY routine to allow the bootloader time to switch baud rates
  5. Read Loop: Iterates 25 times to:
    • Assert the address on Port B
    • Activate control signals (pull CE and OE LOW)
    • Read the data byte from Port C
    • Send the byte to the PC via SEND_SERIAL subroutine
    • Deactivate control signals (pull CE and OE HIGH)
Python Bootloader (HC11_BL-ASCII.py)

The modified bootloader script:

  • Loads the assembly program into the HC11's RAM via serial at 1200 baud
  • Switches the serial port to 9600 baud after successful echo-back
  • Calls read_eprom_data() to receive and display the 25 bytes
  • Displays output in hexadecimal format (8 bytes per line)
  • Displays output in ASCII format (replaces non-printable characters with ".")

Key Challenge: Baud Rate Synchronization

During initial testing, a race condition occurred where the HC11 began transmitting data before the bootloader could switch from 1200 to 9600 baud. This resulted in corrupted or "ghost" byte values.

Solution: Implemented the LONG_DELAY subroutine after baud rate configuration to waste CPU cycles, giving the bootloader sufficient time to reinitialize the serial connection at 9600 baud before the read loop begins.

Results

The system successfully:

  • Reads the first 25 bytes from the 2764 EPROM
  • Transmits data error-free via serial communication
  • Displays data in both hexadecimal and ASCII formats
  • Handles the 0xFF value gracefully by displaying it as "." in ASCII output (since ASCII is a 7-bit standard supporting only values 0-127)

Materials

  • 1x M68HC11 Interface Board
  • 1x 2764 EPROM
  • 1x Breadboard
  • 2x Power Supplies
  • 5x 10Kohm Resistors
  • 1x Oscilloscope
  • 1x VOM (Voltmeter/Ohmmeter)
  • 1x Computer System

Usage

  1. Assemble the assembly code into an S19 file
  2. Run the bootloader script: python HC11_BL-ASCII.py -c /dev/ttyUSB0 -i programmer.s19
  3. Press RESET on the HC11 board when prompted
  4. The program will load, switch baud rates, and display the EPROM data

Recommendations for Future Work

While the current implementation successfully resolves the baud rate race condition, it uses a fixed delay that is not deterministic. A more robust approach would implement a software handshake using interrupts, similar to TCP's three-way handshake. This would ensure 100% data synchronization without relying on timing assumptions that may fail on slower systems or under heavy CPU load.

Parts

25
QtyValueFootprintReferences
32.7KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R4, R5
33.3KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2, R3, R8
21N4148Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD3, D4
21N60Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD5, D6
2820Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR7, R10
10.22uF 50VCapacitor_THT:C_Disc_D6.0mm_W4.4mm_P5.00mmC3
1100uF 16VCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC2
113Vdc_InConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ1
1220Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR6
14.7uF 25VCapacitor_THT:CP_Radial_D5.0mm_P2.00mmC1
16.8Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR9
1LM317L_TO92Package_TO_SOT_THT:TO-92_InlineU1
1Power_IndLED_THT:LED_D5.0mmD1
1Prog_ENConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ2
1Prog_IndLED_THT:LED_D5.0mmD2
1SST3904Package_TO_SOT_SMD:SOT-23Q1
1TM2301GNPackage_TO_SOT_SMD:SOT-23Q2
1Vpp_Vcc_OutConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ3

More from AebrahmRamos/M68HC11-EPROM-Programmer

1
  • 2 layersCemicro part1, the printed circuit board in 3D

    Cemicro part1

    AebrahmRamos/M68HC11-EPROM-Programmer

    This project implements an EPROM reader using the M68HC11 microcontroller and a 2764 EPROM chip. The system reads the first 25 bytes of data stored in the EPROM and transmits it to a host computer via serial…

    9 parts1

Similar boards

  • 2 layers159.5 × 30 mmType f, the printed circuit board in 3D

    Type f

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    25 parts3kApache-2.0
  • 2 layers113.5 × 95.1 mmSweep high, the printed circuit board in 3D

    Sweep high

    davidphilipbarr/Sweep

    Sweep - a small promicro based keyboard inspired by the Ferris.

    25 parts2.1k
  • 2 layers58.4 × 114.3 mmPicoPedal, the printed circuit board in 3D

    PicoPedal

    hackclub/OnBoard

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

    25 parts915
  • 2 layers54 × 15 mmXyp gpib, the printed circuit board in 3D

    Xyp gpib

    xyphro/UsbGpib

    Versatile, cheap and portable USB to GPIB converter (USBTMC class based)

    25 parts690MIT
  • 2 layers50 × 76 mmVoron 0, the printed circuit board in 3D

    Voron 0

    dennisss/dacha

    Monorepo for awesome tools/projects/libraries

    25 parts397Apache-2.0
  • 2 layers237.5 × 102.9 mmStorage, the printed circuit board in 3D

    Storage

    jes/scamp-cpu

    A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system.

    25 parts301Unlicense
  • 2 layers43.3 × 21 mmNanoS3 Carrier, the printed circuit board in 3D

    NanoS3 Carrier

    UnexpectedMaker/esp32s3

    Assorted files for my ESP32-S3 development boards

    25 parts296

Questions

What parts does the EPROM Prog PS use?

25 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 EPROM Prog PS KiCad files?

From the AebrahmRamos/M68HC11-EPROM-Programmer repository on GitHub, at the commit this page was made from: the board is KiCad-Project/EPROM_Prog_PS/EPROM_Prog_PS.kicad_pcb and its schematic KiCad-Project/EPROM_Prog_PS/EPROM_Prog_PS.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the EPROM Prog PS design in my own project?

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