Last modified on 6 May 2010, at 17:10

C't 512 KB internal RAM expansion

Revision as of 17:10, 6 May 2010 by Nocash (Talk | contribs) (Installation Guid)

Upgrade of the CPC 6128's internal RAM to 512 KiB as proposed in the article Aus David wird Goliath: 512 KB RAM für Schneider CPC in issue 10/1987, pages 156 to 162 of the German IT magazine c't. The DIY project name is CPC 6512. The mod requires to remove (or disable) the sixteen RAM chips on the CPC6128 mainboard, and to replace them by bigger chips, plus whatever additional bank selection logic.

One issue later, c't 11/1987, the magazine published a driver which creates a RAM disk within the additional memory. This RAM disk can be used in AMSDOS.

Technical

The memory is accessed via Port 7Fxxh, as on Standard Memory Expansions. Since the internal RAM is removed, its total capacity is only 512K (unlike standard 512K expansions which provide 64K internal plus 512K external memory, ie. 576K total). Altogether, the c't expansion works like a 448K dk'tronics expansion (leaving the banks selected via OUT [7Fxxh],FCh..FFh unused).

One half (256K) of the total (512K) expansion memory can be accessed as Video RAM (with normal expansions, only 64 KB are accessible as VRAM). This is making the expansion slightly incompatible with the dk'tronics standard. However, usually expansion memory is mapped to 4000h-7FFFh, whilst VRAM is usually mapped to C000h-FFFFh. So, most existing software may work with it, without accidently displaying garbage on the screen.

Installation Guide

Components

 16x 41256 (256Kx1 DRAM)   ;replacing the CPC6128's 16 built-in 64Kx1 DRAMs
  1x PAL 16L8              ;replacing the CPC6128's 16 built-in PAL
  1x 74LS38 (Quad 2-input NAND, OC)
  1x 74LS273 (8bit latch, of which only 6bit are used here)
  1x 2200 Ohm resistor
  1x 470 Ohm resistor
  1x 47 Ohm resistor

Step 1 - Replacing the RAM

The old 64Kx1 DRAMs have same pin-outs as the new 256Kx1 ones (except, pin 1 was NC on old chips, on new chips it's A8 of RAS:CAS addresses; aka A16,A17 of linear addresses).

  • Replace the old RAMs by the new RAMs.
  • Wire pin 1 (formerly NC) of all RAMs to GND (allowing to test the circuit after Step 1) (later on, it will be wired to RAS:CAS A8 in Step 2).

Step 2 - Daughterboard Logic

The original article has been confusing on this part. It basically said that one needs "four additional connections", but without giving too clear info on which signals are to be connected to which locations.

  • Replace the old PAL by the new daughterboard (containing the new PAL, and the 2 logic chips and 3 resistors).

Compatibility Problems

  • RAMDIS is not supported, not a problem in most cases, but won't work with some special types of expansion hardware, like Multiface II.

Missing Info

  • Unknown which banks are usable as VRAM
    • The first four 16K bank are (probably) usuable as VRAM (as on all 64K CPC models)
    • The next four 16K bank are (hopefully) not usuable as VRAM (for CP/M+ compatibility, which uses them as Work RAM)
    • For further banks it's totally unknown if they are used as VRAM or not
  • Unknown if it's fully dk'tronics compatible, or more like incompletely implemented Inicron variant
  • Unknown what happens on accessing the unused region via OUT [7Fxxh],FCh..FFh
  • Chipset / Schematic is unknown

Newer Info

Having a short look at the article, it seems to be all different as than expected:

  • There is no dk'tronics compatibility intended - however, c't and dk'tronics are based on the CPC6128 banking mechanism, so they work similar, and to some level there is some (unintended) compatibility. Namely, ONE HALF of the memory can be accessed in dk'tronics style fashion.
  • There seems to be no hardware based "Video RAM" support at all. However, there's some unspectacular software based example included that copies expansion RAM to VRAM via LDIR opcode.

Scanned Article / Schematics

Offtopic

The CPC 6512 c't Memory Expansion is not to be confused with issues CPC 6512 and CPC 6513 of the more popular World War II Fanzine from Concord Publications Company.

Related hardware modifications