Need a little help with the 139

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.
klonoa
Posts: 74
Joined: Mon Nov 21, 2011 3:53 pm

Need a little help with the 139

Post by klonoa »

Hey Guys.

I'm trying the make a brutal mario world (witch is 4MB)
But the slave cart (world league basketball) i used only had had one 1MB mask rom so i cut both traces leading to the 139
and wired the extra two address lines to my eprom.

But what to do with the decoder now?

My instinct told me to use a21 and a22 instead of a20 and a21
But that didn't work.
Any help?
User avatar
whicker
Posts: 228
Joined: Sun Dec 13, 2009 11:37 am
Location: Wisconsin

Re: Need a little help with the 139

Post by whicker »

yeah, fix that instinct bug...
Okay, no really. seriousness... it wasn't that bad of an assumption.

What is the size of the (presumably Flash ROM?) chip that is holding the 4 MB (32 megabits) of program?
Is it just one gigantic 4 MB chip, or are there multiple chips?

To leave out that key bit of info is to miss the point of address decoding. So, how many ROM chips?

Also, I and I think others will try to help, but it's hard to give exact information on how to turn random board A, into hacked board B.
Markfrizb
Posts: 540
Joined: Sun Dec 02, 2012 8:17 am
Location: East Texas

Re: Need a little help with the 139

Post by Markfrizb »

Save yourself a lot trouble and use a different host cartridge like college slam baseball or one of the many lo rom 32m capable carts with a mad1 decoder. It'll be much easier to alter.
klonoa
Posts: 74
Joined: Mon Nov 21, 2011 3:53 pm

Re: Need a little help with the 139

Post by klonoa »

