SBOA306C September   2018  – July 2024 TLV1842

 

  1.   1
  2.   2
  3.   Trademarks

Design Goals

Load Current (IL) System Supply (VS) Comparator Output Status
Overcurrent (IOC) Recovery Current (IRC) Typical Overcurrent Normal Operation
1A 0.5A 10V VOL < 0.4V VOH = VPU = 3.3V

Design Description

This high-side, current sensing circuit uses one comparator with a rail-to-rail input common-mode range to create an overcurrent alert (OC-Alert) signal at the comparator output (COMP OUT) if the load current rises above 1A. The OC-Alert signal in this implementation is active low. So when the 1A threshold is exceeded, the comparator output goes low. Hysteresis is implemented such that OC-Alert returns to a logic high state when the load current reduces to 0.5A (a 50% reduction). This circuit utilizes an open-drain output comparator to level shift the output high logic level for controlling a digital logic input pin. For applications needing to drive the gate of a MOSFET switch, a comparator with a push-pull output is preferred.

TLV3231-Q1 TLV3231 TLV1841 TLV1831 TLV1842 TLV1832 TLV9022 TLV9032 TLV9021 TLV9031

Design Notes

  1. Select a comparator with rail-to-rail input common-mode range to enable high-side current sensing.
  2. Select a comparator with an open-drain output stage for level-shifting.
  3. Select a comparator with low input offset voltage to optimize accuracy.
  4. Calculate the value for the shunt resistor (R6) so the shunt voltage (VSHUNT) is at least ten times larger than the comparator offset voltage (VIO).

Design Steps

  1. Select the value of R6 so VSHUNT is at least 10 times greater than the comparator input offset voltage (VIO). Making R6 very large improves OC detection accuracy but reduces supply headroom.
    V SHUNT = I OC × R 6 10 × V IO = 55 mV
    set R 6 = 100 for I OC = 1 A and V IO = 5 . 5 mV
  2. Determine the desired switching thresholds for when the comparator output transitions from high-to-low (VL) and low-to-high (VH). VL represents the threshold when the load current crosses the OC level, while VH represents the threshold when the load current recovers to a normal operating level.
    V L = V S - I OC × R 6 = 10 - ( 1 × 0 . 1 ) = 9 . 9 V
    V H = V S - I RC × R 6 = 10 - ( 0 . 5 × 0 . 1 ) = 9 . 95 V
    TLV3231-Q1 TLV3231 TLV1841 TLV1831 TLV1842 TLV1832 TLV9022 TLV9032 TLV9021 TLV9031
  3. With the non-inverting input pin of the comparator labeled as VTH and the comparator output in a logic low state (ground), derive an equation for VTH where VH represents the load voltage (VLOAD) when the comparator output transitions from low to high. Note that the simplified diagram for deriving the equation shows the comparator output as ground (logic low).
    TLV3231-Q1 TLV3231 TLV1841 TLV1831 TLV1842 TLV1832 TLV9022 TLV9032 TLV9021 TLV9031
    V TH = V H × R 2 R 1 + R 2
  4. With the non-inverting input pin of the comparator labeled as VTH and the comparator output in a high-impedance state, derive an equation for VTH where VL represents the load voltage (VLOAD) when the comparator output transitions from high to low. Applying superposition theory to solve for VTH is recommended.
    TLV3231-Q1 TLV3231 TLV1841 TLV1831 TLV1842 TLV1832 TLV9022 TLV9032 TLV9021 TLV9031
    V TH = V L × R 2 + R 3 R 1 + R 2 + R 3 + V PU × R 1 R 1 + R 2 + R 3
  5. Eliminate variable VTH by setting the two equations equal to each other and solve for R1. The result is the following quadratic equation. Solving for R2 is less desirable since there are more standard values for small resistor values than the larger ones.
    0 = V PU × R 1 2 + ( V PU × R 2 + V L × ( R 3 + R 2 ) - V H × R 2 ) × R 1 + ( V L - V H ) × ( R 2 2 + R 2 × R 3 )
  6. Select values for R3 and R2. R3 is significantly smaller than R2 (R3 << R2). Avoid increasing R3 since an increase in R3 causes the comparator logic high-output level to increase beyond VPU. For example, increasing R3 to a value of 100kΩ can cause the logic high output to be 3.6V. In this case, select R2 = 2M and R3 = 1kΩ.
    R 2 = 2
    R 3 = 1
  7. Calculate R1 after substituting in numeric values for VPU, R2, VL, VH, and R3. For this design, set VPU = 3.3, R2 = 2M, VL = 9.9, VH = 9.95, and R3 = 1kΩ.
    0 = 3 . 3 × R 1 2 + ( 6 . 591 M ) × R 1 - ( 200 . 1 G )
    the positive root for R 1 = 29 . 9
    using standard 1 % resistor values , R 1 = 30 . 1
  8. Calculate VTH using the equation derived in Design Step 3; use the calculated value for R1. Note that VTH is less than VL since VPU is less that VL.
    V TH = V H × R 2 R 1 + R 2 = 9 . 802 V
  9. With the inverting terminal labeled as VTH, derive an equation for VTH in terms of R4, R5, and VS.
    V TH = V S × R 5 R 4 + R 5
  10. Calculate R4 after substituting in numeric values R5 = 1M, VS = 10, and the calculated value for VTH.
    R 4 = R 5 × ( V S - V TH ) V TH = 20 . 15
    using standard 1 % resistor values , R 4 = 20 . 5

Design Simulations

DC Simulation Results

TLV3231-Q1 TLV3231 TLV1841 TLV1831 TLV1842 TLV1832 TLV9022 TLV9032 TLV9021 TLV9031

Transient Simulation Results

TLV3231-Q1 TLV3231 TLV1841 TLV1831 TLV1842 TLV1832 TLV9022 TLV9032 TLV9021 TLV9031

Design References

See Analog Engineer's Circuit Cookbooks for TI's comprehensive circuit library.

See Circuit SPICE Simulation File SLOM456.

Design Featured Comparator

Parameters TLV184x TLV183x
VS 2.7V to 40V 2.7V to 40V
VinCM 2.7V to 40V 2.7V to 40V
VOUT Open-Drain Push-Pull
VOS 500µV 500µV
IQ 70µA/Ch 70µA/Ch
tPD(HL) 65ns 65ns
#Channels 1, 2, 4 1, 2, 4
TLV184x TLV183x

Design Alternate Comparator

TLV902x_3x TLV323x
VS 1.6V to 5.5V 2.7V to 5.5V
VinCM Rail-to-rail Rail-to-rail
VOUT Open-Drain, Push-Pull Push-Pull
VOS 300µV 500µV
IQ 16µA/Ch 200µA/Ch
tPD(HL) 100ns 20ns
#Channels 1, 2, 4 1, 2
TLV902x_3x TLV3231