# Adding threshold hysteresis for smooth undervoltage/overvoltage lockout

Resistive dividers help set up power supply undervoltage and overvoltage lockout thresholds, but threshold hysteresis is needed to obtain a smooth and chatter-free lockout function even in the presence of supply noise or resistance.

Resistive dividers attenuate high voltages down to a level that low voltage circuits can accommodate without getting overdriven or damaged. In power path control circuits, resistive dividers help set up power supply undervoltage and overvoltage lockout thresholds. Such supply voltage qualification circuits are found in automotive systems, battery-powered portable instruments, and data processing and communication boards.

Undervoltage lockout (UVLO) prevents the downstream electronic system from operating with abnormally low power supply voltages, which could cause system malfunction. For example, digital systems can behave erratically or even freeze up when their supply voltage is below specification. When the power supply is a rechargeable battery, undervoltage lockout prevents battery damage due to deep discharge. Overvoltage lockout (OVLO) protects the system from damagingly high supply voltages. Since undervoltage and overvoltage thresholds depend on the system’s valid operating range, resistive dividers are used to set up custom thresholds with the same control circuit. Threshold hysteresis is needed to obtain a smooth and chatter-free lockout function even in the presence of supply noise or resistance. After discussing a simple UVLO/OVLO circuit, this article will present some simple methods for adding threshold hysteresis, which is necessary when the default value is insufficient.

Undervoltage and Overvoltage Lockout Circuit

Figure 1 shows an undervoltage lockout circuit (without hysteresis for now). It has a comparator with a positive reference voltage (V_{T}) at its negative input. The comparator controls a power switch that opens or closes the path between the power supply input and the downstream electronic system. The comparator’s positive input connects to a resistive divider from the input. If the supply is turned on and starts rising from 0 V, the comparator output is initially low, keeping the power switch off. The comparator output trips when its positive input reaches V_{T}. At this moment, the current in the bottom resistor is V_{T}/R_{B}. The same current flows in R_{T} if the comparator has no input bias current. Therefore, the supply voltage when the comparator trips is V_{T} + R_{T} × V_{T}/R_{B} = V_{T} × (R_{B} + R_{T})/R_{B}. This is the supply UVLO threshold set up by the resistive divider. For example, a V_{T} of 1 V and R_{T} = 10 × R_{B} yields a UVLO threshold of 11 V. Below this threshold, the comparator output is low, opening the power switch; above this UVLO threshold, the switch is closed and the supply flows through to power up the system. The threshold can be easily adjusted by changing the ratio of R_{B} and R_{T}. The absolute resistor value is set by the amount of bias current budgeted for the divider (more on this later). To set up an OVLO threshold, just swap the two inputs of the comparator (for example, see the lower comparator in Figure 2) such that a high going input forces the comparator output low and opens the switch.

*Figure 1. Power supply undervoltage lockout using a resistive divider, comparator, and power switch. (Source: Analog Devices)*

While not the focus of this article, the switch can be implemented with an N-channel or a P-channel power MOSFET. The previous discussion assumes an N-channel MOSFET switch that opens (high resistance) when its gate voltage is low (for example, 0 V). To completely close (low resistance) an N-channel MOSFET, the gate voltage must be higher than the supply by at least the MOSFET threshold voltage, requiring a charge pump. Protection controllers such as LTC4365, LTC4367, and LTC4368 integrate comparators and charge pumps to drive N-channel MOSFETs while still consuming low quiescent current. P-channel MOSFETs don’t require a charge pump but the gate voltage polarity is reversed; that is, a low voltage closes whereas a high voltage opens a P-channel MOSFET switch.

Getting back to resistive dividers: a 3-resistor string sets up both undervoltage and overvoltage lockout thresholds (Figure 2), saving one divider’s bias current vs. using two separate 2-resistor strings. The UVLO threshold is V_{T} × (R_{B} + R_{M} + R_{T})/(R_{B} + R_{M}) while the OVLO threshold is V_{T} × (R_{B} + R_{M} + R_{T})/R_{B}. An AND gate combines the output of the two comparators before sending it to the power switch. Therefore, the power switch closes to power the system when the input voltage is between the undervoltage and overvoltage thresholds; otherwise, the switch is open, disconnecting the supply from the system. If divider current consumption is not a concern, separate undervoltage and overvoltage dividers provide more flexibility in adjusting each threshold independently of the other.

*Figure 2. Undervoltage and overvoltage lockout using a single resistive divider. (Source: Analog Devices)*

Undervoltage and Overvoltage Lockout with Hysteresis

