SBOA313A July   2018  – August 2019 TLV7031

 

  1.   1
  2.   2

Design Goals

Output Thresholds Supply
Vo = HIGH Vo = LOW VH VL VHYS Vcc Vpu Vref
Vi > VH Vi < VL 1.7 V 1.3 V 400 mV 3 V 3 V 3 V

Design Description

Comparators are used to differentiate between two different signal levels. With noise, signal variation, or slow-moving signals, undesirable transitions at the output can be observed with a constant threshold. Setting upper and lower hysteresis thresholds eliminates these undesirable output transitions. This circuit example will focus on the steps required to design the positive feedback resistor network necessary to obtain the desired hysteresis for a non-inverting comparator application.

GUID-5997AB72-7F29-4C9E-A107-8B11FD1AEF42-low.gif

Design Notes

  1. The accuracy of the hysteresis threshold voltages are related to the tolerance of the resistors used in the circuit, the selected comparator’s input offset voltage specification, and any internal hysteresis of the device.
  2. The TLV7041 has an open-drain output stage, so a pull-up resistor is needed.

Design Steps

  1. Select the switching thresholds for when the comparator will transition from high to low (VL) and low to high (VH). VL is the necessary input voltage for the comparator output to transition low and VH is the required input voltage for the comparator to output high.
    GUID-9BB564B7-CBB1-4A4E-B8F6-239286364110-low.gif
    V L =1.3V and V H =1.7V
  2. Analyze the circuit when the input voltage is VH. At this point, Vo=0V and the transition to a logic high is initiated in the comparator output. Solve for the voltage seen by the comparator's non-inverting pin, VTH.
    GUID-32425400-0FB4-4B74-92F3-6FC7894C4FA7-low.gif
    V TH = V H × R 2 R 1 + R 2
  3. Analyze the circuit when the input voltage is VL. At this point, Vo=Vpu (or Vo=Vcc if the comparator has a push-pull output stage) and the transition to a logic low is initiated in the comparator output. Using superposition, solve for VTH.
    GUID-814CCD14-5FE4-4CF2-BE3A-BD31D6FCDCA4-low.gif
          V TH = V L × R 2 + R 3 R 1 + R 2 + R 3 + V pu × R 1 R 1 + R 2 + R 3
  4. Set R2 to be large for power conservation. This resistance can be changed to meet certain design specifications but it was selected to be 2 MΩ. Now set the two VTH equations equal and solve for R1.
    0 = V PU × R 1 2 + V PU × R 2 + V L × R 2 + R 3 - V H × R 2 × R 1 + V L - V H × R 2 2 + R 2 × R 3
          R 1 = 273 . 19 273
  5. Calculate VTH using the equation derived in step 2.
          V TH = V H × R 2 R 1 + R 2
          V TH = 1 . 4958 V
  6. Assuming a value for R5 of 1 MΩ for reduced power consumption, calculate R4 using the following relationship developed from a basic voltage divider of the reference voltage VREF. The voltage at the inverting terminal is VTH.
    V TH = V REF × R 5 R 4 + R 5
          R 4 = 1 . 0056 1 . 01

Design Simulations

DC Transfer Simulation Results

GUID-C28CDD2E-94AF-44EB-91DA-D0DC21D1FC81-low.gif

Transient Simulation Results

GUID-FBAC2EB7-7F73-437B-AA70-37DB53BE3FC1-low.gif

Design References

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

See Circuit SPICE Simulation File SLVMCR2.

For more information on many comparator topics including hysteresis, propagation delay and input common mode range please see TI Precision Labs - Op amps.

Design Featured Comparator

TLV7031, TLV7041
Output TypePP (7031), OD (7041)
Vcc 1.6 V to 6.5 V
VinCM Rail-to-rail
Vos ±100 µV
VHYS7 mV
Iq 335 nA/Ch
tpd3 µs
#Channels1 and 2
TLV7041 Product Page

Design Alternate Comparator

TLV1701TLV7011, TLV7011
Output TypeOpen CollectorPP (7011), OD (7021)
Vcc 2.2 V to 36 V1.6 V to 5.5 V
VinCM Rail-to-railRail-to-rail
VHYSN/A4.2 mV
Vos ±500 µV±500 µV
Iq 55 µA/Ch335 nA/Ch
tpd560 ns3 µs
#Channels1, 2, and 41 and 2
TLV1701 Product PageTLV7011 Product Page