Design Goals
LOAD CURRENT (IL) | SYSTEM SUPPLY (VS) | COMPARATOR OUTPUT STATUS |
---|
Over Current (IOC) | Recovery | Typical | Over Current | Normal Operation |
10 A | Power Cycle | 24 V | > VS – 0.4 V | < 0.4 V |
Design Description
This high-side, current sensing solution uses a high-voltage, rail-to-rail input comparator and a p-channel MOSFET to create an over-current (OC) latch circuit. The OC output signal from the comparator is a logic-high level when the load current exceeds 10 A. The logic-high output level turns the MOSFET switch off and disconnects the load from the system supply (VS). The comparator output also drives the bottom of the R2/R3 resistor divider which controls the OC threshold level. Under normal operating current levels, the bottom of the resistor divider is held low at ground potential. However, when the OC level is exceeded, the comparator output goes high and elevates the non-inverting input of the comparator to a level equal to VS. Due to the integrated hysteresis of the comparator, the comparator output will remain high and thus a latched output condition is achieved. Only power-cycling VS will remove the latched output condition. The shutdown pin could also be utilized to clear the latch if a pull-down resistor is added at the output of the comparator.
Design Notes
- Select a comparator with rail-to-rail input common mode range to enable high-side current sensing.
- Select a comparator with a push-pull output stage to efficiently drive the p-channel MOSFET.
- Select a comparator with low input offset voltage to optimize accuracy.
- Select a comparator with integrated hysteresis to create a latched-output condition.
Design Steps
- Select the value of shunt resistor
(R1) so the shunt voltage (VSHUNT) is at least 10x greater than the
comparator input offset voltage (VIO). Note that making R1 very large
will improve OC detection accuracy but will reduce supply headroom.
- Since a comparator with integrated
hysteresis is being utilized, the hysteresis needs to be accommodated for in the
design. Note how a comparator with integrated hysteresis does not transition
from high-to-low and from low-to-high at the same input voltage level. In the
case of the TLV1805, the hysteresis is 14 mV and thus the transition thresholds
are at ±7 mV respectively.
- A good way to model a comparator
internal hysteresis is shown below. One can think of hysteresis as offset that
is intentionally added to the design. When the output of the comparator is low,
a voltage source equivalent to VHYS/2 is added in series with the
inverting input pin. However, when the comparator output is high, the hysteresis
is modeled as a voltage source of the same value added in series with the
non-inverting input.
- Select the values of resistor
divider R2 and R3 so the comparator output will transition from low-to-high when
VSHUNT exceeds 200 mV. Since the output of the comparator will be
low prior to an OC condition occuring, use the Comparator Output Low
model. The integrated hysteresis effectively shifts the switching threshold from
VS - 200 mV to VS - 193 mV in the case of the TLV1805
which has an integrated hysteresis value of 14mV. Recall that 1/2 of the
hysteresis is applied since hysteresis is defined as the difference between the
two switching thresholds of a comparator.
- The following equation is used to
solve for R2 and R3.
- Since the goal of this design is to
create a circuit that will disconnect the load from the system supply when an OC
condition occurs, the output of the comparator is connected to the gate of a
p-channel MOSFET switch. Recall that a p-ch MOSFET will look like a closed
switch when the source to gate voltage is greater than the voltage threshold
(VSG > VTH). Likewise, the MOSFET will look like an
open-circuit when VSG < VTH (see figures below).
- Add a series resistor (R4) between
the comparator output and the gate of the MOSFET to limit the output current
during the transition from low to high. Keeping the current in the mA range is
sufficient. Selecting a value of 10 kΩ for R1, the current is limited to 2.4 mA
(24 V/10 kΩ).
- The other goal of this design is to
latch the circuit when an OC condition occurs. This is accomplished by providing
feedback to the resistor divider network of R2/R3. When the output of the
comparator goes high, it turns off the MOSFET and raises the non-inverting node
of the comparator to a voltage level of VS.
- Note that VSHUNT also
reduces to 0 V since the load current is now 0 A. The hysteresis of the
comparator that was previously mentioned in Design Step 2 will keep the
non-inverting input 7 mV higher than the inverting input. This is what latches
the comparator output in a logic high state.
- Lastly, capacitor C1 is connected
from the non-inverting input to ground to make sure that the comparator starts
in the logic low output state as VS rises upon initial power-up.
Design Simulations
DC Simulation Results
Transient Simulation Results
Design References
See Analog Engineer's Circuit Cookbooks for TI's comprehensive circuit library.
See Circuit SPICE Simulation File, SLOM456.
Design Featured Comparator
TLV1805-Q1, TLV1805 |
---|
VS | 3.3 V to 40 V |
VinCM | Rail-to-rail |
VOUT | Push-Pull |
VOS | 500 µV |
IQ | 135 µA |
tPD(HL) | 250 ns |
#Channels | 1 |
TLV1805-Q1, TLV1805 |
Design Alternate Comparator
| LMC6762 | TLV370x-Q1, TLV370x |
---|
VS | 2.7 V to 15 V | 2.7 V to 16 V |
VinCM | Rail-to-rail | Rail-to-rail |
VOUT | Push-Pull | Push-Pull |
VOS | 3 mV | 250 µV |
IQ | 20 µA | 560 nA/Ch |
tPD(HL) | 4 µs | 36 µs |
#Channels | 1 | 1, 2, and 4 |
| LMC6762 | TLV370x-Q1, TLV370x |