In Figure 1, if the power supply rises slowly and has noise or if the supply has inherent resistance (as in a battery) that causes the voltage to drop with load current, the output of the comparator will switch high and low repeatedly as the input crosses its UVLO threshold. This is because the comparator’s positive input repeatedly goes above and below the V_{T} threshold due to the input noise or the drop due to load current through the supply resistance. For battery-powered circuits, this can be a never-ending oscillation. Using a comparator with hysteresis eliminates this chatter, making the switch transition smoother. As illustrated in Figure 3, a hysteretic comparator presents different thresholds for a rising (for example, V_{T} + 100 mV) vs. a falling input (for example, V_{T} – 100 mV). The hysteresis at the comparator level is scaled up by R_{B} and R_{T} to 200 mV × (R_{B} + R_{T})/R_{B} at the supply level. If the noise or the drop at the supply input is below this hysteresis, the chatter is eliminated. There are ways to add or increase hysteresis if that provided by the comparator is either absent or insufficient. All these methods use positive feedback at the divider tap—for example, a rising comparator input jumps higher when the comparator trips. For simplicity, the following equations assume no intrinsic hysteresis in the comparator.

*Figure 3. Adding undervoltage lockout threshold hysteresis with a resistor from the divider tap to the power switch output. (Source: Analog Devices)*

*Resistor from Divider to Output (Figure 3):*

Add a resistor (R_{H}) from the divider tap (the comparator’s positive input) to the power switch output. When the supply starts rising from 0 V, the comparator’s positive input is below V_{T} and the comparator output is low, keeping the power switch off. Assume that the switch output is at 0 V due to the system load. Hence, R_{H} is in parallel with R_{B} for input threshold calculation. The rising input undervoltage threshold is V_{T} × ((R_{B} || R_{H}) + R_{T})/(R_{B} || R_{H}), where R_{B} || R_{H} = R_{B} × R_{H}/ (R_{B} + R_{H}). The switch turns on above this threshold, connecting the supply to the system. To calculate the falling input undervoltage threshold, R_{H} is in parallel with R_{T} since the switch is closed, giving the falling input undervoltage threshold as: V_{T} × (R_{B} + (R_{T} || R_{H}))/R_{B}, where R_{T} || R_{H} = R_{T} × R_{H}/(R_{T} + R_{H}). If the comparator itself had some hysteresis, substitute V_{T} with the rising or falling comparator threshold in the previous equations. Recall the Figure 1 example, with V_{T} = 1 V and R_{T} = 10 × R_{B}, where both the rising and falling thresholds are 11 V in the absence of comparator hysteresis or R_{H}. Adding an R_{H} = 100 × R_{B}, as in Figure 3, gives a rising input threshold of 11.1 V and a falling threshold of 10.09 V; that is, a hysteresis of 1.01 V. This method does not work for OVLO because a rising input turns off the power switch, causing R_{H} to pull the comparator input lower (which turns on the switch again) instead of higher.

*Switching in a Resistor (Figure 4):*

Another method of adding hysteresis is to switch in a resistor that changes the effective value of the bottom resistor. The switched resistor can be in parallel (Figure 4a) or in series (Figure 4b). Consider Figure 4a: when V_{IN} is low—say, 0 V—the comparator’s output (UV or OV node) is high, turning on the N-channel MOSFET M1 and connecting R_{H} in parallel with R_{B}. Assume that M1’s on-resistance is either negligible compared to R_{H} or is included in R_{H}’s value. The rising input threshold is the same as in Figure 3: V_{T} × ((R_{B} || R_{H}) + R_{T})/(R_{B} || R_{H}). Once V_{IN} is above this threshold, the comparator output is low, turning off M1 and disconnecting R_{H} from the divider. Therefore, the falling input threshold is the same as in Figure 1: V_{T} × (R_{B} + R_{T})/R_{B}. Continuing our example with V_{T} = 1 V, R_{T} = 10 × R_{B}, and R_{H} = 100 × R_{B}, the rising input threshold is 11.1 V and the falling threshold is 11 V; that is, R_{H} yields a hysteresis of 100 mV. This and the following methods can be used for either undervoltage or overvoltage lockout as their purpose depends on how the comparator output turns on the power switch (not shown).

*Figure 4. Adding undervoltage or overvoltage lockout threshold hysteresis with a switched (a) shunt resistor or current and (b) a series resistor. (Source: Analog Devices)*

The configuration of Figure 4b gives the rising input threshold as V_{T} × (R_{B} + R_{T})/R_{B} and the falling input threshold as V_{T} × (R_{B} + R_{H} + R_{T})/(R_{B} + R_{H}). R_{H} = R_{B}/10 in Figure 4, giving 11 V as the rising input threshold and 10.091 V as the falling threshold—that is, 909 mV of hysteresis. This shows that the Figure 4b configuration needs a much smaller R_{H} to yield a much larger hysteresis.

