SNOAA40A September   2019  – September 2024 INA240 , TLV3202

 

  1.   1
  2.   2
  3.   Trademarks

Design Goals

SYSTEM CURRENT LEVELS SUPPLY
Falling OC Threshold Falling OC Recovery Rising OC Threshold Rising OC Recovery V+ V-
IG1 < -35A IG1 > -31A IG1 > 100A IG1 < 90A 3.3V 0V

Design Description

This bidirectional current sensing solution uses a current-sense amplifier and a high speed dual comparator with a rail-to-rail input common mode range to create over-current (OC) alert signals at the comparator outputs (OUTA and OUTB) if the input current (IG1) rises above 100A or falls below -35A. In this implementation, both over-current alert signals are active high, so when the 100A or -35A thresholds are crossed, the comparator outputs goes high. External hysteresis is implemented on both comparators so that the comparator outputs return to logic low states when the current reduces by 10% (90A and -31A). While the circuit below has shunt resistor R8 connected to ground, the same circuit is applicable for high side current sensing up to the common mode voltage range of the INA.

Design Notes

  1. Select a comparator with rail-to-rail input common mode range.
  2. Select a current sense amplifier with low offset voltage and a common mode input range that matches the requirements of the system.

Design Steps

  1. To determine the comparator threshold voltages, first calculate the INA240A1 output voltages that correspond to the desired current thresholds. The calculations depend on the gain of the INA240 (20, 50, 100, 200 for A1, A2, A3, A4, respectively), the input current (IG1) and sense resistor (R8), and the reference voltage when the input current is 0 (VREF). Per section 8.3.2 in the INA240 data sheet, R8 is a function of the differential input voltage and the maximum input current to the INA240. Given that the input current in this system swings above 100A, by keeping R8 small, the power dissipation across R8 is lessened.
    INA_OUT = VREF + G × INP - INN
    INP - INN = IG 1 × R 8
    VREF = V + - 0 2 = 3 . 3 V 2 = 1 . 65 V


    Using these equations and the desired current thresholds, the following table is generated:

    DESCRIPTION IG1 INA-OUT
    VH, CHB Overcurrent threshold in forward direction 100A 1.65V + 20 × (100A × 0.33mΩ) = 2.31V
    VL, CHB Recovery threshold in forward direction 90A 1.65V + 20 × (90A × 0.33mΩ) = 2.244V
    VH, CHA Overcurrent threshold in reverse direction -35A 1.65V + 20 × (-35A × 0.33mΩ) = 1.419V
    VL, CHA Recovery threshold in reverse direction -31.5A 1.65V + 20 × (-31.5A × 0.33mΩ) = 1.4421V

    First, focus on the top comparator (channel A), which is in an inverting comparator configuration. This comparator swings to a logic high when the current in the reverse direction exceeds -35A, and returns to a logic low when the current in the reverse direction recovers to -31.5A. These current levels correspond to voltage levels of 1.419V and 1.4421V, respectively.

  2. Assume a value for R2 (the bottom resistor in the resistor divider). In this circuit, 10kΩ is chosen.
  3. Derive two equations for R1 in terms of V+, VL, VH, R2, R3 by analyzing the circuit when INNA = V­L and when INNA = VH:
    R 1 = V + V L - 1 R 2 R 3 R 2 + R 3
    R 1 = V + - V H V H R 2 - V + - V H R 3
  4. Set these two equations equal to each other and then solve for R3.
    V + - V H V + V L - V H R 3 2 + V + - V H V + V L + V + - V H R 2 R 3 = 0
    3 . 3 - 1 . 4421 3 . 3 1 . 419 - 1 . 4421 R 3 2 + 3 . 3 - 1 . 4421 3 . 3 1 . 419 + 3 . 3 - 1 . 4421 10 k R 3 = 0
    R 3 = 0 ,   R 3 = 804 . 29

    The standard 1% resistor value closest to this is 806kΩ.

  5. Solve for R1 using any of the two equations derived in 3:
    R 1 = V + V L - 1 R 2 R 3 R 2 + R 3
    R 1 = 3 . 3 1 . 419 - 1 10   806   10   + 806  
    R 1 = 13 . 093

    The standard 1% resistor value closest to this is 13kΩ.

    The next step is to focus on the bottom comparator (channel B), which is in a non-inverting configuration. This comparator swings to a logic high when the current in the forward direction exceeds 100A, and returns to a logic low when the current in the forward direction recovers to 90A. These current levels correspond to voltage levels of 2.31V and 2.244V, respectively.

    High-side current sensing with comparator circuit derives two equations for VTH (the voltage on the non-inverting pin) when the comparator output is in a logic low state and a high-impedance state (SBOA306 uses an open-drain comparator). These equations are then set equal to each other creating a quadratic equation to solve for R6. Since TLV3202 is a push-pull device, the output goes to a logic high state instead of a high-impedance state. Thus, the pull-up resistor value is 0 and VPU is V+

  6. Rewrite the quadratic equation to match this circuit:
    0 = V + × R 6 2 + V + × R 7 + V L × R 7 - V H × R 7 × R 6 + V L - V H × R 7 2
    0 = 3 . 3 × R 6 2 + 3 . 3 × R 7 + 2 . 244 × R 7 - 2 . 31 × R 7 × R 6 + 2 . 244 - 2 . 31 × R 7 2
  7. Choose a value for R7. This resistor dictates the load current of the comparator, and therefore is large. For this circuit, R7 is assumed to be 200kΩ.
    0 = 3 . 3 × R 6 2 + 3 . 3 × 200 k + 2 . 244 × 200 k - 2 . 31 × 200 k × R 6 + 2 . 244 - 2 . 31 × 200 k 2
    R 6 = 4 . 47

    The standard 1% resistor value closest to this is 4.42kΩ.

  8. Calculate VTH using R6.
    V TH = V H × R 7 R 6 + R 7 = 2 . 31 × 200 k 4 . 42 k + 200 k = 2 . 26 V
  9. Choose a value for R5. In this case, R5 is chosen to be 10kΩ.
    V TH = V H × R 2 R 1 + R 2 = 9 . 802 V
  10. Solve for R4.
    R 4 = R 5 × ( V s - V TH ) V TH = 10 k × ( 3 . 3 - 2 . 6 ) 2 . 26 =   4 . 602  

    The standard 1% resistor value closest to this is 4.64kΩ.

Design Simulations

Transient Simulation Results

The below simulation results use a -70A to 130A, 100Hz sine wave for IG1.

 Channel A Channel A
 Channel B Channel B

Design References

Texas Instruments, SBOMB05 SPICE file, circuit software

Design Featured Comparator

TLV320x
VS 2.7V to 5.5V
VinCM 200mV beyond either rail
VOUT Push-Pull, Rail-to-rail
VOS 1mV
IQ 40µA/channel
tPD(HL) 40ns
#Channels 1, 2
TLV3201-Q1 and TLV3202-Q1

Design Featured Op Amp

INA240
VS 1.6V to 5.5V
VinCM -4V to 80V
VOUT Rail-to-rail
VOS 5µV
VOS Drift 50nV/◦C
IQ 260ns
Gain Options 20V/V, 50V/V, 100V/V, 200V/V
INA240