MegaFlash

From CPCWiki - THE Amstrad CPC encyclopedia!
Revision as of 03:52, 30 August 2011 by Ythcal (Talk | contribs) (Description)

Jump to: navigation, search
The MegaFlash





Description

The MegaFlash is a ROMBoard similar to the MegaROM. It provides up to 32 virtual ROMs (Numbered 0 to 31) in a single 512K Flash ROM, but unlike the MegaROM, the MegaFlash can be populated directly from the CPC using TFMs MegaFlashROManager (available for Basic and FutureOS) without the need for an EPROM Burner or any additional hardware. Other ROManagement software will currently not work with the MegaFlash.

Being based on Flash technology it also doesn't require a battery like other solutions did in the past. Unfortunately, due to complexity, the PCB design needs to be double-sided, making this project a little more difficult for hobbiests to build than the MegaROM was.

The complete hardware of the MegaFlash was developed by Bryce and released in August 2011.

If you have any further questions regarding this project contact Bryce through the Wiki Forum.

Warning / Disclaimer

Although I have taken the utmost care preparing this documentation, I do not guarantee that it is error free and I accept no responsibility for damage to anyone’s CPC, other personal equipment or injury inflicted on you or others.


The Circuit

MegaFlash Sch.PNG


The main component on the PCB is the Flash Memory. This must be a W29C040-90 (ie: the Winbond version) to be fully compatible with TFMs MegaFlashROManager The five other ICs are standard TTL Logic devices and only need to be of the type 74LSxx (74HCxx, 74Fxx etc will also work but are not necessary in this application). The finished PCB is approx. 70mm x 55mm.

Parts List

This is the Parts list for the Centronics version:

Component Quantity
W29C040-90 1
74LS374 1
74LS32 2
74LS02 1
74LS20 1
100µf 16V Electrolytic Capacitor 1
100nf Ceramic Capacitor 6
1K 1/4W Resistor 3
220ohm 1/4W Resistor 1
1N4148 Diode 3
3mm LED (red) 1
32 Pole PLCC IC Socket 1
50 (2x25) way Header RM 2.54 1
3 way header RM 2.54 (for jumpers) 2
Jumper Bridge 2
DPDT Slider switch RM 2.54 1
50 way Centronics plug 1
50 way flat cable 1
50 flat cable connector 1

Note: In the picture above and also in the parts list, I have chosen to use a header connector on the PCB. I did this because I intend using the MegaFlash on both a UK CPC464 and a German CPC6128 and by using a header connector I can swap the connection cable to suit which CPC I'm connecting to. You may choose a direct connection to the PCB if you don't need this feature, dropping the price another few cents.


MegaROM Cables.png


Construction Tips

As the PCB design is double-sided there are no bridges this time. The components may be added in the order you prefer.

The polarity of C7 and diodes D1 to D3 is critical, the other capacitors and resistors R1 to R4 may be soldered in either direction. The orientation for the ICs can be found in the part position layout file below (Coming Soon).

Closing an IDC connector on a 50way flat cable can be a difficult task and if not done properly, may cost you a connector or two. I recommend first putting the cable in position and pushing it slightly closed to keep the cable in place, then place the connector in a bench vice with rubber between the metal of the vice and the connector, then slowly closing the vice on the connector until it reaches it's home position. You may have to re-position the connector a few times until it's completely closed. Bad connections with these connectors are the cause of many peripherals not working, the pins in the centre cause the most issues, so turn the connector 90° in the vice for a final squeeze to make sure these pins are properly connected. Don't try closing an IDC connector with a hammer, pliers or other tool that only applies pressure to a tiny area of the connector, it will break!

Using The MegaFlash

It is possible to populate the Flash Memory with a good EPROM Burner. If you choose to do this, the ROMs should be saved to the following addresses. The Memory allocation file is also available below in PDF Format.


MegaFlash Memory Map.PNG


However, using TFMs MegaFlashROManager Software, you can populate the MegaFlash directly from the CPC. All instructions on how to use the ROManager software can be found here.

