Skip to the content
2 layers127 × 50.8 mmPsu, the printed circuit board in 3D

Retro-tech HP-25 calculator clone using Z80

Size
127 × 50.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
29
Nets
22
Pads
70
Tracks, vias
64, 4
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
9 May 2020
Updated
19 Feb 2025

Overview

Psu is an open-source printed circuit board by eshazen, from the eshazen/retro-25 repository on GitHub. It is a 2-layer board of 127 × 50.8 mm with 29 parts on 22 nets, routed with 64 tracks and 4 vias.

It is built around the IRF540N. Its parts include 8 resistors, 6 transistors, 4 connectors, 2 capacitors and 2 ICs. It belongs with the retro computing and games and power boards of this library.

Main components

1

README

README.md

retro-25

Retro-tech HP-25 calculator clones using Z80

<img src=https://github.com/eshazen/retro-25/blob/master/talks/HCC2020/figs/all3_800.jpg width=600>

News!

2023-01-02

This is branch "ScopeClock". Building up another CPU board for used as a general purpose computer for the scope clock, along with the DAC/Interface board from that project, which (whew!) has an actual UART for the serial port.

2021-01-01

Time for something new! The VFD HP-25 is cool and all, but I've lusted after an HP-97 most of my life, plus I love nixie tubes! Starting to think about a nixie-display HP-97 emulator. Probably no card reader, but a small printer is certainly doable. Inspiration from Oliver De Smet (archived elswhere in this repository just in case):

2020-10-10

I gave a talk at the HPCC 2020 conference on these calculators. You can see my slides here: http://www.hpcc.org/conferences/HPCC2020/HPCC2020_04_Retro_25_revC.pdf

Built a new version with VFD display tubes!

See notes.

What's here

hardware has the design files for the CPU and keyboard/display boards

  • firmware/bootloader has a small serial/flash bootloader which should be programmed at $0000
  • firmware/calc has the main calculator operating firmware
  • firmware/umon has a simple Z80 monitor I wrote for debugging
  • firmware/basic has a hacked version of MS BASIC (4K integer version from 1978)
  • util has some utility software, including: firmware loader, program loader, stack/register clip utility, simple assembler for HP-25 programs, and some template and example programs

Hardware

The hardware consists of two boards, a CPU board and an LED+display board.

CPU board ECOs (mistakes!)

  • D2 in the reset circuit - silkscreen is backwards
  • U1 pin 11 must be wired to J17 pin 11
  • BUSRQ should be tied high or pulled up. Solder a 1k resistor (or just a wire) from the Z80 (U3) pin 25 to +5V

Also, recommend to cut the trace to nWE on the EEPROM (U4, pin 27) and wire from pin 27 to pin 28. This disables writing to the EEPROM. Not essential, but I recommend programming the EEPROM separately in a programmer. Rogue code can easily wear out the EEPROM (as I found the hard way!) if writing is enabled. You have been warned.

Memory and I/O map

The memory map is very simple:

text
EEPROM | 0000-7FFF
RAM    | 8000-FFFF

There are six decoded I/O ports:

portnamebitsdescription
00KB (write only)bit 0KB column 1
""bit 1KB column 2
""bit 2KB column 3
""bit 3KB column 4
""bit 4KB column 5 and switches
""bit 5-not used-
""bit 6LED on CPU board
""bit 7Serial output
40Digits 0-7bits 0-7ICM7218 display data
41Digits 0-7bits 0-7ICM7218 control data
80KB (read only)bit 0KB row 1
""bit 1KB row 2
""bit 2KB row 3
""bit 3KB row 4
""bit 4KB row 5
""bit 5KB row 6
""bit 6KB row 7
""bit 7Serial input
c0Digits 8-11bits 0-7ICM7218 display data
c1Digits 8-11bits 0-7ICM7218 control data

All ports except 80 are write-only; port 80 is read-only.

A bit-banged serial port using an FTDI USB adapter is provided as bit 7 of ports 00 and 80. Note that these ports share keyboard scanning functions, so the code must be carefully written if both functions are used simultaneously.

There are no interrupts.

