27C322 to SNES bus?

Discussion of hardware and software development for Super NES and Super Famicom.

Moderator: Moderators

Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

what is endian-ness and how would i?
Let me Google that for you.
User avatar
kyuusaku
Posts: 1665
Joined: Mon Sep 27, 2004 2:13 pm

Post by kyuusaku »

The ROM is 16-bit wide but file data is addressed sequentially in 8-bit bytes, so the "endianness" determines which byte is placed in the upper and lower 8-bits of the 16-bit word. The circuit is configured for big-endian data (even bytes are D15-8), but there's a good chance the Willem software chose little-endian. But if this is the case, you don't need to reburn the ROM (normally you would), you just need to exchange 139 pins 4 and 5 which in effect swaps bytes.
lunaris
Posts: 29
Joined: Wed Jun 03, 2009 2:06 am

Post by lunaris »

tepples wrote:
what is endian-ness and how would i?
Let me Google that for you.
Thanks
Last edited by lunaris on Fri Jun 11, 2010 3:55 am, edited 1 time in total.
lunaris
Posts: 29
Joined: Wed Jun 03, 2009 2:06 am

Post by lunaris »

What my test cart looks like:

Using SN74LS139AN + (2x)SN74LS245AN + a Zif Socket for 27c322 and a HiRom cart with SRAM and MAD-1.

Extra WIIIIIDE picture


Also, if I want to make a 48mbit game like Tales of Phantasia English Patched... I would need 2 16-bit eproms for the task.. Is it even possible to link up 2 27c322 to 1 snes bus?
X-death
Posts: 2
Joined: Sat Jul 03, 2010 4:44 am

Post by X-death »

hi,
i would like ton make my personel home made cart for SNES with a 27c322.

can you tell me if my schéma is ok ?

http://sega4ever.power-heberg.com/tutod ... 20cart.png

thanks :wink:
lunaris
Posts: 29
Joined: Wed Jun 03, 2009 2:06 am

Post by lunaris »

X-death wrote:hi,
i would like ton make my personel home made cart for SNES with a 27c322.

can you tell me if my schéma is ok ?

http://sega4ever.power-heberg.com/tutod ... 20cart.png

thanks :wink:
Untie pin 24 (SNESROM /CE) from ground, let the ground continue the same way. Remove the wire from pin 33 (SNESROM /OE) completely as it is the exact same as what is connected to the MAD-1 pin 4.. lol.

Wire pin 24 then to pin 3 of the 74ls_139. don't forget to ground the /ce, /oe, and 2 vpps of the 27c322 and to connect +5v to all the vcc points of the 139, 245s, and the 27c322.

Cheers
lunaris
Posts: 29
Joined: Wed Jun 03, 2009 2:06 am

Post by lunaris »

Also, and I should probably just PM Kyuusaku for help on this one, but.. I'll try my luck on this thread first.

Would piggybacking another 27c322 onto the first one and connecting the lifted pin 13 (EPROM /OE a.k.a. GVpp) legs to the mad-1 as follows work out fine? I tried it and I didn't get it working.

http://nintendoallstars.w.interia.pl/romlab/mads.htm

So I used that link, connected the /OE's of the eproms to the mad-1 as followed. I also have a 48mbit cart of Tales of Phantasia and that is how they seem to connect it. Would the data lines still function correctly with the 245 setup?

Someone said maybe I should be tying the eprom legs of pin 11 of the 27c322 (/CE a.k.a. E) to the mad-1 instead.



Thanks in advance!

Cheers
User avatar
kyuusaku
Posts: 1665
Joined: Mon Sep 27, 2004 2:13 pm

Post by kyuusaku »

Yeah you can piggyback, but you must separate the /CEs (everything else should be connected). Don't use ROMLab as a reference, it's all messed up.

Each ROMs is selected by its /CE using a decoder. MAD-1 has a decoder built into it, but it's a little more involved than the 139.

So right now you have one of the two decoders in the 139 selecting a 245 right? Use the other decoder to select which ROM's /CE is active.

You can do this by taking the /CE going to the current ROM, and hooking it to the 2nd decoder's /E input. From there connect the B input to GND and the A input to A22. The Y0 output should connect to the ROM containing the first 32M's /CE, the Y1 output should connect to the last 16M ROM's /CE.
lunaris
Posts: 29
Joined: Wed Jun 03, 2009 2:06 am

Post by lunaris »

Image

^ Just for reference.

Right, my test cart is wired like that now, when i drop a 27c322 into the zif (just 1) it works fine! but when i stick the piggybacked 2 27c322 package with the 11th legs lifted and individually wired to the 74ls139, i dont get anything but a black screen.


EDIT: Got it working, but I grounded the E of the 139 (lol, screw saving energy? at this point)... Yea, only works when Y0 is connected to the ROM /CE of the eprom with 16mbits of data, and Y1 is connected to the ROM /CE of the eprom with 32mbits of data.. lol.

EDIT 2: Tied SNES /OE to E of 139, works!

EDIT 3:
Tested Working.
Image
Leg 11 of 27c322 = EPROM /CE
Leg 13 of 27c322 = EPROM /OE

Pin 24 of Maskrom = SNES /CE
Pin 33 of Maskrom = SNES /OE
Pin 35 of Maskrom = A22

NC = Not Connected


Question for Kyuusaku
Is a 30awg tap for vcc and ground enough for 2 27c322's?
User avatar
kyuusaku
Posts: 1665
Joined: Mon Sep 27, 2004 2:13 pm

Post by kyuusaku »

