6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Tue Sep 24, 2024 5:25 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: ROM emulator
PostPosted: Tue Aug 20, 2013 7:42 pm 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
In a university lab where we had to work with 8051 MCUs there were some ROM emulator gizmos that would plug instead of the rom chip, and we could upload the hex file over the pc.
It is a very fancy tool for developing stuff for 6502 and similar CPUs.
Has anyone made something like that?
Or can it be bought for a decent price?


Top
 Profile  
Reply with quote  
 Post subject: Re: ROM emulator
PostPosted: Tue Aug 20, 2013 10:21 pm 
Offline

Joined: Sun Jul 28, 2013 12:59 am
Posts: 235
A ROM emulator is basically an SRAM module with a ROM pinout and a connector to allow a PC to upload a program to it. You could probably build something that would work from a suitably-sized SRAM, a few shift registers, some tri-state latches, and a parallel port connector. Or use a small MCU and a serial port instead of a parallel port.

That said, if your target system has ROM and a serial port already, it might be cheaper and easier to have a small monitor program that can load a program into RAM from the serial port. Or go one step further if you have an in-system-programmable ROM setup.


Top
 Profile  
Reply with quote  
 Post subject: Re: ROM emulator
PostPosted: Tue Aug 20, 2013 10:42 pm 
Offline
User avatar

Joined: Mon Apr 23, 2012 12:28 am
Posts: 760
Location: Huntsville, AL
We had some of these at one time that er used for the exact purpose that you described for your lab. I think nyef's suggestion is probably more economical. We didn't buy them because they were cheap, but because they were convenient for a system whose SW would not include a monitor.

After we quit worrying about the cost of 29F256 vs 29F010s or 29F040s, we put in a monitor in our projects and just used it's download capability to load and test the SW. The cost of the additional Flash memory to include a 4-8kB monitor was insignificant when compared to the cost of the ROM emulators. Furthermore, unless you opted for a parallel port version, the download speeds of most ROM emulators matched that of the monitor.

_________________
Michael A.


Top
 Profile  
Reply with quote  
 Post subject: Re: ROM emulator
PostPosted: Wed Aug 21, 2013 4:57 am 
Offline
User avatar

Joined: Mon Aug 08, 2011 2:48 pm
Posts: 808
Location: Croatia
Since I build projects that have a 8051 or a 6502 at the core with point to point soldering adding an extra rom is not trivial. Also I don't have such a monitor program, and that would also require that all of the projects have a working link to a PC.
I was thinking about using a 32k ram, few latched, mcu, and a ftdi chip to connect via usb to the computer. Then I could just stream the hex file to the com port.


Top
 Profile  
Reply with quote  
 Post subject: Re: ROM emulator
PostPosted: Wed Aug 21, 2013 6:36 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10938
Location: England
Here's ROMBO which uses i2c to shift in data and addresses:
https://sites.google.com/site/beeb816/hardware


Top
 Profile  
Reply with quote  
 Post subject: Re: ROM emulator
PostPosted: Tue Oct 22, 2013 7:38 pm 
Offline

Joined: Mon Nov 11, 2002 6:53 pm
Posts: 79
Location: Seattle
I made a ROM emulator a while ago that I'm re-visiting. Right now it supports up to 8k as I didn't want to use more parts but I need to make it support up to 512k or so. The way it works is that you connect it to your computer's parallel-port and then simple type 'copy test.bin lpt1:' which will then copy the contents of that file to RAM. During that time your CPU will be disconnected / execute crap code so you'll need to reset it afterwards. Still, the process takes under a second.

From a technical point of view, it's based around a 74hc123, which is a 'dual re-triggerable monostable multivibrator' and a flip-flop (the top two IC's), counters, multiplexers and a latch. The first half of the 74hc123 acts like a watchdog circuit and switches the address / data bus on the negative pulse of the parallel-port strobe. The positive edge then drives the busy / ack signals as well as performing the write to RAM and clocking the address counters. As long as it receives strobes from the PC, it'll keep the CPU off the bus. Once the file is done, it times out and resets the flip-flop to switch the CPU back.

I'm regurgitating all this from memory but do have the schematics somewhere. If anyone has any requests as to what they'd like to have, let me know..

-Yvo


Attachments:
photo.JPG
photo.JPG [ 594.62 KiB | Viewed 1242 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: ROM emulator
PostPosted: Tue Oct 22, 2013 8:27 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8513
Location: Southern California
yzoer wrote:
I'm regurgitating all this from memory but do have the schematics somewhere. If anyone has any requests as to what they'd like to have, let me know..

We like to collect as much helpful documentation as we can. If you don't have your own website, maybe you could send Mike the documentation to put up a page on it on the projects section of this website. Do make it as clear and complete as you can so as to minimize the amount of work it is for him to turn it into a web page when he's not familiar with what you've done.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
 Post subject: Re: ROM emulator
PostPosted: Tue Oct 22, 2013 8:32 pm 
Offline

Joined: Mon Nov 11, 2002 6:53 pm
Posts: 79
Location: Seattle
Yeah, I'm planning on putting it up as soon as I redesign the board. On that note, one of the things I was considering was making separate daughter PCB's that would route the signals the right way. I.e. 24, 28 and 32-pin boards with perhaps some jumpers on there to select different devices.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 64 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: