Snoaa 40
Snoaa 40
Snoaa 40
com
Design Goals
SYSTEM CURRENT LEVELS SUPPLY
Falling OC Threshold Falling OC Recovery Rising OC Threshold Rising OC Recovery V+ V-
IG1 < -35 A IG1 > -31 A IG1 > 100 A IG1 < 90 A 3.3 V 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 100 A or falls below -35 A. In this implementation, both
over-current alert signals are active high, so when the 100 A or -35 A thresholds are crossed, the comparator
outputs will go high. External hysteresis is implemented on both comparators so that the comparator outputs will
return to logic low states when the current reduces by 10% (90 A and -31 A). 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.
C7 100n V+
C8 1u
V+
C1 100n
C2 1u
LTV + +
INA_OUT
TLV3201 OUTA
-
INP VCC INNA
R3 806k
R8 330u
REF2
GND
C10 1u
C9 100n
INN
V+
INPB
R6 4.42k
V+ V+ + +
TLV3201 OUTB
HTV
R4 6.4k
R1 13k
-
V+
LTV HTV
R7 200k
VCC 3.3V
R2 10k
R5 10k
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.
SNOAA40 – SEPTEMBER 2019 Bidirectional Current Sensing with a Window Comparator Circuit 1
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
www.ti.com
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 100 A, by keeping R8 small, the power dissipation across R8 will be lessened.
INA_OUT = VREF + G × INP − INN
V+ −0
VREF = 2 = 3 .23V = 1 . 65V
Using these equations and the desired current thresholds, the following table is generated:
DESCRIPTION IG1 INA-OUT
VH, CHB Overcurrent threshold in forward 100 A 1.65 V + 20 x (100 A x 0.33 mΩ)
direction = 2.31 V
VH, CHA Overcurrent threshold in reverse -35 A 1.65 V + 20 x (-35 A x 0.33 mΩ)
direction = 1.419 V
First, focus on the top comparator (channel A), which is in an inverting comparator configuration. This
comparator will swing to a logic high when the current in the reverse direction exceeds -35 A, and will return
to a logic low when the current in the reverse direction recovers to -31.5 A. These current levels correspond
to voltage levels of 1.419 V and 1.4421 V, respectively.
2. Assume a value for R2 (the bottom resistor in the resistor divider). In this circuit, 10 kΩ is chosen.
3. Derive two equations for R1 in terms of V+, VL, VH, R2, R3 by analyzing the circuit when INNA = VL and
when INNA = VH:
V R2R3
R1 = V+ − 1 R2 + R3
L
V −V
R1 = V +V −H V
H + H
−
R 2 R 3
4. Set these two equations equal to each other and then solve for R3.
V+ − VH V+ − VH
V+ − VH R32 + V+ + V+ − VH R2R3 = 0
VL VL
3 . 3 − 1 . 4421 3 . 3 − 1 . 4421
3.3 − 1 . 4421 R32 + 3.3 + 3 . 3 − 1 . 4421 10k R3 = 0
1 . 419 1 . 419
R3 = 0, R3 = 804 . 29kΩ
2 Bidirectional Current Sensing with a Window Comparator Circuit SNOAA40 – SEPTEMBER 2019
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
www.ti.com
10 kΩ 806 kΩ
R1 = 13. 419
.3
−1 10 kΩ + 806 kΩ
R1 = 13 . 093kΩ
V+
C10 1u
C9 100n
R4 6.4k
V+
INPB
R6 4.42k
HTV + +
3.3V TLV3201 OUTB
HTV
R5 10k
-
INA_OUT
R7 200k
Figure 1-1.
SBOA306 (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 will go 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+ × R62 + V+ × R7 + VL × R7 − VH × R7 × R6 + VL − VH × R72
7. Choose a value for R7. This resistor dictates the load current of the comparator, and should thus be large.
For this circuit, R7 is assumed to be 200 kΩ.
2
0 = 3 . 3 × R62 + 3 . 3 × 200k + 2 . 244 × 200k − 2 . 31 × 200k × R6 + 2 . 244 − 2 . 31 × 200k
R6 = 4 . 47kΩ
SNOAA40 – SEPTEMBER 2019 Bidirectional Current Sensing with a Window Comparator Circuit 3
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
www.ti.com
4 Bidirectional Current Sensing with a Window Comparator Circuit SNOAA40 – SEPTEMBER 2019
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
www.ti.com
Design Simulations
Transient Simulation Results
The below simulation results use a -70A to 130A, 100Hz sine wave for IG1.
SNOAA40 – SEPTEMBER 2019 Bidirectional Current Sensing with a Window Comparator Circuit 5
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
www.ti.com
Design References
See Analog Engineer's Circuit Cookbooks for TI's comprehensive circuit library.
See Circuit SPICE Simulation File SBOMB05.
Design Featured Comparator
TLV320x
VS 2.7 V to 5.5 V
VinCM 200 mV beyond either rail
VOUT Push-Pull, Rail-to-rail
VOS 1 mV
IQ 40 µA/channel
tPD(HL) 40 ns
#Channels 1, 2
TLV3201-Q1 and TLV3202-Q1
6 Bidirectional Current Sensing with a Window Comparator Circuit SNOAA40 – SEPTEMBER 2019
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
IMPORTANT NOTICE AND DISCLAIMER
TI PROVIDES TECHNICAL AND RELIABILITY DATA (INCLUDING DATA SHEETS), DESIGN RESOURCES (INCLUDING REFERENCE
DESIGNS), APPLICATION OR OTHER DESIGN ADVICE, WEB TOOLS, SAFETY INFORMATION, AND OTHER RESOURCES “AS IS”
AND WITH ALL FAULTS, AND DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION ANY
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF THIRD
PARTY INTELLECTUAL PROPERTY RIGHTS.
These resources are intended for skilled developers designing with TI products. You are solely responsible for (1) selecting the appropriate
TI products for your application, (2) designing, validating and testing your application, and (3) ensuring your application meets applicable
standards, and any other safety, security, regulatory or other requirements.
These resources are subject to change without notice. TI grants you permission to use these resources only for development of an
application that uses the TI products described in the resource. Other reproduction and display of these resources is prohibited. No license
is granted to any other TI intellectual property right or to any third party intellectual property right. TI disclaims responsibility for, and you
will fully indemnify TI and its representatives against, any claims, damages, costs, losses, and liabilities arising out of your use of these
resources.
TI’s products are provided subject to TI’s Terms of Sale or other applicable terms available either on ti.com or provided in conjunction with
such TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable warranties or warranty disclaimers for
TI products.
TI objects to and rejects any additional or different terms you may have proposed. IMPORTANT NOTICE
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2023, Texas Instruments Incorporated