Electrical – Sram battery backup

backupcell-batterysram

I don't have an option here in my country , No non-volatile sram and i need it for my project .
i designed a circuit for that and need anyone's opinion if it's ok or need a correction .

enter image description here

Best Answer

Given the specs say

Data retention current:  1.0 μA (MAX.) (V = 3 V, T = 25°C)

I see at least three problems:

  • The two 1 kΩ at the battery transistor will draw too much current when VCC is out. 40 kΩ each seems more appropriate to me. (2.2V / (1µA / 25)) ~= 88 kΩ; 40 kΩ should be good enough.

  • When the battery is half used its voltage will be below the minimum data retention voltage, plus you will have a (small) voltage drop at the transistor. This may or may not work, or, worst, it may work when you test it and stop working at a later time.

  • The 2N3904 will not cut until VCC is below 0.7~0.8 V. If VCC goes down slowly (electrolytic capacitors, ...) there will be a time during which both this transistor and the one feeding current from the battery will be active. In this situation the third transistor, the bottom one, will probably work in reverse and feed current from the battery to VCC (VCC is now 1 or 2 volts below Vbat). This will drain the battery through the 1 kΩ. In the worst scenario the leak will keep VCC above .7 V and, because it will never stop, it will drain the battery in a few days.

I'd suggest changing the two resistors at the base of the 2N3904 to a divisor that will cut it somewhere between 3 and 4 volts at VCC, possibly adding a third resistor from the emitter of the bottom transistor to introduce a Smith Trigger effect and avoid any possibility of oscillations during the transition.