Battery circuit : Save game are not holding on SRAM
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.
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.
Battery circuit : Save game are not holding on SRAM
Hi,
Can you help me please.
I dont understand why my SRAM are not holding saves of games?
The game that I test is Legend of "Zelda, The - A Link to the Past" (64 SRAM).
File was expanded to 27C322 EPROM.
I use HM6264ALP-10
https://www.aliexpress.com/item/3297738 ... 4c4dUPnDVz
But no chance to get saves with that SRAM.
Then I tested with HM62256ALP-10.
When I keep cartridge on my SNES and I do save the game, then load saved game = it's work (I see my file).
But when I take my cartridge of and put in again, there is no saved file.
Maybe my circuit is wrong?
Or my 2N2222 A331 are the bad one?
https://www.aliexpress.com/item/3280947 ... 4c4djAxInk
When cartridge is out of SNES, I test voltage on SRAM between pins 14(GND) and 28 (VCC2), its shows 2.428 Volt
Thank's
Can you help me please.
I dont understand why my SRAM are not holding saves of games?
The game that I test is Legend of "Zelda, The - A Link to the Past" (64 SRAM).
File was expanded to 27C322 EPROM.
I use HM6264ALP-10
https://www.aliexpress.com/item/3297738 ... 4c4dUPnDVz
But no chance to get saves with that SRAM.
Then I tested with HM62256ALP-10.
When I keep cartridge on my SNES and I do save the game, then load saved game = it's work (I see my file).
But when I take my cartridge of and put in again, there is no saved file.
Maybe my circuit is wrong?
Or my 2N2222 A331 are the bad one?
https://www.aliexpress.com/item/3280947 ... 4c4djAxInk
When cartridge is out of SNES, I test voltage on SRAM between pins 14(GND) and 28 (VCC2), its shows 2.428 Volt
Thank's
- krzysiobal
- Posts: 1037
- Joined: Sun Jun 12, 2011 12:06 pm
- Location: Poland
- Contact:
Re: Battery circuit : Save game are not holding on SRAM
Pin26 of SRAM needs to be HIGH when in batterry retention mode - pull it up to pin 28 with 100k resistor..
Re: Battery circuit : Save game are not holding on SRAM
Like that ?krzysiobal wrote: ↑Wed Sep 02, 2020 4:10 pm Pin26 of SRAM needs to be HIGH when in batterry retention mode - pull it up to pin 28 with 100k resistor..
Re: Battery circuit : Save game are not holding on SRAM
... what? No, +CE should be low during retention, and high during operation. And the 2N2222 fragment should already do that.
Re: Battery circuit : Save game are not holding on SRAM
What does a voltmeter say pins 28, 26, and 20 are doing when power is removed?
-
- Posts: 252
- Joined: Fri Jun 24, 2016 4:20 pm
Re: Battery circuit : Save game are not holding on SRAM
What does your circuit on pin 20 look like?
What's your battery voltage?
What's your battery voltage?
Re: Battery circuit : Save game are not holding on SRAM
Battery alone = 2.959vpoorstudenthobbyist wrote: ↑Wed Sep 02, 2020 5:14 pm What does your circuit on pin 20 look like?
What's your battery voltage?
Here is circuit of SRAM decoder where pin 20 of SRAM (/RAM_OE) are connected :
and here is SRAM jumpers to chose size of SRAM:
Last edited by Kayumba on Wed Sep 02, 2020 6:10 pm, edited 1 time in total.
-
- Posts: 252
- Joined: Fri Jun 24, 2016 4:20 pm
Re: Battery circuit : Save game are not holding on SRAM
Do you have both 139s in the board?
Re: Battery circuit : Save game are not holding on SRAM
No.
I put only one,
and solder jumpers for LoROM decoder
Re: Battery circuit : Save game are not holding on SRAM
This schematic is only for a 64 kibit RAM. It will not work with a 256 kibit RAM: pin 26 became an address line, no longer an enable.
For a 256 kibit RAM, you must use a schematic that gently pulls pin 20 high when power is removed.
Re: Battery circuit : Save game are not holding on SRAM
I found my mistake !
I forgot to solder jumper pin 23 for 6264 RAM that make connection to A11.
So now its works, it keep save data !
It's work with LoROM game.
I tried with HiROM and its not working...why?
About 256 kibit RAM.
I use the same schematic for 16, 64, 256 RAM.
By selecting Jumpers I configure what exactly RAM size i'am using.
Like that?
Question.
If my game need 64kb SRAM, can I use 256?
Re: Battery circuit : Save game are not holding on SRAM
Strange, strange...
I tried to make on same board some saves of games.
I take « Mario All stars » LoROM game (64kb RAM).
ROM files was also expanded to 27C322 EPROM.
When i take of and put it again, i see file name created. So its holds Data inside.
But when I load game with this file, Game starts from the beginning.
It's work with Zelda ROM but not working with Mario All stars (both files extended to 27C322)...
Why, why , why
I tried to make on same board some saves of games.
I take « Mario All stars » LoROM game (64kb RAM).
ROM files was also expanded to 27C322 EPROM.
When i take of and put it again, i see file name created. So its holds Data inside.
But when I load game with this file, Game starts from the beginning.
It's work with Zelda ROM but not working with Mario All stars (both files extended to 27C322)...
Why, why , why
Re: Battery circuit : Save game are not holding on SRAM
I still confuse.
I found that I probably made some mistakes on my circuit for SRAM decoder 74HC139.
if I compare with poorstudenthobbyist
https://thepoorstudenthobbyist.com/2019 ... #memorymap
Pin2 (1A) and pin3 (1B).
The mistake is that,
for HiROM pin2 should be connected to A13 (and not to A14 like on my circuit).
For pin3 (1B),
if HiROM, its should be connected to A14 (and not to A13 like on my circuit).
Can you confirm me please.
Paradoxically,
Saves works with my old diagram (wrong one) for HiROM game.
But it doesn't keep save data for LoROM game.
I found that I probably made some mistakes on my circuit for SRAM decoder 74HC139.
if I compare with poorstudenthobbyist
https://thepoorstudenthobbyist.com/2019 ... #memorymap
Pin2 (1A) and pin3 (1B).
The mistake is that,
for HiROM pin2 should be connected to A13 (and not to A14 like on my circuit).
For pin3 (1B),
if HiROM, its should be connected to A14 (and not to A13 like on my circuit).
Can you confirm me please.
Paradoxically,
Saves works with my old diagram (wrong one) for HiROM game.
But it doesn't keep save data for LoROM game.