# Can I use logic inputs higher than Vcc but still in the operating voltage range of the IC?

I'm trying to create a battery-backed-up non-volatile RAM using an SRAM IC (AS6C1008 from Alliance Memory, datasheet).

My idea for separating the backup battery from the main voltage source is to use two diodes like this:

Because of the diodes, the RAM chip will only receive about 4.5 V as Vcc (depending on the diode), but that shouldn't cause any problems, since its operating range is 2.7 V to 5.5 V.

But all the logic inputs in the HIGH state would be connected to the external voltage source, 5 V, which falls into the operating range of the RAM but is higher than its Vcc.

Can I use it this way, or do I have to make the logic input voltages lower somehow? If I have to lower them, what would be the simplest way to do that? (The RAM has 29 logic inputs, so I would like to avoid building complex circuits for each of them). Or should I go with a different method for separating the two voltage sources?

• The limititations on input voltages not being allowed above VCC have to do with the ESD protections inside the IC. Learn more about that by watching this video by Dave from the EEVBlog where he powers and IC through it's input pin! youtube.com/watch?v=2yFh7Vv0Paw Commented Dec 4, 2021 at 12:31
• @Bimpelrekkie - Been there, seen that! Only in my case it was a broken VCC bond wire inside the chip package. Commented Dec 4, 2021 at 12:44
• Dallas/Maxim (as well as others) have ics specifically for this purpose. A popular choice might be the max690 series. Battery backup and watchdog. Commented Dec 4, 2021 at 13:01
• Can all the other components in your design operate at 4.5 V? If so, just put another diode in series with their Vcc pins, so your entire circuit runs at 4.5 V. If not, put another diode in anyway, and increase your supply voltage to 5.5 V. Commented Dec 5, 2021 at 1:33

Sometimes, it's not where you expect to see it: -

If Vcc is 4.5 volts, then going above 4.8 volts might be unwise.

• Thanks for pointing that out, I missed that. What could I do to decrease the voltage of the inputs?
– FZs
Commented Dec 4, 2021 at 12:08
• put a similar in series with the supply that powers the inputs Commented Dec 4, 2021 at 12:11
• @FZs you might have an even bigger problem; if your battery is only (say) 3 volts, and the logic levels are still 5 volts AND the incoming 5 volt supply is missing then you are having a bigger problem. I can't resolve this. Commented Dec 4, 2021 at 12:12
• @Andyaka For the backup circuit to switch to the battery, the external voltage has to drop below the battery voltage. In that case, logic HIGH inputs would also be lower than the battery (they come from the same external power supply). Moreover, I will only operate the RAM when the external voltage is present, the battery is only there for data retention, so there won't be any inputs when the external voltage is gone.
– FZs
Commented Dec 4, 2021 at 12:19
• @FZs to analyse this correctly requires full circuit disclosure and, in all probability the raising of a new question because, although slight movements of the goal posts are tolerated on this site, nobody likes them shifting from one side of the pitch to the other! Commented Dec 4, 2021 at 13:31

With that setup the IC’s Vcc node will get pulled up when an input goes above the Vcc limit enough to forward bias the high-side protection diode. That is, the IC might get a bit of ‘phantom power’ through its pins. I say ‘might’, because the datasheet says that high-limit voltage will Vcc+0.3V, implying a Schottky bias for that protection diode. So a 5V input will pump up Vcc to 4.7V.

In reality, that bit of phantom power leakage pumping up Vcc isn’t going to cause harm, because the leakage causes Vcc to track up some, and thus the input injection current will be small - well below any possibility of latch-up or other damage.

You can minimize this by using lower-Vf Schottky diodes for the blockers, such as a BAT54C pair. These also have a 0.3V forward voltage, making Vcc also 4.7V, so the leakage from 5V I/O to Vcc should be close to nothing.

For safety, add a series resistance for the backup battery if you’re using a lithium cell.