

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
1README
README.mdretro-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):
- https://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv020.cgi?read=204526
- https://sites.google.com/site/olivier2smet2/hp_projects/hp97
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/bootloaderhas a small serial/flash bootloader which should be programmed at $0000firmware/calchas the main calculator operating firmwarefirmware/umonhas a simple Z80 monitor I wrote for debuggingfirmware/basichas a hacked version of MS BASIC (4K integer version from 1978)utilhas 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:
EEPROM | 0000-7FFF
RAM | 8000-FFFFThere are six decoded I/O ports:
| port | name | bits | description |
|---|---|---|---|
| 00 | KB (write only) | bit 0 | KB column 1 |
| " | " | bit 1 | KB column 2 |
| " | " | bit 2 | KB column 3 |
| " | " | bit 3 | KB column 4 |
| " | " | bit 4 | KB column 5 and switches |
| " | " | bit 5 | -not used- |
| " | " | bit 6 | LED on CPU board |
| " | " | bit 7 | Serial output |
| 40 | Digits 0-7 | bits 0-7 | ICM7218 display data |
| 41 | Digits 0-7 | bits 0-7 | ICM7218 control data |
| 80 | KB (read only) | bit 0 | KB row 1 |
| " | " | bit 1 | KB row 2 |
| " | " | bit 2 | KB row 3 |
| " | " | bit 3 | KB row 4 |
| " | " | bit 4 | KB row 5 |
| " | " | bit 5 | KB row 6 |
| " | " | bit 6 | KB row 7 |
| " | " | bit 7 | Serial input |
| c0 | Digits 8-11 | bits 0-7 | ICM7218 display data |
| c1 | Digits 8-11 | bits 0-7 | ICM7218 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| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | R_US | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R1, R2, R3, R4, R5, R6 |
| 2 | 0.1uF | Capacitor_THT:C_Disc_D3.8mm_W2.6mm_P2.50mm | C1, C2 |
| 2 | 2N3904 | Package_TO_SOT_THT:TO-92_Inline | Q1, Q2 |
| 2 | 2N3906 | Package_TO_SOT_THT:TO-92_Inline | Q3, Q4 |
| 2 | Conn_01x02_Male | Connector_Molex:Molex_KK-396_A-41791-0002_1x02_P3.96mm_Vertical | J1, J4 |
| 2 | IRF540N | Package_TO_SOT_THT:TO-220-3_Vertical | Q5, Q6 |
| 2 | LED | LED_THT:LED_D3.0mm | D1, D2 |
| 1 | 150 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R8 |
| 1 | 2.5k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R7 |
| 1 | BOOST | ebay_dc:ebay_XL6009 | U1 |
| 1 | BUCK | ebay_dc:ebay_buck | U2 |
| 1 | Conn_01x04_Male | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J2 |
| 1 | Conn_01x06_Male | Connector_Molex:Molex_KK-396_A-41791-0006_1x06_P3.96mm_Vertical | J3 |
| 1 | SW_SPST | Connector_Molex:Molex_KK-396_A-41791-0002_1x02_P3.96mm_Vertical | SW1 |
The 25 most common of 29 parts.
More from eshazen/retro-25
3- 2 layers116.8 × 172.7 mm

- 2 layers116.8 × 147.3 mm

- 2 layers200 × 65 mm

Similar boards
- 2 layers96.8 × 97 mm

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 mm

- 2 layers55 × 90.8 mm

- 2 layers73.7 × 61 mm

- 2 layers

- 4 layers147.8 × 77 mm

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 layers

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 mm

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.