When using the ROManager software to write ROMs to the MegaFlash and other functions such as Delete / Park, you will be requested to switch to Write-mode. Only switch to write mode when requested to do so. Leaving the write mode switched on, or restarting the CPC while write-mode is enabled can cause the saved ROM images to be corrupted. The red LED is lit when in write-mode.

The CPC464 and 664 only initialises ROMs 7 to 0 at start up and all other CPCs initialise ROMs 15 to 0. The additional ROM positions can be either initialised by installing the Booster ROM in position 15 or by manually initialising them. Because ROMs 16 to 31 are largely ignored by the computer, this area of memory does not have to adhere to the normal ROM header rules and can also be used to store generic data such as graphics or music data.

Jumper Settings

On the PCB there are two jumpers, which need to be set. Jumper 1 enables or disables ROM 0 on the MegaFlash to allow users to replace the internal ROM on the CPC. Jumper 2 enables or disables ROM 7 on the MegaFlash to choose between the CPCs internal OS ROM or an alternative OS on the MegaFlash. The jumpers need to be set to the correct position otherwise the CPC may not boot. Using the ROManager software it is also possible to enable or disable any of the other 30 virtual ROMs as required.


Compatibility

The MegaFlash is compatible with all 464, 664, 6128, 464+ and 6128+ and can be used to host standard ROM images such as AMSDOS, BCPL, FutureOS, MAXAM, Protext, Utopia, VDOS, XD-DOS.

CPC Specific Limitations:

  • CPC464/664 - The 464 and 664 only scan and initialise ROMs 7 to 0 at start-up. ROMs 15 to 8 are only accessable if manually initialised.
  • CPC6128 - Classic CPC6128 can not overwrite the internal ROM 7 with an external device, to make use of the external ROM 7 the CPC must be modified to allow the internal ROM 7 to be disabled (eg: By adding a switch to the internal ROMs Chip Enable pin)


The MegaFlash fully decodes the Address and Data buses, so it should not clash with any other official expansions installed in parallel or plus cartridges. However, adding two ROMBoards to a CPC in Parallel will cause crashes in some circumstances.

Resources

MegaFTracks.png


File:MegaFlash Layout.zip - PCB Track Layout (Cadsoft Eagle brd format)


File:MegaFlash Memory Map.pdf - EPROM Memory Allocations Chart


A full list of available ROMs can be found here.




Rom Pack Download

Also,Cholo has created this ROM pack to get you started. The contents are as follows:


  • Amsdos 720K (19xx)(-)(720KAMSD.ROM).zip
  • Copymate + v3.2 (1990)(Marco Vieth)(De)(COPYM32.ROM).zip
  • CPM Accessory Rom 1 (1988)(Graduate Software)(CPMACC1.ROM).zip
  • Disc Power (19xx)(-)(DISCPWR.ROM).zip
  • Dos Copy v1.3 and Crime v1.3 (1991)(-)(DOSCRIME.ROM)[ROM v2.1].zip
  • Dragon Breed Rom 1 (19xx)(Dragon Breed)(DBREED1.ROM).zip
  • Kns Rom 6128 v1.01 (1989)(MFW)(KNSROM.ROM).zip
  • Micro Style Rom v2.11 (1989)(Micro Style - PotPlant Systems)(STYLE.ROM).zip
  • Nigdos 2.24 (1988)(-)(NIGDOS.ROM).zip
  • Programmer's Toolbox 1.0a (19xx)(-)(TOOLBOX.ROM).zip
  • Programmers Tool Box v1.2a (19xx)(-)(PT12A.ROM).zip
  • Super Rom v1.0 (1991)(Vorax)(SUPER.ROM).zip
  • T3m Rom (19xx)(-)(T3MROM.ROM).zip
  • UNCR v2.4 - Cruncher Accessory ROM for CPM (1988)(Graduate Software)(CPMCRCH.ROM).zip
  • Utility Suite (19xx)(-)(ROB3ROM.ROM).zip
  • Vorax's CPM Plus Rom #1 (19xx)(Graduate - Vorax)(CPM1.ROM).zip
  • Vortex Ram - Expansion Card ID (19xx)(Vortex)(De)(VRAMID.ROM).zip
  • X-Ddos (1987)(-)(XDDOS111.ROM).zip