Firmware

See firmware/calc for calculator operating program

See util for assembler and loader utilities

Parts

29
QtyValueFootprintReferences
6R_USResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2, R3, R4, R5, R6
20.1uFCapacitor_THT:C_Disc_D3.8mm_W2.6mm_P2.50mmC1, C2
22N3904Package_TO_SOT_THT:TO-92_InlineQ1, Q2
22N3906Package_TO_SOT_THT:TO-92_InlineQ3, Q4
2Conn_01x02_MaleConnector_Molex:Molex_KK-396_A-41791-0002_1x02_P3.96mm_VerticalJ1, J4
2IRF540NPackage_TO_SOT_THT:TO-220-3_VerticalQ5, Q6
2LEDLED_THT:LED_D3.0mmD1, D2
1150Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR8
12.5kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR7
1BOOSTebay_dc:ebay_XL6009U1
1BUCKebay_dc:ebay_buckU2
1Conn_01x04_MaleConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2
1Conn_01x06_MaleConnector_Molex:Molex_KK-396_A-41791-0006_1x06_P3.96mm_VerticalJ3
1SW_SPSTConnector_Molex:Molex_KK-396_A-41791-0002_1x02_P3.96mm_VerticalSW1

The 25 most common of 29 parts.

More from eshazen/retro-25

3
  • 2 layers116.8 × 172.7 mmLed display, the printed circuit board in 3D

    Led display

    eshazen/retro-25

    Retro-tech HP-25 calculator clone using Z80

    80 parts33
  • 2 layers116.8 × 147.3 mmCpu, the printed circuit board in 3D

    Cpu

    eshazen/retro-25

    Retro-tech HP-25 calculator clone using Z80

    52 parts33
  • 2 layers200 × 65 mmVfd display, the printed circuit board in 3D

    Vfd display

    eshazen/retro-25

    Retro-tech HP-25 calculator clone using Z80

    48 parts33

Similar boards

  • 2 layers96.8 × 97 mmPsoc5power, the printed circuit board in 3D

    Psoc5power

    profdc9/DRSSTC-PCB-Pack

    A pack of PCBs for a dual resonant solid state tesla coil setup. Pretty much everything you need.

    133 parts59
  • 2 layers124.5 × 77.5 mmAutopatzer, the printed circuit board in 3D

    Autopatzer

    jes/autopatzer

    Automatic chess board

    40 parts30
  • 2 layers55 × 90.8 mmSlider, the printed circuit board in 3D

    Slider

    DusterTheFirst/rocketry

    🚀 Thrust Vector Controlled Model Rockets

    33 parts22GPL-3.0
  • 2 layersVedro ardu, the printed circuit board in 3D

    Vedro ardu

    oleg-milantiev/ros2-vedrus

    ROS2 Vedrusohod bot sources

    12 parts9Apache-2.0
  • 4 layers147.8 × 77 mm2xBLDCPicoV3, the printed circuit board in 3D

    2xBLDCPicoV3

    AmericanRework/Pico-2x-BLDC

    One RP2040 Pico drives two brushless motors! SimpleFOC + Halls + 2304 drivers + TO-220 mosfets or IGBTs. Plugs directly into 450x automower motors.

    135 parts7
  • 2 layersPCB Layout, the printed circuit board in 3D

    PCB Layout

    chgopireddy/Full-Bridge-Class-D-Audio-Amplifier

    LTspice Model for Full Bridge Class D, Voltage Mode Control, Peak Current Mode Control

    63 parts6
  • 2 layers147.2 × 58.3 mmLi IonBatteryProtection, the printed circuit board in 3D

    Li IonBatteryProtection

    cnobile2012/Li-IonBatteryProtection

    Circuit to protect Li-Ion and Li-Po batteries at the cell level.

    81 parts6MIT

Questions

How big is the Psu PCB?

It measures 127 × 50.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Psu use?

29 parts, built around the IRF540N. 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 Psu KiCad files?

From the eshazen/retro-25 repository on GitHub, at the commit this page was made from: the board is hardware/psu/trunk/psu.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Psu design in my own project?

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