
LongTimekeeper Bottom
Guimli/LongTimeKeeper
Drop-in replacement for the ST M48T58 TIMEKEEPER NVRAM (DIP-28) with a user-replaceable 1/2AA Tadiran SL-850 cell

Drop-in replacement for the ST M48T58 TIMEKEEPER NVRAM (DIP-28) with a user-replaceable 1/2AA Tadiran SL-850 cell
TimekeeperBat Up is an open-source printed circuit board by Guimli, from the Guimli/LongTimeKeeper repository on GitHub, published under the CERN-OHL-S-2.0 licence. It is a 2-layer board of 18.4 × 36.3 mm with 2 parts on 2 nets, routed with 3 tracks and 0 vias.

LongTimeKeeper is a drop-in replacement for the STMicroelectronics M48T58 / M48T58Y TIMEKEEPER® NVRAM (8 K × 8 battery-backed SRAM with real-time clock) in its 28-pin 600 mil PCDIP "CAPHAT" package.
The original PCDIP part has its lithium cell sealed in the package. When the cell runs flat, the chip loses both the clock and the SRAM contents, and the whole IC has to be replaced. LongTimeKeeper uses the surface-mount M48T58Y in SOH28 instead. That package normally takes an ST SNAPHAT® battery/crystal top. Here the SNAPHAT is replaced by:
The cell has a much larger capacity than the original internal cell, and you can swap it without desoldering anything or losing the board's socketed footprint.
The adapter is a stack of two PCBs:
| Board | KiCad project | Role |
|---|---|---|
| Bottom | LongTimeKeeper_Bottom/LongTimekeeper_Bottom.kicad_pro | DIP-28 (15.24 mm) pin-out that plugs into the original M48T58 socket. It carries the M48T58Y-SOH28 (U7), the 32.768 kHz crystal (Y1) on the SNAPHAT X1/X2 contacts, and a 4-pad battery connector (BT1) wired to the SNAPHAT BAT+/BAT- contacts. |
| Up (battery) | LongTimeKeeper_Up/TimekeeperBat_Up.kicad_pro | Carries the Keystone 108 1/2 AA holder with its 108C cover (BT1). It connects to the bottom board through 4 × 2.54 mm pins (J1, Battery_PCB footprint), which also hold the two boards together mechanically. |
Signal mapping: every DIP-28 pin of the original package (A0–A12, DQ0–DQ7, Ē1, E2, Ḡ, W̄, FT, VCC, VSS) is routed 1:1 to the matching pin of the SOH28 device, so the host system sees an unmodified M48T58. Both boards are 2-layer, 1.6 mm FR-4, and fit within the original DIP-28 footprint (about 18.4 × 36.3 mm).
The projects were created with KiCad 10.
Prices are indicative, VAT included (TTC, 20 % French VAT), for 1 unit, checked in October 2026 at DigiKey France, except where noted. Distributor prices change often, so check them before ordering.
| Qty | Ref. | Description | Manufacturer | Manufacturer P/N | Unit price TTC | Total TTC |
|---|---|---|---|---|---|---|
| 1 | U7 | TIMEKEEPER® NVRAM 64 Kbit (8K×8) + RTC, 5 V, SOH28 (SNAPHAT socket) | STMicroelectronics | M48T58Y-70MH1F | 24.97 € | 24.97 € |
| 1 | Y1 | Crystal 32.768 kHz, ±20 ppm, 12.5 pF, SMD 3.2 × 1.5 mm (3215) | Epson | FC-135 32.7680KA-A3 (Q13FC1350000400) | 2.81 € | 2.81 € |
| 1 | BT1 (Up) | Battery holder, 1 × 1/2 AA, through-hole | Keystone Electronics | 108 | 1.52 € | 1.52 € |
| 1 | BT1 (Up) | Battery holder cover, 1/2 AA | Keystone Electronics | 108C | ≈ 0.58 € ¹ | 0.58 € |
| 1 | — | Lithium cell Li-SOCl₂ 3.6 V 1.2 Ah, 1/2 AA (ER14250), standard terminals (no tabs), SL-800 XOL – extended operating life (very low self-discharge) | Tadiran | SL-850/S | 14.56 € ⁴ | 14.56 € |
| 2 | U2 | Male pin header 1 × 14, 2.54 mm, vertical (DIP-28 legs) | Würth Elektronik | 61301411121 (WR-PHD) | ≈ 1.10 € ² | 2.20 € |
| 4 | J1 / BT1 | Single 2.54 mm pins for the board-to-board link (cut from a 1 × 40 strip) | Würth Elektronik | 61304011121 (WR-PHD 1 × 40) | ≈ 2.20 € ² (strip) | 2.20 € |
| Subtotal components | ≈ 48.86 € | |||||
| 1 | — | PCB "Bottom", 2 layers, 1.6 mm, 18.4 × 36.3 mm (Gerber/LongTimekeeper_Bottom_Gerber.zip) | JLCPCB | — | ≈ 1.30 € ³ | 1.30 € |
| 1 | — | PCB "Up", 2 layers, 1.6 mm, 18.4 × 36.3 mm (Gerber/TimekeeperBat_Up_Gerber.zip) | JLCPCB | — | ≈ 1.30 € ³ | 1.30 € |
| Total per module | ≈ 51.46 € |
¹ TME price (0.48 € excl. VAT, sold in packs of 10).
² Estimated.
³ Per board, from a batch of 5 at JLCPCB, with shipping and VAT included. See PCB cost estimate.
⁴ 1001Piles price (France, VAT included). Order the /S variant (standard terminals, no solder tabs) to fit the Keystone 108 holder. The /T variant has solder tabs and does not fit.
Both boards are small (about 18.4 × 36.3 mm, 6.7 cm² each), 2-layer, 1.6 mm FR-4, and use standard rules. They qualify for the cheapest prototype offers. Prices are indicative and VAT included (20 %). The two designs are ordered as two separate jobs.
| Fab | Order | Fabrication | Shipping + VAT (est.) | Total TTC | Per module (Bottom + Up) |
|---|---|---|---|---|---|
| JLCPCB (China) | 5 × Bottom + 5 × Up, HASL, green | 2 × ~2 USD ≈ 3.70 € | ≈ 9 € (economy shipping) | ≈ 13 € | ≈ 2.60 € |
| AISLER (Germany) | 3 × Bottom + 3 × Up, 2-layer "Budget" | 2 × (12 € job fee + 3 × 6.7 cm² × 0.067 €/cm²) ≈ 26.70 € excl. VAT | included | ≈ 32 € | ≈ 10.70 € |
JLCPCB is the cheapest option, but the low price is mostly lost if you order only one module, because shipping is a fixed cost. AISLER is about four times more expensive per module, but it ships faster within the EU and charges no import fees. Use a quote calculator for an exact price: some options increase it, such as ENIG finish (flatter pads, which make the SOH28 easier to solder), a non-green soldermask or express shipping.
The cell supplies the M48T58Y only while the host is switched off (VCC below the switchover voltage VSO). When the host is on, the chip runs from VCC and draws no current from the cell.
Inputs
| Parameter | Value | Source |
|---|---|---|
| SL-850 nominal capacity | 1.2 Ah (1 200 mAh) | Tadiran SL-850 datasheet |
| SL-800 (XOL) self-discharge at room temperature | ≈ 0.7 % per year (typical) → ≈ 8.4 mAh/year; ≤ 1 % per year (max.) → ≤ 12 mAh/year | Tadiran XOL series page / Tadiran catalogue |
| XOL rated operating life | up to 40 years | Tadiran XOL series page |
| M48T58 battery current IBAT = IARRAY + ICLOCK (64 Kbit, 4T cell), typical | 40 + 497 = 537 nA at 20 °C; 511 + 619 = 1 130 nA at 70 °C | ST AN1012, Table 3 |
The calculation follows the AN1012 formula, with the cell's self-discharge added to the battery current:
life (years) = capacity ÷ (8 760 h × (1 − VCC duty cycle) × IBAT + yearly self-discharge)
With a VCC duty cycle of 0 % (host always off), the M48T58Y draws 537 nA × 8 760 h ≈ 4.7 mAh/year at 20 °C and 1 130 nA × 8 760 h ≈ 9.9 mAh/year at 70 °C.
Estimate (host always off, 100 % battery backup)
| Temperature | IBAT | Typical self-discharge (0.7 %/year) | Worst-case self-discharge (1 %/year) |
|---|---|---|---|
| 20 °C | 537 nA | 4.7 + 8.4 = 13.1 mAh/year → ≈ 92 years | 4.7 + 12 = 16.7 mAh/year → ≈ 72 years |
| 70 °C ¹ | 1 130 nA | 9.9 + 8.4 = 18.3 mAh/year → ≈ 66 years | 9.9 + 12 = 21.9 mAh/year → ≈ 55 years |
¹ The self-discharge figures are specified at room temperature. At 70 °C the cell's real self-discharge is higher, so this row overestimates the life.
Conclusion. Even with the host always off, the calculated life is far beyond the cell's rated life. The practical limit is therefore the cell's rated life, not its capacity: Tadiran rates the XOL series for up to 40 years of operation. Expect about 40 years at room temperature. For comparison, AN1012 (Table 13) gives the original M48T58 with its internal 48 mAh cell about 9.4 years (typical) at 20 °C and 4.8 years at 70 °C when the host is always off.
Factors that shorten this life:
Monitoring. At each power-up, the M48T58Y sets its battery low flag (BL, bit D6 of register 1FFDh) when the cell is below about 2.5 V. Li-SOCl₂ cells keep a flat voltage of about 3.6 V almost until they are empty, so treat this flag as the signal to replace the SL-850.
Copyright © 2026 Guimli.
This hardware design is licensed under the CERN Open Hardware Licence Version 2 – Strongly Reciprocal (CERN-OHL-S-2.0).
You may redistribute and modify this source and make products using it under the terms of the CERN-OHL-S v2. This source is distributed WITHOUT ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING OF MERCHANTABILITY, SATISFACTORY QUALITY AND FITNESS FOR A PARTICULAR PURPOSE. See the CERN-OHL-S v2 for applicable conditions.
Third-party documents in Datasheet/ and 3D models from manufacturers remain the property of their respective owners and are not covered by this licence.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 1 | 3.6V | Additional:108-745412 | BT1 |
| 1 | PCB_BAT | Additional:Battery_PCB | J1 |

Guimli/LongTimeKeeper
Drop-in replacement for the ST M48T58 TIMEKEEPER NVRAM (DIP-28) with a user-replaceable 1/2AA Tadiran SL-850 cell

hzeller/rpi-rgb-led-matrix
Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO


adamws/kicad-kbplacer
KiCad plugin for automatic keyboard's key placement and routing

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.

NVNTLabs/switch2-SDEX2M2
Micro SD Express to M.2 NVME Adapter for Nintendo Switch 2

BlueSCSI/BlueSCSI-v2
BlueSCSI v2/Ultra - an open source, open hardware, SCSI emulator using the Pi Pico PR2040 and Pico 2 RP2350

ohmtech-rdi/eurorack-blocks
Software to Hardware Prototyping for Eurorack using C++, Max/Gen~ or Faust

It measures 18.4 × 36.3 mm and has 2 copper layers, 1.6 mm thick.
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.
From the Guimli/LongTimeKeeper repository on GitHub, at the commit this page was made from: the board is LongTimeKeeper_Up/TimekeeperBat_Up.kicad_pcb and its schematic LongTimeKeeper_Bottom/LongTimekeeper_Bottom.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the CERN-OHL-S-2.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).