Pin 15 is tied to what? Hopefully the MAD-1's /CE output and not the console's /ROMSEL.

The way I told you to wire the 139 you cannot ground E, it's not about energy, it's about only enabling the ROM at the right time. Grounding it would cause one ROM to always be enabled and they will conflict with the console's work RAM (very bad).

The reason why "/OE" works is because it's not /OE! Again, don't use ROMLab as a reference, they have /OE and /CE reversed.

I'm not sure if 30awg is good enough. You can always put multiple wires in parallel if you don't have a better wire. Don't forget to wire in bypass capacitors too..
lunaris
Posts: 29
Joined: Wed Jun 03, 2009 2:06 am

Post by lunaris »

Every game works flawlessly.. (beat Terranigma and I am half way through Tales of Phantasia, Secret of Mana 2, and the ReTranslation of Final Fantasy 6). I have made and tested the saves for Bahamut Lagoon, Final Fantasy 5, Dragon Quest 1/2, 5, 6, Treasure of the Rudras, and a few more..

But Kyuusaku, I am on a venture to build a game that people have problems with - so I may be back lol :). (Did I tell you I love ya?)
Dragon Quest 3 is a 32mbit game, becomes 48mbit with its translation IPS applied. If you look http://www.racketboy.com/forum/viewtopi ... &start=400 you can see that these guys have problems saving. I will try it using the same method as Tales of Phantasia (piggybacking 27c322s). I hope it will work for me as that sram issue smells like incompatibility in the mad-1 pinout while using a 74ls138 + 6x8mbit eproms works fine.

Update: works fine for DQ3 according to the replies I got after i posted your 139 pinout lol (http://www.racketboy.com/forum/viewtopi ... &start=410)


Random Blabbering:
"Right, MAD pin 13 going to cart pin 48 on the ToP cart, that's A22 on normal Hirom 36 pin carts. You can see the pinout here. It won't work without MAD pin 13 going cart pin 48/A22"
-electrochip (from http://www.racketboy.com/forum/viewtopi ... &start=380)


Yeah, I don't mind wiring anything up to the 74ls139 because it has a decoder free. but that method also works where i previously said it did not. i did not notice pin 13 of the mad-1 is not connected to a22 on regular hirom 1 maskrom carts where it is on tales of phantasia.
So you can wire the rom /ce legs to pin 1 and 16 of the mad-1 if you lift leg 13 and wire that to a22 as the quote above said and as the schematics of the original pcb show.


This is definitely the cheapest method to produce any game repro. IMHO It is a very simple job to solder this up - but very time consuming due to a lot of wires being needed. the 29f032 with top40 to dip36 adapter method seems easiest of course - and not that hard to make an adapter, all you need is breadboard, a zif socket, and 3? wires lol..
Ecco
Posts: 3
Joined: Sun Dec 25, 2011 7:12 am

Post by Ecco »

Will this work with 74HC245???

Because I have no 74LS245, I would have to order them.

Edit: Have now ordered 10 x 74LS245.

I will try the 74HC245. They aren't so expensive.
Anyways if they won't work in Snes Carts, I can them use in Nes.
I will reply if they work
RedScorpion
Posts: 40
Joined: Mon Mar 15, 2010 4:15 pm

Re: 27C322 to SNES bus?

Post by RedScorpion »

hi guys,

I want to built a TOP cart with 2x 27c322 inkl. Decoder and 74LS139 Decoder.

lunarcris has been post this information

Leg 11 of 27c322 = EPROM /CE
Leg 13 of 27c322 = EPROM /OE
Pin 24 of Maskrom = SNES /CE
Pin 33 of Maskrom = SNES /OE
Pin 35 of Maskrom = A22

if i would use only one 27c322 i could set Pin 11 and 13 to gnd and it would works.

What if i use 2 x 27C3222 eproms?

On the image

Image

ROm2/Ce is connected to Decoder Pin 12 and Rom1/Ce is connected to Decoder Pin 11.

Would this mean that i dont should solder the Pin 11 (CE) and 13 (OE) of the 27c322 to GND?! Because Pin 11 is connected to decoder!

I have understand, that if i want to built the game to a normal 1 maskrom hirom board like NHL 95/96 i have to solder on the following way

Decoder -> Solder to...

Pin1 -> SNES /CE
Pin2 -> Snes A0
Pin3 -> SNES/ OE
Pin4 -> 245 #1 Pin 19
Pin5 -> 245 #2 Pin 19
Pin8 -> GND
Pin11 -> Rom 1 / CE (is this Leg also connected to a other point?!)
Pin12 -> Rom 2 / CE (is this Leg also connected to a other point?!)
Pin13 -> GND ( like Pin8)
Pin14 -> SNES A22
Pin15 -> SNES /OE (like pin 3 on decoder)
Pin16 -> 5V

What is with the MAD-1 Pin 13. It is reqiured to lift the pin?!

Thanks in advance

red
User avatar
nintendo2600
Posts: 367
Joined: Mon Mar 30, 2009 4:40 pm

Re: 27C322 to SNES bus?

Post by nintendo2600 »

Was the 27c320 ever made in DIP format or only in SO and TSOP?
I swear I was told there was DIP package versions of this chip
but can't seem to find any info on google,ect.
User avatar
MottZilla
Posts: 2835
Joined: Wed Dec 06, 2006 8:18 pm

Re: 27C322 to SNES bus?

Post by MottZilla »

If it was, it's pretty rare to find one now. If it were available, we'd seen people using them.
Post Reply