*Switching in a Current (Figure 4a):*

The resistor R_{H} of Figure 4a can be replaced by a current source I_{H}. This method is used in the LTC4417 and LTC4418 prioritized controllers. When V_{IN} is low, the comparator’s high output enables I_{H}. At the rising input threshold, the negative input of the comparator is at V_{T}. Therefore, the current in R_{T} is I_{H} + V_{T}/R_{B}, yielding the rising threshold as V_{T} + (I_{H} + V_{T}/R_{B}) × R_{T} = V_{T} × (R_{B} + R_{T})/R_{B} + I_{H} × R_{T}. Once V_{IN} is above this threshold, I_{H} is turned off by the comparator’s low output. Therefore, the falling threshold is the same as in Figure 1: V_{T} × (R_{B} + R_{T})/R_{B}, and the input threshold hysteresis is I_{H} × R_{T}.

Resistive Divider Bias Current

The previous equations have assumed that the input bias current of the comparator input is zero while the examples have only considered resistor ratios instead of absolute values. Comparator inputs have both input offset voltage (V_{OS}), reference inaccuracy (which can be clubbed with V_{OS}), and input bias or leakage current (I_{LK}). The zero leakage assumption works out if the divider bias current, V_{T}/R_{B} at Figure 1’s trip point, is much larger than the input leakage. For instance, a divider current that is 100 times the input leakage current keeps leakage-caused input threshold error below 1%. Another method is to compare the leakage induced threshold error to that from the offset voltage. The comparator nonidealities change the Figure 1 input undervoltage threshold equation to be: (V_{T} ± V_{OS}) × (R_{B} + R_{T})/R_{B} ± I_{LK} × R_{T} (similar to the previous hysteretic current equation), which can be rewritten as (V_{T} ± V_{OS} ± I_{LK} × R_{B} × R_{T}/(R_{B} + R_{T})) × (R_{B} + R_{T})/R_{B}. The input leakage shows up as an error in the comparator’s threshold voltage and this error can be minimized in relation to the offset voltage—that is, I_{LK} × (R_{B} || R_{T}) < V_{OS}, by proper resistor selection.

As an example, the LTC4367 undervoltage and overvoltage protection controller has ±10 nA maximum leakage for the UV and OV pins while the UV/OV pin comparator’s 500 mV threshold offset voltage is ±7.5 mV (±1.5% of 500 mV). Budgeting a ±3 mV (±0.6% of 500 mV, or less than half of the 7.5 mV offset) leakage caused threshold error gives R_{B} || R_{T} < 3 mV/10 nA = 300 kΩ. To set up an 11 V input undervoltage threshold with a 0.5 V comparator threshold requires R_{T} = R_{B} × 10.5 V/0.5 V = 21 × R_{B}. Therefore, R_{B} || R_{T} = 21 × R_{B}/22 < 300 kΩ, giving R_{B} < 315.7 kΩ. The nearest 1% standard value for R_{B} is 309 kΩ, yielding R_{T} to be 6.49 MΩ. The divider bias current at the trip point is 0.5 V/309 kΩ = 1.62 µA, which is 162 times the 10 nA leakage current. This kind of analysis is important when minimizing the divider current without increasing the threshold error due to the comparator’s input leakage current.

Conclusion

Resistive dividers enable easy adjustment of power supply undervoltage and overvoltage lockout thresholds with the same comparator-based control circuit. Supply noise or resistance requires threshold hysteresis to prevent power switch on and off chattering as the supply crosses the threshold. A few different methods for implementing undervoltage and overvoltage lockout hysteresis have been shown. The essential principle is to have some positive feedback at the divider tap when the comparator trips. When adding or increasing hysteresis of protection controller ICs, some methods depend on the availability of the comparator output or a similar signal at the IC output pins. While picking resistor values, care should be taken that the comparator’s input leakage doesn’t become a dominant source of threshold error. A comprehensive set of related equations, including those in this article, have been implemented in a spreadsheet that’s available to download.

Pinkesh Sachdev is a senior applications engineer for power system management at Analog Devices. He received his B.Tech. degree from the Indian Institute of Technology, Mumbai, India, and his M.S. degree from Stanford University, both in electrical engineering. He can be reached at pinkesh.sachdev@analog.com. |

**Related Contents:**

- Managing power supply sequencing and supervision, part 1
- Managing power supply sequencing and supervision, part 2
- Selecting a built-in power supply
- Selecting an external power supply
- The next challenges of low power design

*For more Embedded, subscribe to Embedded’s weekly email newsletter.*