~ OPENSOURCE USB CARTRIGE DEVELOPMENT ~

For hardware talk only (please avoid ROM dumper stuff)
Post Reply
tinctu
Very interested
Posts: 97
Joined: Tue Oct 30, 2007 8:28 pm

~ OPENSOURCE USB CARTRIGE DEVELOPMENT ~

Post by tinctu » Tue Jan 22, 2008 10:46 pm

I am not PCB design fan.
I can not do anything with PCB design...
But I can do full 2d+3d case design for plastic cartrige case
/full mold form manufacturing documentation+3D models -> Opensource CAD/.

Plus one - two real protos...
Plus www webpage...

PS>I want do this special for TFM music...
So later maybe can be there TFM modules player with menu and some little visualisation /bars/ in firmware too...
Maybe graphic mixer software too - I mean software controlled
with gamepad /more songs mixed into one long music set/...


So here will be development topic:

I need good electronic geeks here...

So little brainstorming first ->

1./
- Name (contest)???

2./
- SD /standard,mini.../ or CF /compact flash/ or battery RAM???

3./
- All on USB cartrige design or USB writer + cartrige design...???

4./
PIC,ATMEL,FPGA???

5./
- transparent case / color case (which) / black case???
Last edited by tinctu on Fri Jan 25, 2008 10:10 am, edited 6 times in total.

Jorge Nuno
Very interested
Posts: 374
Joined: Mon Jun 11, 2007 3:09 am
Location: Azeitão, PT

Post by Jorge Nuno » Tue Jan 22, 2008 11:34 pm

Why not FPGA + microcontroller based?

FPGA would handle the timing signals, and format the output tho the 68000 bus

microcontroler would handle the card file system (FAT/FAT32)

also a small built-in program to choose the rom to be played...

to write in the card a simple usb card R/W device... -> can be separate from the cart or not, the signals can just be routed to where they need to be.

LocalH
Very interested
Posts: 152
Joined: Tue Dec 19, 2006 5:04 pm

Post by LocalH » Wed Jan 23, 2008 1:32 am

