I'm working on a battery powered prototype and have discovered an annoying bug. When power is removed from the device by disconnecting the battery, the voltage on the 5V power rail will decay fairly quickly to around 2V but then will decay much slower. In fact, it will stay between 2V and 1V for around 30 seconds. If the device is restarted during that time (i.e. the battery is reconnected), one of the chips will go into a bad state and the device will malfunction. This is especially annoying because this is precisely how most people power-cycle the device.

I figure that there is still residual charge being stored in the decoupling capacitors on the 5V power rail, which is causing the device to sit in this range for a while until parasitic resistances slowly drain the capacitors. Could this be correct?

If so, is there a generally accepted way to best discharge those decoupling capacitors?

  • 4
    \$\begingroup\$ Bleeder resistor. \$\endgroup\$ Sep 27, 2016 at 21:11
  • \$\begingroup\$ Can you add details on the failure so it can be analyzed for a solution? I understand if not, then you can examine a null current sensing active shutdown that works down to 0.6V \$\endgroup\$ Sep 28, 2016 at 1:21
  • 1
    \$\begingroup\$ I can understand a bleeder R may not give a desirable battery effect on life, and contact bounce still poses a threat. \$\endgroup\$ Sep 28, 2016 at 1:36

2 Answers 2


The situation you described is very typical for devices with low-power CMOS ICs. This is called "brown-out" conditions.

One simple solution is to add so-called "bleeding resistors" to power rails that cause the trouble. But in this case you will waste some power during normal operations, which might be prohibitive from battery life standpoint.

More expensive solution (used in portable electronics/laptops) is to use active circuits (typically FET transistors) on power rails. The transistors are controlled by a voltage monitor, which turns the FETs on when some main voltage rail drops below certain limit, and the FETs discharge the rails quickly.

Some voltage regulator ICs have a built-in "auto-discharge" circuitry.

In many cases it is sufficient to provide a robust hardware reset to CMOS IC after the brown-out condition, if IC has a well designed hardware RESET which overrides any residual "bad" states after Vdd is restored.

  • \$\begingroup\$ May be worth mentioning external voltage supervisors as an option if the IC doesn't have good builtin brownout protection. \$\endgroup\$ Sep 28, 2016 at 4:24
  • \$\begingroup\$ Actually, I don't know any chips that even have any brownout protection. Usually ICs specify min-max voltage conditions that OEM product manufacturers must meet, otherwise functionality of IC can't be guaranteed. It is usually a product design responsibility to meet these conditions and eliminate brownouts. Reason is that brownout is difficult to formalize, and therefore difficult to test for. \$\endgroup\$ Sep 28, 2016 at 4:42
  • \$\begingroup\$ The majority of microcontrollers have it - it's typically just an integrated voltage supe tied to the reset line. But I guess most discrete logic does not. \$\endgroup\$ Sep 28, 2016 at 5:29
  • \$\begingroup\$ I guess manufacturers of micro-controllers who really care about customers do include build-in BO protection. But many don't. Even sometimes a hardware reset is not really a reset, unfortunately :-(. \$\endgroup\$ Sep 28, 2016 at 6:15
  • 1
    \$\begingroup\$ @TonyStewart: you know Tony, unfortunately things do change over time. For example, how do you like the term "shield" which kids are using today for add-on (or "piggy-back") boards? \$\endgroup\$ Sep 29, 2016 at 16:34


On my PC I know if I press the power down, it will not reset all the circuits unless I wait 20 seconds or press the reset switch which presents a load to decay the charge faster in <1 second. Often a reset is detected by the positive change in voltage and if not sufficiently decayed, it cannot produce a positive reset when the cap is still charged with a pull down resistor. Although it is not destructive like you indicated in your situation, It prevents my full power on reset (POR) function.

But let's examine your real problem with a potential scenario.

"one of the chips will go into a bad state and the device will malfunction"

With LDO's and multiple supply voltages power sequencing can be is important to prevent CMOS latchup.

This can occur say when a logic chip powered perhaps by an LDO which all have common collector or drain type pullup regulators. Say the output is still holding a charge to activate a logic chip which interfaces with another chip which is powered by say 5V. Even if it accepts 3V logic but cannot accept inputs > 0.7V above the supply rail otherwise it biases a substrate SCR latch and causes the chip to short circuit when the 5V supply power is reconnected.

Although this is hypothetically true, it may not be the user's exact scenario.

Such a problem is usually handled by putting a Schottky diode in reverse across the LDO to not only protect the LDO but pull down by the output within a diode drop to prevent latchup on other interface chips using the higher input rail.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.