Using DIP28 SRAM in a DIP24 slot

A place that you can discuss reproduction of classic titles or "licensed-for-reproduction" homebrew for personal use.

Moderators: B00daW, Moderators

Forum rules
1. NO BLATANT PIRACY. This includes reproducing homebrew less than 10 years old, with the exception of free software.
2. No advertising your reproductions, with the exception of free software.
3. Be nice. See RFC 1855 if you aren't sure what this means.
DamienC
Posts: 13
Joined: Fri Apr 29, 2016 8:39 am

Using DIP28 SRAM in a DIP24 slot

Post by DamienC » Sun May 15, 2016 8:13 am

I'm trying to repro Crisis Force using Racer Mini Yonku. I need to add a 2K SRAM chip.

The PCB has a spot for SRAM which I intend to use. I have a MB8464 DIP28 chip from another dead cart that I wouldn't mind rewiring to work in the DIP24 location, but I can't find the datasheets for either the MB8464 or the DIP24 MB8416 that actual VRC4 carts like Gradius II and Crisis Force use.

Some questions:

Can someone point me to the datasheets for these chips? I found some PDFs on Google but they're not exact matches so I don't really trust them.

Can I just use the MB8464 with some simple rewiring if the pinouts don't match?

Does it matter that the MB8464 is an 8K SRAM?

Joe
Posts: 437
Joined: Mon Apr 01, 2013 11:17 pm

Re: Using DIP28 SRAM in a DIP24 slot

Post by Joe » Sun May 15, 2016 9:42 am

According to the wiki, these are standard SRAM chips following standard pinouts.

Lift pins 1, 2, 23, 27, and 28. Connect pin 27 to the hole under pin 23 (hole 21). Connect the other lifted pins to VCC (pin 26/hole 24).

tepples
Posts: 21746
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Using DIP28 SRAM in a DIP24 slot

Post by tepples » Sun May 15, 2016 9:43 am

Google mb8464 datasheet and mb8416 datasheet brought me links that should be relevant. After comparing them to the page on NESdev Wiki about SRAM pinouts, and after adding the 6116's pinout that I found to be missing, I determined that the MB8464 has the same pinout as the 6264, and the MB8416 has the same pinout as the 6116.

As long as all needed enable signals are present, you can use an 8Kx8 SRAM by tying unused address lines (here, A12 and A11) to a constant voltage (either ground or +5 V). So the only signal you'll need to rewire is /WE (lift pin 23 and connect pin 27 to hole 21 under where pin 23 was), as Joe mentioned. All others (A12, A11, +CS2) can be tied to power.

Joe
Posts: 437
Joined: Mon Apr 01, 2013 11:17 pm

Re: Using DIP28 SRAM in a DIP24 slot

Post by Joe » Sun May 15, 2016 9:47 am

I guess I looked at the wiki right after you finished editing it! :lol:

DamienC
Posts: 13
Joined: Fri Apr 29, 2016 8:39 am

Re: Using DIP28 SRAM in a DIP24 slot

Post by DamienC » Sun May 15, 2016 6:28 pm

Didn't seem to work.

I tied hole 21 to pin 27, and connected all other lifted pins (1, 2, 28, 23) to +5V. Got some garbled graphics that vaguely resemble the title screen but nothing else. I tried the same thing with another SRAM chip I had from a dead cart, a MCM60L64P12 which is an 8K chip with the same pinout. Got the same result. Not sure why it isn't working but I don't think I'm going to mess with it any further.

I ordered a 6116 from Jameco, hopefully that will work.

DamienC
Posts: 13
Joined: Fri Apr 29, 2016 8:39 am

Re: Using DIP28 SRAM in a DIP24 slot

Post by DamienC » Mon May 16, 2016 2:19 pm

Well, nuts.

I got the 6116 today and soldered it in. Still the SAME results. I was convinced at this point it was a problem with the ROM rather than hardware.

Turns out it's the translation patch from Stardust Crusaders that does something to the ROM. Loading that patched ROM with puNES produces the EXACT same graphical errors. The clean Famicom ROM works perfectly. I also didn't realize that the "translation patch" just translates the small amount of Japanese text on the title screen and rewords some of the option screen.

I have some things to do tonight but later I'll burn a few new EPROMs with the original ROM. I expect it to work.

Glad I didn't toss those other SRAM chips in the trash, they probably work. Annoyed about losing a pair of 27C010's though.

tepples
Posts: 21746
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Using DIP28 SRAM in a DIP24 slot

Post by tepples » Mon May 16, 2016 3:25 pm

Lesson learned: Use UV or flash while learning and OTP for mass quantities once you know they work.

icemanxp300
Posts: 159
Joined: Thu May 14, 2015 6:17 pm

Re: Using DIP28 SRAM in a DIP24 slot

Post by icemanxp300 » Tue May 17, 2016 8:43 pm

It seems you already found the problem but I was going to chime in that at least from my experiences sram does not cause garbled graphics. I was going to suggest you try it w/no sram chip at all and see if it was garbled. You already figured it out though.

DamienC
Posts: 13
Joined: Fri Apr 29, 2016 8:39 am

Re: Using DIP28 SRAM in a DIP24 slot

Post by DamienC » Wed May 18, 2016 3:50 am

Actually it's still not working. When I made my last reply I wasn't at home so I assumed the correct SRAM chip would magically fix the problem (based on what I was seeing with emulators), but it didn't.

At this point I'm stumped. On power up, I get garbled graphics and can sort of navigate to the options screen and start the game. Audio is also corrupted. You can start to hear the game's music when you start the game, but then it locks up. I'll post pics of this and also the PCB maybe when I get home later today, but I'm inclined to give up on this for now.

