SNOAA35D April   2023  – December 2023 LM2901 , LM2901B , LM2901B-Q1 , LM2903 , LM2903-Q1 , LM2903B , LM2903B-Q1 , LM339 , LM339-N , LM393 , LM393-N , LM393B , LM397 , TL331 , TL331-Q1 , TL331B

 

  1.   1
  2.   Application Design Guidelines for LM339, LM393, TL331 Family Comparators Including the New B-versions
  3.   Trademarks
  4. Devices Covered in Application Note
    1. 1.1 Base Part Numbers
    2. 1.2 Input Voltage Offset Grades
    3. 1.3 Maximum Supply Voltage
    4. 1.4 High Reliability Options
  5. The New TL331B, TL391B, LM339B, LM393B, LM2901B and LM2903B B Versions
    1. 2.1 PCN to Change Classic Die to a New Die Design
      1. 2.1.1 Determine Die Used for Single TL331 and Dual LM293, LM393, and LM2903
      2. 2.1.2 Determine Die Used for Quad LM139, LM239, LM339, and LM2901
      3. 2.1.3 Device PCN Summary
    2. 2.2 Changes to Package Top Markings
  6. Input Considerations
    1. 3.1  Input Stage Schematic – The Classic LM339 Family
    2. 3.2  Input Stage Schematic - New B Devices
    3. 3.3  Differences Between the Classic and B Die Devices
    4. 3.4  Input Voltage Range
    5. 3.5  Input Voltage Range vs. Common Mode Voltage Range
    6. 3.6  Reason for Input Range Headroom Limitation
    7. 3.7  Input Voltage Range Feature
      1. 3.7.1 Both Inputs Above Input Range Behavior
    8. 3.8  Negative Input Voltages
      1. 3.8.1 Maximum Input Current
      2. 3.8.2 Phase Reversal or Inversion
      3. 3.8.3 Protecting Inputs from Negative Voltages
        1. 3.8.3.1 Simple Resistor and Diode Clamp
        2. 3.8.3.2 Voltage Divider with Clamp
          1. 3.8.3.2.1 Split Voltage Divider with Clamp
    9. 3.9  Power-Up Behavior
    10. 3.10 Capacitors and Hysteresis
    11. 3.11 Output to Input Cross-Talk
  7. Output Stage Considerations
    1. 4.1 Output VOL and IOL
    2. 4.2 Pull-Up Resistor Selection
    3. 4.3 Short Circuit Sinking Current
    4. 4.4 Pulling Output Up Above VCC
    5. 4.5 Negative Voltages Applied to Output
    6. 4.6 Adding Large Filter Capacitors To Output
  8. Power Supply Considerations
    1. 5.1 Supply Bypassing
      1. 5.1.1 Low VCC Guidance
      2. 5.1.2 Split Supply use
  9. General Comparator Usage
    1. 6.1 Unused Comparator Connections
      1. 6.1.1 Do Not Connect Inputs Directly to Ground
      2. 6.1.2 Unused Comparator Input Connections
      3. 6.1.3 Leave Outputs Floating
      4. 6.1.4 Prototyping
  10. PSPICE and TINA TI Models
  11. Conclusion
  12. Related Documentation
    1. 9.1 Related Links
  13. 10Revision History

Reason for Input Range Headroom Limitation

The LM339 family was the first truly single-supply, ground sensing comparator, but it is not a Rail to Rail input device and can only sense up to about 1.5 V below VCC. The input stage requires some headroom to the VCC supply to provide the needed tail current and biasing to the input devices Q1 through Q4. Assuming a 5 V supply, Figure 3-3 shows the necessary voltage drops from the supply voltage down to the input terminal.

GUID-7BB7CC2C-81F3-459C-995A-361333543702-low.gifFigure 3-3 Headroom Taken Up by VBE's and VSAT of Input Stage

The DC biasing current flows down from VCC , through the Q10 current source, through the input pair Q2 and Q1, and out of the input pin towards ground through the input source resistance.

The required headroom can be analyzed by Counting VBE's, starting at the VCC rail and down to the input pin. Starting at VCC, about 250-300mV is dropped across the current source Q10 collector-emitter junction (VSAT10). Another 600mV is dropped across each of the Base-Emitter junctions of Q2 (VBE2) and Q1 (VBE1). By adding all the drops together (VSAT10 + VBE1 + VBE2 ), it can be seen that there needs to be at least a 1.5 V headroom between the input pin and VCC for the input stage to bias properly.

If an input is brought above the input limit, that input transistor starts to turn off, and the tail current for that device (I1 or I2) is also cut off.

GUID-8804D365-F2A6-4DBD-83C4-9C95B2695BD1-low.gifFigure 3-4 Visual Representation of Input Voltage Range With a 5 V Supply

Figure 3-4 shows a visual representation of the input voltage range with a single +5 V supply.

Between 0 V and 3 V (VCC - 2V), the device is fully operational and will function per data sheet specifications over the full specified temperature range. The VCC - 2V limit is the recommended upper input range limit to be utilized for all designs.

The input range from 0 to 3.5 V (VCC - 1.5V) is valid at 25°C and above. The range between 3 V and 3.5 V will vary over temperature due to the VBE's of the transistors changing at -2.1mV/°C. This results in the input voltage range changing at -4.2mV/°C over temperature (note the negative sign!), necessitating the VCC - 2 V over temperature specification. Using the VCC - 1.5 V limit can cause It worked fine on the bench, but it fails at cold complaints. Do not make this mistake!

The range between 3.5 V and 4 V is the gray zone, where the device appears to still function at 25°C and above, but critical specifications are deteriorating, such as offset voltage, bias current and particularly propagation delay as the input stage is gradually starved. These effects may not be immediately apparent. Operating at low temperatures can cause failures. Operation within this zone must be avoided.

Between 4 V and 5 V, and even up to 36 V, the input stage is cut off and input bias current falls to near zero. The actual cut-off threshold depends on temperature. Comparator operation ceases. DO NOT operate in this area!