Markfrizb wrote:Save yourself a lot trouble and use a different host cartridge like college slam baseball or one of the many lo rom 32m capable carts with a mad1 decoder. It'll be much easier to alter.
I normally would have done that but i got it all wired up already. :(
klonoa
Posts: 74
Joined: Mon Nov 21, 2011 3:53 pm

Re: Need a little help with the 139

Post by klonoa »

whicker wrote:yeah, fix that instinct bug...
Okay, no really. seriousness... it wasn't that bad of an assumption.

What is the size of the (presumably Flash ROM?) chip that is holding the 4 MB (32 megabits) of program?
Is it just one gigantic 4 MB chip, or are there multiple chips?

To leave out that key bit of info is to miss the point of address decoding. So, how many ROM chips?

Also, I and I think others will try to help, but it's hard to give exact information on how to turn random board A, into hacked board B.
I use one 4MB (32mbit) eprom.
No more.
User avatar
whicker
Posts: 228
Joined: Sun Dec 13, 2009 11:37 am
Location: Wisconsin

Re: Need a little help with the 139

Post by whicker »

At 4 MB, you don't really need an address decoder.

I don't have enough information about both games,
Does college slam basketball have a save battery?
Does college slam basketball use the LoROM, or HiROM mapping?


Assuming college slam basketball is LoROM and has save memory...

For the flash chip:


You just assert /CE when /ROMSEL is low and A15 is HIGH.
/CE LOW WHEN BOTH /ROMSEL is low AND A15 is HIGH
/CE = ROMSEL=0 AND A15=1

simplifying:
Chip Enable = /ROMSEL OR NOT A15
/OE of the flash chip is the /CPURD signal.

for the SRAM, you shouldn't have done anything with the 74139. It's in the spot it needs to be already, other than not using the /CS signal it generated for the 1 MB ROM that was in there before.
klonoa
Posts: 74
Joined: Mon Nov 21, 2011 3:53 pm

Re: Need a little help with the 139

Post by klonoa »

whicker wrote:At 4 MB, you don't really need an address decoder.

I don't have enough information about both games,
Does college slam basketball have a save battery?
Does college slam basketball use the LoROM, or HiROM mapping?


Assuming college slam basketball is LoROM and has save memory...

For the flash chip:


You just assert /CE when /ROMSEL is low and A15 is HIGH.
/CE LOW WHEN BOTH /ROMSEL is low AND A15 is HIGH
/CE = ROMSEL=0 AND A15=1

simplifying:
Chip Enable = /ROMSEL OR NOT A15
/OE of the flash chip is the /CPURD signal.

for the SRAM, you shouldn't have done anything with the 74139. It's in the spot it needs to be already, other than not using the /CS signal it generated for the 1 MB ROM that was in there before.
thanks for the info but originally the 139 wasn't connected to romsel or a15 but to a20 and a21.
I'll post the original pinout later and you'll see what i mean.
qwertymodo
Posts: 775
Joined: Mon Jul 02, 2012 7:46 am

Re: Need a little help with the 139

Post by qwertymodo »

whicker wrote:At 4 MB, you don't really need an address decoder.

I don't have enough information about both games,
Does college slam basketball have a save battery?
Does college slam basketball use the LoROM, or HiROM mapping?


Assuming college slam basketball is LoROM and has save memory...
College Slam is SHVC-1A3M-30, so MAD-1 (supports 32Mbit), 64K SRAM w/battery, LoROM.
klonoa
Posts: 74
Joined: Mon Nov 21, 2011 3:53 pm

Re: Need a little help with the 139

Post by klonoa »

qwertymodo wrote:
whicker wrote:At 4 MB, you don't really need an address decoder.

I don't have enough information about both games,
Does college slam basketball have a save battery?
Does college slam basketball use the LoROM, or HiROM mapping?


Assuming college slam basketball is LoROM and has save memory...
College Slam is SHVC-1A3M-30, so MAD-1 (supports 32Mbit), 64K SRAM w/battery, LoROM.
i didn't use that game. i used world league basketball
qwertymodo
Posts: 775
Joined: Mon Jul 02, 2012 7:46 am

Re: Need a little help with the 139

Post by qwertymodo »

klonoa wrote:i didn't use that game. i used world league basketball
You sure? I can't find World League Basketball anywhere, including byuu's database, which leads me to believe you're mistaken, because byuu's database should be 100% complete for all NTSC-U releases... and I really doubt byuu would be missing a dumb sports game :P World League Soccer, maybe? In any case, what really matters is the PCB ID (probably SHVC-1A3M-XX).
klonoa
Posts: 74
Joined: Mon Nov 21, 2011 3:53 pm

Re: Need a little help with the 139

Post by klonoa »

qwertymodo wrote:
klonoa wrote:i didn't use that game. i used world league basketball
You sure? I can't find World League Basketball anywhere, including byuu's database, which leads me to believe you're mistaken, because byuu's database should be 100% complete for all NTSC-U releases... and I really doubt byuu would be missing a dumb sports game :P World League Soccer, maybe? In any case, what really matters is the PCB ID (probably SHVC-1A3M-XX).
this one:
Image

witch is called NCAA basketball in the usa i just found out XD

Image
klonoa
Posts: 74
Joined: Mon Nov 21, 2011 3:53 pm

Re: Need a little help with the 139

Post by klonoa »

qwertymodo
Posts: 775
Joined: Mon Jul 02, 2012 7:46 am

Re: Need a little help with the 139

Post by qwertymodo »

Ah, PAL explains it. byuu's database is NTSC-U only so far. You caught an unlucky break, since that game also comes on a 1A1M PCB, which would have supported 32Mbit without modification...
klonoa
Posts: 74
Joined: Mon Nov 21, 2011 3:53 pm

Re: Need a little help with the 139

Post by klonoa »

here are the setups that i tried so far

Code: Select all

                            __  __
                  SNES #49 |01\/16| +5V
                       A21 |02  15| NC
                       A20 |03  14| A19
                   ROM /OE |04  13| RESET
                        NC |05  12| NC
                        NC |06  11| NC
                        NC |07  10| NC
                       GND |08  09| RAM /CE
                            ------
result: I can hear the nintendo sound and a random sound effect after it. no image

Code: Select all

                            __  __
                  SNES #49 |01\/16| +5V
                       A22 |02  15| NC
                       A21 |03  14| A19
                   ROM /OE |04  13| RESET
                        NC |05  12| NC
                        NC |06  11| NC
                        NC |07  10| NC
                       GND |08  09| RAM /CE
                            ------
result: the nintendo logo comes on with the sound efect but stays there.

Code: Select all

                            __  __
                  SNES #49 |01\/16| +5V
                       A22 |02  15| NC
                       A21 |03  14| A20
                   ROM /OE |04  13| RESET
                        NC |05  12| NC
                        NC |06  11| NC
                        NC |07  10| NC
                       GND |08  09| RAM /CE
                            ------
result: nothing.

any idea's?
User avatar
whicker
Posts: 228
Joined: Sun Dec 13, 2009 11:37 am
Location: Wisconsin

Re: Need a little help with the 139

Post by whicker »

none of those correctly deal with the A15 low = backup SRAM, A15 high = cart ROM
this is especially important for that huge 4 MB flash size.

i'm sure the original wiring for the 74139 could have gotten lazy and omitted A15, because the 1 MB ROM could be made to not overlap into the SRAM space, and the SRAM in ROM space would not have mattered.

without accounting for A15, the backup SRAM and the uppermost quarter of ROM overlaps.
Post Reply