I followed the same wiring I used for Dragon Scroll (viewtopic.php?f=28&t=14159) if that makes any difference. I checked pins 3 and 4 of the VRC chip to make sure they go to the proper location per the wiki's entry.

Ice Man
Posts: 368
Joined: Fri Jul 04, 2014 2:34 pm

Re: Using DIP28 SRAM in a DIP24 slot

Post by Ice Man » Thu May 19, 2016 1:05 am

Crisis Force VRC4:
(fr) CPU A3 -> |03 38| -> PRG A15 (r)
(fr) CPU A2 -> |04 37| <- CPU A12 (f)

Racer Mini Yonku VRC4:
(fr) CPU A0 -> |03 38| -> PRG A15 (r)
(fr) CPU A1 -> |04 37| <- CPU A12 (f)

(f) to Famicom only
(r) to ROM only


Make sure your wiring for these is correct, too!

DamienC
Posts: 13
Joined: Fri Apr 29, 2016 8:39 am

Re: Using DIP28 SRAM in a DIP24 slot

Post by DamienC » Thu May 19, 2016 5:16 am

Got caught up with work yesterday and didn't get a chance to hit the workbench.

I did trace out pins 3 and 4 the other day though, and they both go to the correct places on both the EPROM and the cartridge connector pins:

Code: Select all


VRC4 Pin 3 -> PRG EPROM pin 12 -> Cartridge connector pin 13 (PRG/CPU A0)

VRC4 Pin 4 -> PRG EPROM pin 11 -> Cartridge connector pin 12 (PRG/CPU A1)

I'm also wondering about pins 16, 17 and 19 on the VRC4:

Code: Select all

 VRC4 (f) CHR A18 <- |16  25| -> CHR A14 (r)
    VRC4 (f) /IRQ <- |17  24| -> CHR A13 (r)
                ? -- |18  23| -> CHR A11 (r)
    VRC4 WRAM /CE <- |19  22| -> CHR A16 (r)
              GND -- |20  21| -> CHR A10 (r)
                     `------'
Pin 17 is connected to /IRQ but pins 16 and 19 are not connected to anything. I tried tying pin 16 to CHR A18 on the EPROM (pin 30) but it had no effect. As for pin 19, if you look at the PCB for Crisis Force on the database, it looks like there's a resistor, a diode and a capacitor in the circuit going from pin 19 to SRAM /CE, which the Yonku PCB does not have. Could someone fill me in on what function they serve?

lidnariq
Posts: 8765
Joined: Sun Apr 13, 2008 11:12 am
Location: Seattle

Re: Using DIP28 SRAM in a DIP24 slot

Post by lidnariq » Thu May 19, 2016 11:30 am

DamienC wrote:I tried tying pin 16 to CHR A18 on the EPROM (pin 30) but it had no effect.
It's only useful to connect CHR A18 if the game had 512 KiB of CHR in the first place. (No games released by Konami did)
As for pin 19, if you look at the PCB for Crisis Force on the database, it looks like there's a resistor, a diode and a capacitor in the circuit going from pin 19 to SRAM /CE, which the [RAMless] Yonku PCB does not [populate]. Could someone fill me in on what function they serve?
The orientation of the diode implies that that's designed to delay the fall of WRAM/CE but not delay its rise.

This is probably related to the standard annoyance where /ROMSEL is ≈20ns delayed from M2, so naïvely generating WRAM/CE as NAND4(A13,A14,M2,/ROMSEL) will produce glitches erroneously enabling the RAM on access to ROM/mapper registers in the $E000-$FFFF region.

Ice Man
Posts: 368
Joined: Fri Jul 04, 2014 2:34 pm

Re: Using DIP28 SRAM in a DIP24 slot

Post by Ice Man » Thu May 19, 2016 12:18 pm

DamienC wrote:Got caught up with work yesterday and didn't get a chance to hit the workbench.

I did trace out pins 3 and 4 the other day though, and they both go to the correct places on both the EPROM and the cartridge connector pins:

Code: Select all


VRC4 Pin 3 -> PRG EPROM pin 12 -> Cartridge connector pin 13 (PRG/CPU A0)

VRC4 Pin 4 -> PRG EPROM pin 11 -> Cartridge connector pin 12 (PRG/CPU A1)

Those are not correct. They have to be connected to A3 and A2 like it was in Crisis Force.

DamienC
Posts: 13
Joined: Fri Apr 29, 2016 8:39 am

Re: Using DIP28 SRAM in a DIP24 slot

Post by DamienC » Thu May 19, 2016 4:24 pm

Well, I'm a dope.

I completely misinterpreted the note about pin 3 and 4 of the VRC4. For some reason I thought that since they were still tied to A0 and A1 they were fine... no clue how I got that.

I lifted pins 3 and 4 and tied them directly to the EPROM. Game works just fine now. The wires were a lot cleaner before I did all the troubleshooting:

Image

Image

Image

User avatar
Fisher
Posts: 989
Joined: Sat Jul 04, 2015 9:58 am
Location: -29.794229 -55.795374

Re: Using DIP28 SRAM in a DIP24 slot

Post by Fisher » Sat Nov 18, 2017 2:27 pm

Thanks! :beer:
I was having trouble and found this thread.
Worked like a charm!
Interestingly, it became stable only after I added the diode + the resistor + the capacitor.
Perharps it's the RAM I'm using... I couldn't find it's datasheet.

Some crapy pictures from my phone:
Front
Front
Solder
Solder
And some board p0rn here and here, just in case someone is interested.

Post Reply