RAM-CART and DIY Battery-Backed RAM Cartridges

Year
1993
Type
DIY project
Category
Battery-backed RAM cartridge
Manufacturer
RAM-CART system by L.K. Avalon (Poland); DIY variants by various authors
Polish magazine advertisement with a drawing of a grey cartridge labelled 'RAM-CART', bullet points describing a universal battery-backed cartridge module for Atari XL/XE, prices for 64 KB and 128 KB systems, and the L.K. Avalon address in Strzyżów.

Overview

For Atari owners in Poland, many of whom relied on cassette, a RAM cartridge was an attractive way to cut loading times. It doesn't replace the tape recorder or disk drive, but it makes work and play much quicker to start. The RAM-CART system, documented in a 1993 user's manual by Jarosław Syrylak for L.K. Avalon, packs static RAM into a cartridge and keeps it alive with a small battery when the computer is off. You load favourite games and programs into it once, then carry it around and plug it in like any cartridge. The software disk included a self-booting DOS (DOS.SYS, DOS.AUT, DOS.BAT with AUTOEXEC.BAT support), an initialiser (INIT.COM), tape-to-cart copiers in normal and turbo versions (TAPE.COM, TURBO.COM), a cart-to-turbo-tape copier (RAMTUR.COM), FCOPY.COM, and SW.COM to switch the operating mode.

Because it lives in cartridge space and is battery-backed, a RAM cartridge:

  • doesn't conflict with ordinary memory expansions, which bank at $4000–$7FFF;
  • keeps its contents through power-off;
  • installs outside the computer, with no soldering inside the Atari.

How it works

The cartridge port supplies everything needed: address lines A0–A12, data D0–D7, R/W, Φ2, and the select lines. When a cartridge pulls RD4 or RD5 high, the MMU disables internal RAM at $8000–$9FFF or $A000–$BFFF and asserts /S4 or /S5 whenever those areas are addressed. /CCTL goes low for any access to page $D5, which is where the bank register lives.

RAM-CART 128/256 register at $D500:

Bits Function
D0 / D1 map the RAM into $8000–$9FFF / $A000–$BFFF
D2 lock the register (until power-off or the module's own reset button)
D3–D5 select the memory bank

A two-pole read/write switch sets the mode. In write mode the register clears at power-up, so the computer boots normally and you can fill the RAM. In read mode the clear is inverted: RD5 comes up active, the cart appears at $A000 and runs its init code like any ROM cartridge, typically starting its DOS, which then unmaps the cart (usually by writing $01). The module's local RESET button clears the register, so you can re-enter the cart by pressing it and then the computer's RESET.

Building one

RAM-CART 128K (homebrew parts list): a 628128 (128K×8) SRAM, one each of 7400, 7402, 7404 and 74174, resistors (2 × 470 Ω, 4.7 kΩ, 470 kΩ), a 10 µF capacitor, and a 47 µF tantalum plus 100 nF across the backup supply. Add two silicon diodes with the highest possible reverse resistance, red and green LEDs, a reset button, and the dual read/write switch. The notes stress low-leakage capacitors, because leakage decides how long the 3 V battery lasts. LS or HCT logic lowers consumption. Decouple each IC with 47 nF.

RAM-CART 128/256: two 128K memories plus switches P1 (2 × 128K or 1 × 256K) and P2 (swap carts, or swap the 256K halves so that, for example, D7: and D8: trade places). In the 256K and second 128K modes, writes to $D500 aren't blocked.

SIDICAR (Jarosław Krysztopik, translated from Tajemnice Atari): a deliberately small 32K design. A 62256 SRAM at $8000–$9FFF is split into four 8K banks by a write-only CARSET latch (a 74LS175) at $D5FF. NAND gates make the SRAM's /OE and /WE from R/W and Φ2, and a resistor holds /WE high at power-up. Backup works because CMOS SRAM retains data above about 2 V, using roughly 50 nA with /CS held at Vcc. A diode stops the battery from trying to power the whole computer. For example, LDA #%01111110 / STA $D5FF selects bank 2, and LDA #%01101111 returns normal Atari RAM. In his published correction, the author fixes the CLK timing (add 10–330 pF experimentally on the 74x175 clock) and suggests a 33 Ω series resistor on D7 in crowded systems.

Cautions

  • Insert and remove cartridges with the power off. Krysztopik's correction retracts an earlier suggestion otherwise.
  • 74LS inputs load the data bus. Be careful when stacking several expansions.
  • An optional PROTECT switch that ties /WE to +5 V turns the cart into a write-protected "ROM".

Credits