If you go that route, it needs to fully support SSF2-style banking, and not just for that one ROM. The banking technically supports 64 pages of 512KB, thus the system would need a way to support up to 32MB of ROM loaded for such banking. Determining whether or not to enable the banking is easy - if the ROM is >4MB enable it, otherwise disable it. The only ROM I know of that would falsely trigger this mechanism is that massive UMK3 hack called "Ultimate Mortal Kombat Trilogy", and it wouldn't work on hardware anyway due to lack of address space (the ROM is something like 10MB, and I don't think there's any way to map that much ROM space at once without hardware modification to make the cart enable line work up through $9FFFFF, and it'd butt right up against $A00000 if the ROM is exactly 10MB). Perhaps this could be an option since it would undoubtedly raise the cost of the device (since outside of that you'd only need 5MB of ROM to be loaded at once to support SSF2). I think it would raise some interesting possibilities for homebrew if we could use up to 32MB of ROM for our code and assets.

tinctu
Very interested
Posts: 97
Joined: Tue Oct 30, 2007 8:28 pm

Post by tinctu » Wed Jan 23, 2008 12:08 pm

:?
Last edited by tinctu on Sun Feb 17, 2008 12:48 pm, edited 1 time in total.

tinctu
Very interested
Posts: 97
Joined: Tue Oct 30, 2007 8:28 pm

Post by tinctu » Wed Jan 23, 2008 12:21 pm

One more I am not familiar with PCB... I am chipmusician...
Last edited by tinctu on Wed Jan 23, 2008 2:14 pm, edited 1 time in total.

HardWareMan
Very interested
Posts: 745
Joined: Sat Dec 15, 2007 7:49 am
Location: Kazakhstan, Pavlodar

Post by HardWareMan » Wed Jan 23, 2008 1:36 pm

I am doing this already 3 years. You can not use MMC / SD card program as a carrier at runtime, as these memory cards sequential access. You have to use either RAM or ROM as a buffer.

tinctu
Very interested
Posts: 97
Joined: Tue Oct 30, 2007 8:28 pm

Post by tinctu » Wed Jan 23, 2008 2:23 pm

So need be there RAM+battery right...

Concept V2>
Image

tinctu
Very interested
Posts: 97
Joined: Tue Oct 30, 2007 8:28 pm

Post by tinctu » Wed Jan 23, 2008 2:35 pm

Is that Concept v2 better???
Last edited by tinctu on Thu Jan 24, 2008 4:52 pm, edited 2 times in total.

Chilly Willy
Very interested
Posts: 2984
Joined: Fri Aug 17, 2007 9:33 pm

Post by Chilly Willy » Wed Jan 23, 2008 9:55 pm

HardWareMan wrote:I am doing this already 3 years. You can not use MMC / SD card program as a carrier at runtime, as these memory cards sequential access. You have to use either RAM or ROM as a buffer.
You can't use it in place of flash, but you CAN use it in place of CD. A flash cart with SD card adapter would be an awesome thing for folks without a CD. Even with a CD, it would still be awesome - faster access, larger storage, easier rewriting (I've noticed my SEGA CD won't read CDRW... is there a particular brand that works, or does the SEGA CD simply not work with CDRWs? ), ability to have any size save file...

Okay, here's my idea: Make the cart with an FPGA, the SD card adapter, and a 4MB SRAM. Have the FPGA read the "boot sector" (however you wish to define that) into the start of the SRAM on powerup or reset. That code can then act as a loader for running programs from the SD card. It would also contain functions to open/close/read/write/etc files from the SD card so that programs can load stuff from the SD card, and write save files.

Something like that would be more useful than a plain flash cart. That would be particularly true if you added features to the FPGA, like a graphics coprocessor like in the CD (maybe a general purpose BLITTER), and maybe an audio pre-processor - have X number of DMA channels that read audio data from the 4MB RAM, mixed them together, then wrote the result to the DAC in the YM2612. Something like that would be easy to make with an FPGA. I made far harder circuits back in college from discrete components.

rodolforg
Interested
Posts: 10
Joined: Sun Nov 18, 2007 2:50 am
Location: Brazil
Contact:

Post by rodolforg » Thu Jan 24, 2008 1:24 am

HardWareMan wrote:I am doing this already 3 years. You can not use MMC / SD card program as a carrier at runtime, as these memory cards sequential access. You have to use either RAM or ROM as a buffer.
What do you think about the MC itself as a buffer? Or a shift register?
tinctu wrote:I will not alow to run ROM images as on DEV Carts.
Er... And how do you plan to do that? Even if you allow load only .elf files, it'll be able to run ROM images using a simple "conversor".

HardWareMan
Very interested
Posts: 745
Joined: Sat Dec 15, 2007 7:49 am
Location: Kazakhstan, Pavlodar

Post by HardWareMan » Thu Jan 24, 2008 12:12 pm

Chilly Willy wrote:Okay, here's my idea: Make the cart with an FPGA, the SD card adapter, and a 4MB SRAM. Have the FPGA read the "boot sector" (however you wish to define that) into the start of the SRAM on powerup or reset. That code can then act as a loader for running programs from the SD card. It would also contain functions to open/close/read/write/etc files from the SD card so that programs can load stuff from the SD card, and write save files.
While you dreaming about it, I have gathered a prototype. Yes, there is a small flash memory with the loader, 4 Mbytes RAM (actually it's a PSRAM - Pseudo Static RAM, dynamic RAM have not compatible interface and need to be regenerated, pseudo SRAM do this internally at background and have SRAM bus interface) and port for the SD / MMC card. ;)
rodolforg wrote: What do you think about the MC itself as a buffer? Or a shift register?
Do not work. To have full random access, on each access would have to read the whole sector, which contains the data you want. Speeds interface is not sufficient for this.

BTW: I have already connect a HDD to SegaCD port. I use this for some training and research. ;)

TmEE co.(TM)
Very interested
Posts: 2440
Joined: Tue Dec 05, 2006 1:37 pm
Location: Estonia, Rapla City
Contact:

Post by TmEE co.(TM) » Thu Jan 24, 2008 4:43 pm

I guess you're playing ROMs from that HDD... I'd like to make a simple IDE interface for MD too, but I have too many other things (like school) in my way :(
Mida sa loed ? Nagunii aru ei saa ;)
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen

tinctu
Very interested
Posts: 97
Joined: Tue Oct 30, 2007 8:28 pm

Post by tinctu » Thu Jan 24, 2008 4:51 pm

Idea>w
When it is IDE possible so it is possible to use IDE-CF reduction...

Image

I found one opensource!!

http://www.abclinuxu.cz/data/ruzne/cfIDE_4c.zip
Last edited by tinctu on Fri Jan 25, 2008 10:18 am, edited 1 time in total.

HardWareMan
Very interested
Posts: 745
Joined: Sat Dec 15, 2007 7:49 am
Location: Kazakhstan, Pavlodar

Post by HardWareMan » Thu Jan 24, 2008 6:47 pm

tinctu wrote:Idea>w
When it is IDE possible so it is possible to use IDE-CF reduction...
Yes, it is. CF has ATA interface and almost all storages (Compact Flashes and Microdrives) must handle the native True IDE Mode.

Jorge Nuno
Very interested
Posts: 374
Joined: Mon Jun 11, 2007 3:09 am
Location: Azeitão, PT

Post by Jorge Nuno » Thu Jan 24, 2008 6:50 pm

Quick question:

How long does reading a whole 512byte sector from a SD/MMC takes?
(Just 1 sector)

Post Reply