Mega-Micro's
Microcomputer projects new & old
Mega-Micros Home
12 Edgefield Close
Redditch B98 7WB
ENGLAND
 
+44 (0)7973 265572
info@mega-micros.co.uk
68000 68030 CPLD FPGA ARM
SHOP        
The Memory-2 Board
Running your own program code automatically when power is applied requires the creation of a Custom ROM.

The Custom ROM replaces the System ROM (IC6) and so the lower half of the Custom ROM resides in memory at FC0000-FFFFFF, the upper half is unused and unaddressable.

The Custom ROM must contain code to bring the system up as well as code to reset/initialise any programmable I/O devices prior to use.

Follow the instructions below to create a very simple Custom ROM. The source code can be used as a template for getting started with "Bare Metal Programming" on the Mega-68000 Computer System. The example presented here simply boots-up and then displays "12340000" shortly followed by "00005678" on the Hex Display Board.

You will require the following:

Mega-68000 Hardware:

1x Backplane or Backplane-2
1x 68000 CPU Board (J2 pins 2-3 short)
1x Memory-2 Board (IC2 with gal8 firmware + J1 open & JB1 pins 5-6 short)
1x Hex Display Board (Base Address: ABxxxx)
1x Blank AMD Am27C4096 256K x 16 UV EPROM

PC Software:

EASy68K Assembler and EASyBIN Utility.

You can find a download link and more information on the FREE PC software here:

Software/EASy68K

 
Source Code and Byte Swap Utility:
 
1. Download the following ZIP file:
  custom_rom_example1
2. Extract the contents of the ZIP file to a new folder
  Note the name and location of the folder,
  this will be referred to as the project folder
3. Check the contents of the project folder - there should be 3 files:
 
code.X68 EASy68K Source File
byte_swap.bat Windows Batch File
srec_cat.exe Application
 
Getting Started - Custom ROM Creation
 
1. Launch EASy68K
2. Goto Open File from the File menu and browse in the code.X68 file
3. Goto Assemble Source from the Project menu
  'Warnings: 0 Errors: 0' appears
4. Click the 'Close' button
5. Check the contents of the project folder - there should be 2 new files:
 
code.L68 EASy68K Listing File
code.S68 EASy68K S-Record File
  The file code.S68 contains the assembled code albeit encoded in S-Record file format
6. Quit EASy68K
   
7. Launch EASyBIN
8. Goto Open S-Record from the File menu and browse in the code.S68 file
  'S Record loaded successfully.' appears
9. Click the 'OK' button
10. Goto Save Binary from the File menu
11. Check and correct if necessary the Save in: location - it must point to the project folder
12. Type rom_27c4096 in the File name: box and click the 'Save' button
13. Check the contents of the project folder - there should be 1 new file:
 
rom_27c4096.BIN BIN File
  The file rom_27c4096.BIN contains the assembled code in Binary file format
14. Quit EASyBIN
   
15. Run i.e. double click the byte_swap.bat file in the project folder
16. Check the contents of the project folder - there should be 1 new file:
 
rom_27c4096r.bin BIN File
  The file rom_27c4096r.bin contains the assembled code in Binary file format with the byte order reversed for the Memory-2 Board
 
Finishing Off
 
The very popular and inexpensive TL866A MiniPro Programmer was used here to program the Custom ROM. Before attempting to program the ROM with a TL866A check the following ...
 
App Software Ver: 6.85
Firmware Ver: 03.2.86
 
... and upgrade if necessary before proceeding.
 
Programming IC6
 
1. Launch the TL866A's Application Software (MiniPro Programmer)
2. Using the 'Select IC' button set the device type to AMD AM27C4096
3. Change VPP Voltage to 12.50V in 'IC Config Information'
4. Goto Open(O) from the File(F) menu and browse in the rom_27c4096r.bin file
5. Goto Program(P) from the Device(D) menu
6. Insert a Am27C4096 part in the TL866A's ZIF socket
7. Click the 'Program' button
  'Programming Successful!' appears
8. Click the 'Cancel' button
9. Remove the programmed Am27C4096
 
 
Disclaimer
All hardware designs, software, and information shared on this website is provided "as is"
without warranty of any kind and strictly for personal non-commercial use only.
 
 
Website V0.97 (C) 2021 Mega-Micros
Status: under construction
Mega-Micros Home
12 Edgefield Close
Redditch B98 7WB
ENGLAND
 
+44 (0)7973 265572
info@mega-micros.co.uk