Pull up resistor on Sram /CE, is it enough?

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
Pull up resistor on Sram /CE, is it enough?
by on (#137088)
As the title states, is it enough adding a pull up resistor to the /CE pin on a 256K SRAM to stop stray writes or data corruption? I've been playing around with 256K srams and data banking, and originally I was trying to use a transistor (tied to cart /RESET, VCC and sram /CE) to act as the control for the /CE, but found that data kept getting erased after a reset. I removed that transistor and used a 1K ohm pull-up resistor to VCC (running from diodes, which switch to my battery once the system powers off) , and now my saves seem to be working properly. I've subjected the cart to numerous resets, hard power off/ons, and the data remains intact...much to my surprise, as it doesn't seem like "enough" to stop the saves from being wiped. I don't want to use another chip in my design, but I could do with a different transistor if need be.

TL;DR - Is a pull-up resistor on /CE enough to stop bad writes to a 256K sram?
Re: Pull up resistor on Sram /CE, is it enough?
by on (#137089)
yes. the pullup is enough. that's actually how it's correctly done.

1K is a little bit low... going to make some assumptions on this calculation... that silicon diode drops is 0.6 V... and that a logic gate generating a low /CS is trying to pull down the otherwise pulled up pin to exactly 0V...

5V-0.6 = 4.4V

4.4 volts through a 1K ohm resistor (ohms law): I = E/R, I=4.4/1000 = 4.4 mA

This current is kind of high as far as logic gate's sinking ability goes. better to use something like a 4.7K or 10K ohms pullup in the future as it feels more right.
Re: Pull up resistor on Sram /CE, is it enough?
by on (#137091)
Wow thanks whicker! That was exactly what I was hoping for :)

I've got some other resistor values here, so thats not an issue. I'll throw in a 10K instead as you suggested.

Thanks again!
Re: Pull up resistor on Sram /CE, is it enough?
by on (#137133)
Typically you'd have /CE driven by the address decoder, which should be sufficient without the need for any pull-up resistors, but if you do use one, 10K is typically the minimum resistor used, and I've seen up to around 47K-56K.