NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: Save RAM Questions  
Posted byblargg
Posted on3/11/04 01:07 AM
From IP199.170.89.130  



The static RAM I've used required a particular sequence of chip select signals to properly transition from full-power to low-power retention mode. Thus some external controller is necessary for games with battery-backed SRAM. Special NVRAM modules with the controller and battery already built-in do exist, but their cost rules out their use in cartridges.

I made a development cartridge which used the save RAM to store my program (a modified Zelda board, which uses MMC1). I found that if the program was executing from the save RAM and I turned power off, various locations would get corrupted. I worked around this by copying the main loop of the code to the NES system RAM. Holding reset suspends the processor (and thus memory accesses), which is another way to avoid power-down while the save RAM is being accessed. This is my guess as to why holding reset avoids corruption. The save RAM controller could also be designed to handle a power-down at any time, and perhaps the MMC3 and later do this (I don't know if they do).

If the top loading NES doesn't have the data loss issue, perhaps it suspends the processor just before power is lost, achieving the same as described as above.




-
Entire Thread
Subject  Posted byPosted On
*Save RAM Questions  Anonymous3/10/04 7:13 PM
.*Re: Save RAM Questions  dXtr3/13/04 2:42 PM
..*Re: Save RAM Questions  blargg3/13/04 6:53 PM
...*Re: Save RAM Questions  Memblers3/13/04 8:11 PM
....*Re: Save RAM Questions  mark_k3/31/04 2:55 PM
..Re: Save RAM Questions  blargg3/11/04 01:07 AM
..*Re: Save RAM Questions  tepples3/11/04 07:10 AM
.*Re: Save RAM Questions  Memblers3/10/04 8:10 PM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo