SNOA985B March   2018  – October 2024 LPV821 , OPA2333 , OPA333 , TLV2333 , TLV3011 , TLV3011-Q1 , TLV3011B , TLV3011B-Q1 , TLV3012 , TLV3012-Q1 , TLV3012B , TLV3012B-Q1 , TLV333 , TLV7011 , TLV7021 , TLV7031 , TLV7041

 

  1.   1
  2.   2
  3.   Trademarks
  4.   Revision History

Design Goals

Overcurrent Levels Supply
IIN (min) IIN (max) V+ V–
–0.1A 1.0A 3.3V 0V

Design Description

This low-power, low-side, bidirectional current sensing method uses two nano-power, zero-drift amplifiers (LPV821) and one micro-power comparator with an integrated, precision reference (TLV3012). This circuit is well-suited for battery powered devices where charging current and system current need to be monitored accurately. The gain of U1 and U2 are set independently.

As shown in the application circuit, the LPV821 amplifiers are connected out of phase across RSENSE to amplify the currents of opposite polarity. Amplifier U2 linearly amplifies the charging (positive) current while amplifier U1 linearly amplifies the system (negative) current. When U2 is monitoring the positive current, U1 drives its output to ground. Similarly, U2 drives its output to ground when U1 monitors the negative current. The amplifier outputs are ORed together with resistors R7 and R8 while U1 or U2 provide the ground reference creating a single output voltage for the comparator to monitor.

If a regulated supply or reference is already available in the system, the TLV3012 can be replaced by a nano-power comparator such as the TLV7031. Moreover, if the charging current and system current have equal magnitudes, the gains of amplifier U1 and U2 can be set equal to each other. Even with the gains of the amplifiers being equal, ORing the amplifier outputs allows one comparator to detect overcurrent conditions for both charging and system current.

Design Notes

  1. To minimize errors, utilize precision resistors and set R1 = R3, R2 = R4, and R7 = R8.
  2. Select RSENSE to minimize the voltage drop at max current and to reduce amplifier offset error when monitoring minimum current levels.
  3. Select the amplifier gains so COMP_IN reaches 1.242V when the charging and system currents reach critical levels and avoid operating the amplifiers outside of their linear range.

Design Steps

  1. Determine the transfer equation given R1 = R3, R2 = R4, and R7 = R8.

    Inverted Path:

    COMP_IN = - I G 1 × R SENSE × - R 6 R 5 × R 8 R 7 + R 8

    Non-Inverted Path:

    COMP_IN = I G 1 × R SENSE × R 4 R 3   +   R 4 × R 1   +   R 2 R 1 × R 7 R 7 + R 8
  2. Select the SENSE resistor value assuming a maximum voltage drop (VSENSE) of 100mV when charging at 1A and a minimum system current of 10mA.
    R SENSE ( max ) = V SENSE   ( max ) I G 1   ( max ) = 100   mV 1 A = 100   with   I G 1 ( min ) = 10 mA ,   V SENSE = 10 mA × 100 = 1   mV > > VOS ( max ) = 10 µ V
  3. Select ORing resistor R7 and R8 to generate COMP_IN.
    1. An equal attenuation factor of two is applied to the input of the comparator with R7 =R8. Choose large values to minimize current consumption from the output of the amplifiers.
    2. Special care must be taken when validating the voltage at COMP_IN. Since R7 and R8 are large impedance values, the input impedance of an oscilloscope probe or the input to a digital voltmeter can alter the measured voltage. Common probe and voltmeter input impedances are 10MΩ and this attenuates the signal measured.
      R 7 = R 8 = 2 . 49 , COMP_IN = ( VOUT_Inv   or   VOUT_NonInv ) ÷ 2
  4. Select the amplifier gain such that COMP_IN reaches 1.242V when the currents reach the critical threshold.
    Gain = 2 × C o m p a r a t o r   R E F R S E N S E × I G 1   ( m a x )
    Gain   ( I n v ) = 2 × 1 . 242 0 . 1 ×( -0 . 1) = (-R 6) R 5 -249 V V Gain   ( N o n I n v ) = 2 × 1 . 242 0 . 1 × 1 . 0 = R 4 R 3 + R 4 × R 1 + R 2 R 1 24.9 V V
R 1 = R 3 = 100  (Standard Value) R 5 = 10  (Standard Value) R 2 = R 4 = R 6 = 2 . 49  (Standard Value)

Design Simulations

DC Simulation Results (VOUT_Inv)

Transient Simulation Results (VOUT_Inv)

DC Simulation Results (VOUT_NonInv)

Transient Simulation Results (VOUT_NonInv)

Tech Note and Blog References

Texas Instruments, Advantages of Using Nanopower Zero Drift Amp for Mobile Phone Battery Monitoring, application note

Texas Instruments, Current Sensing in No-Neutral Light Switches, technology brief

Texas Instruments, GPIO Pins Power Signal Chain in Personal Electronics Running on Li-Ion Batteries, application brief

Design Featured Op Amp

LPV821
VS 1.7V to 3.6V
Input VCM Rail-to-rail
Vout Rail-to-rail
Vos 1.5µV
Vos Drift 20nV/°C
Iq 650nA/Ch
Ib 7pA
UGBW 8kHz
#Channels 1
LPV821

Design Alternate Op Amp

TLVx333
VS 1.8V to 5.5V
Input VCM Rail-to-rail
Vout Rail-to-rail
Vos 2µV
Vos Drift 20nV/°C
Iq 17µA/Ch
Ib 70pA
UGBW 350kHz
#Channels 1, 2, and 4
TLV333