Hias 512K SRAM Extension for XL/XE

Year
2009
Type
DIY project
Category
Memory upgrade
Manufacturer
Matthias Reichl (HiassofT); SMD board version by Wolfram Fischer (Mega-Hz)
Schematic titled '512k SRAM extension for Atari XL/XE, (c) 2006-2010 by Matthias Reichl', showing a GAL 22V10, a 512K SRAM, mode switches EN5 and EN7, an optional DS1210 battery-backup circuit, and the SRAM piggy-backed on the OS or BASIC ROM

Overview

Matthias Reichl (HiassofT, "Hias") designed this upgrade to be cheap, easy to build and as compatible as possible. He aimed for 10–15 euros in parts. Instead of a board full of DRAM and logic, it uses a single 512K static RAM and a single GAL 22V10, plus a few resistors and wires. The SRAM is soldered piggy-back on one of the computer's ROM chips, because their pinouts are nearly the same. Version 1.2 was released in September 2009 and version 1.3 on 14 December 2010. The design notes carry the dates 2006–2010.

It works in any XL/XE with at least 64K, including a 600XL that has been upgraded to 64K. Reichl's prototype was in his own 600XL.

Modes

Two switches (or jumpers), EN5 and EN7, select one of four modes:

EN5 EN7 Mode PORTB bits used Compatible with
open open off none stock machine
closed open 256K 2, 3, 5, 6 (bit 4 enables) "Atari Magazin" RAM disk
open closed 256K with separate ANTIC access 2, 3, 6, 7 (bit 4 CPU, bit 5 ANTIC) Compy-Shop (Reichl also lists RAMBO), with 130XE-style separate ANTIC banking
closed closed 512K 2, 3, 5, 6, 7 (bit 4 enables) 512K RAMBO-type software

In the modes that use bit 7, the self-test ROM is switched off while the extension is enabled. If you leave out the switches and tie the mode pins to ground, the board runs permanently in 512K mode. For background on PORTB banking and what each bit costs, see DIY XL/XE memory expansion.

Parts

  • 512K SRAM: Alliance AS6C4008-55PCN or BSI BS62LV4006PC
  • GAL 22V10-15 and a 24-pin narrow DIP socket
  • 8 × 4.7 kΩ resistors, a 100 nF capacitor, 2 SPST switches
  • A GAL programmer, to program SRAM13.JED. The file includes test vectors, which are worth running to weed out bad GALs.
  • Optional battery backup: a DS1210 (or MXD1210) NVRAM controller, a second 100 nF capacitor and a 3 V cell such as a CR2032. The SRAM must support 3 V data retention.

Building it (outline)

  1. Mount the SRAM. Reichl recommends the BASIC ROM, so the OS socket stays free for a replacement OS. Bend up SRAM pins 22, 24 and 28, align SRAM pin 16 (GND) with BASIC ROM pin 12, and solder the rest. Add two wires: SRAM pin 4 to CPU pin 20 (A11) and SRAM pin 28 to CPU pin 23 (A13). The ROM swaps A11 and A12, and that's deliberate. The guide also gives an alternative OS-ROM mounting.
  2. PIA: bend up pins 12–17 (PB2–PB7) and fit 4.7 kΩ pull-ups to pin 20 (+5 V), so the extension stays off if software sets the port to input. On 600XL/800XL boards only pin 17 is actually connected, so clipping just that pin is enough. On XE boards check the traces. Wire PB2, PB3 and PB6 to SRAM pins 1, 2 and 3 (A18, A16, A14).
  3. MMU: bend up pin 16 (/CI, CAS-inhibit). The GAL intercepts it to disable the built-in RAM when the extension is active.
  4. GAL: wire it to the CPU (A14, A15, /HALT, R/W, Φ2, Φ0, power), to PIA PB4/PB5/PB7, to the SRAM's /OE, /WE, A17, A15 and /CE, to MMU /MAP and the original /CI, and send the new /CI to wherever MMU pin 16 used to go: FREDDIE pin 4 on machines with FREDDIE, the 74LS08 on 800XL/600XL boards.
  5. Test: with both switches open the machine must behave normally, self-test included. Then close the switches and run a test program such as XRAM, which can re-detect banks when you press DEL after changing modes.

Design notes

  • Write timing: /WE is generated from Φ2 AND Φ0. This shortens the write slightly and cures failures on later XL/XE machines whose address and data lines don't stay valid as long after Φ2 falls as the specification says.
  • /CE from Φ0 OR Φ2 (added in 1.3) fixes problems with newer BSI SRAMs.
  • ANTIC access isn't magic. Reichl explains that the 130XE's "special" U35 (a 74LS95) is just a register clocked on the falling edge of Φ2. It latches ANTIC's /HALT request so the logic knows which cycle belongs to ANTIC. The GAL does the same job.
  • Battery backup uses a DS1210 rather than diodes. It holds /CE off until +5 V is stable, which protects the contents from glitches at power-on and power-off.

Ready-made versions

Wolfram Fischer (Mega-Hz) produced an SMD board of this design, the 512 Kbytes SRAM SMD Memory Expansion V3.x (2011), with optional mode switches and battery backup. See Mega-Hz. The schematic (PNG and Eagle), GAL source (PALASM) and JEDEC file are on Reichl's site, horus.com/~hias/atari/, alongside his Turbo Freezer, AtariSIO and other projects.

Credits