LM339DRG4 - 4-Channel Open-Collector Comparator | Texas Instruments
MPN: LM339DRG4 ✓ ActiveLM339DRG4 Overview
A comparator is an analog integrated circuit that compares two input voltages and produces a logic-level output indicating which input is higher. The LM339 belongs to the voltage comparator hierarchy within comparator ICs, analog ICs, and semiconductors. Its open-collector outputs can sink useful current but require an external pull-up resistor, allowing the output node to operate at a voltage chosen by the system designer and enabling wired logic, level conversion, or multiple-device interconnection.
The four independent channels provide flexible use in threshold detection, window comparison, overvoltage monitoring, signal conditioning, and control loops. Its 38 V maximum differential input rating supports industrial signal environments where input transients can exceed the supply voltage. Open-collector outputs are compatible with TTL, MOS, and CMOS logic, and the low 200 µA supply current per comparator supports power-conscious equipment.
Internally, the LM339 is designed around four independent comparison channels rather than a shared digital control block. The 1 µs response time supports general-purpose decision making without introducing the delay of a more specialized precision comparator. Its 0.37 mV input offset helps establish switching thresholds accurately, while 3.5 nA input bias current limits disturbance of high-impedance sensing circuits. The manufacturer describes the B-version family as a drop-in replacement for earlier LM239, LM339, and LM2901 A and V versions.
Typical applications include industrial control and monitoring, sensor threshold circuits, power-supply sequencing, battery monitoring, relay drivers, window comparators, and embedded control interfaces. The four channels can implement independent decisions in one package, reducing board area when several threshold functions are required. Each open-collector output requires a pull-up network, and the logic family connected to that pull-up determines the resulting high voltage.
Designers should treat input common-mode range, supply limits, output pull-up voltage, and output sink current as separate constraints. Keep sensitive comparison inputs away from switching nodes and provide a stable reference near the selected threshold. Place the pull-up resistor close to the output, verify that its voltage remains within the connected logic device's limits, and check the output-state timing against the 1 µs response specification.
This page combines manufacturer specifications, functional application guidance, pin-level implementation details, and a parameter comparison of same-footprint alternatives. It is designed to help engineers determine whether the LM339DRG4 provides the required voltage tolerance, response speed, output topology, and package compatibility before incorporating it into a new design.
Drop-in alternatives for LM339DRG4 — same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.
Variants in this series
Same-series models that are drop-in compatible with LM339DRG4 (same form factor and footprint) — differing in Package, Comparator Type, Common-Mode Input Range, Input Offset Voltage, Number of Channels.
LM339DR
✅ Drop-In ⚠️ Specs UnverifiedContact for price
View Datasheet →LM339DRG3
✅ Drop-In ⚠️ Specs UnverifiedContact for price
View Datasheet →LM239DRG4
✅ Drop-In ⚠️ Specs Unverified📋 Reference alternative (not in catalog)
LM2904DR
✅ Drop-In ⚠️ Specs UnverifiedContact for price
View Datasheet →LM339DG
✅ Drop-InContact for price
View Datasheet →LM339DRG4 Maximum Ratings & Electrical Characteristics
| Comparator Type | General-purpose differential comparator |
| Number of Channels | 4 channels |
| Output Type | Open collector |
| Supply Configuration | Single supply or dual supply |
| Tested Supply Voltage | 30 V |
| Maximum Differential Input Voltage | ±38 V |
| Maximum Rating | 38 V |
| Input Offset Voltage | 0.37 mV |
| Input Bias Current | 3.5 nA |
| Supply Current | 200 µA per comparator |
| Response Time | 1 µs |
| ESD Rating | 2 kV HBM |
| Common-Mode Input Range | Includes ground |
| Logic Compatibility | TTL, MOS, and CMOS |
| Package | 14-pin SOIC |
| Mounting Type | Surface mount |
LM339DRG4 Pin Configuration
| Pin 1 | OUT1 — Open-collector output for comparator channel 1 |
| Pin 2 | IN1- — Inverting input for comparator channel 1 |
| Pin 3 | IN1+ — Non-inverting input for comparator channel 1 |
| Pin 4 | GND — Ground connection |
| Pin 5 | IN2+ — Non-inverting input for comparator channel 2 |
| Pin 6 | IN2- — Inverting input for comparator channel 2 |
| Pin 7 | OUT2 — Open-collector output for comparator channel 2 |
| Pin 8 | OUT3 — Open-collector output for comparator channel 3 |
| Pin 9 | IN3- — Inverting input for comparator channel 3 |
| Pin 10 | IN3+ — Non-inverting input for comparator channel 3 |
| Pin 11 | GND — Ground connection |
| Pin 12 | IN4+ — Non-inverting input for comparator channel 4 |
| Pin 13 | IN4- — Inverting input for comparator channel 4 |
| Pin 14 | OUT4 — Open-collector output for comparator channel 4 |
Typical Applications
LM339DRG4 is suitable for 6 applications: Industrial Sensor Threshold Detection, Battery Pack Monitoring, Power Supply Sequencing, Relay and Solenoid Control, Window Comparator for Limit Detection, Embedded Control Logic Interface.
Industrial Sensor Threshold Detection
The LM339DRG4 is suitable for converting a sensor voltage into a logic decision when the signal source is referenced near ground. Its common-mode input range includes ground, input bias current is 3.5 nA, and input offset is 0.37 mV, helping preserve weak sensor signals. Connect one input to a scaled reference and the other to the sensed voltage, then add an open-collector pull-up for a digital threshold output. Include hysteresis to prevent chatter when the sensed value approaches the reference. The 1 µs response time supports prompt switching, while the 200 µA per-comparator supply current limits overhead in continuously monitored systems.
Recommended
Battery Pack Monitoring
The LM339DRG4 can compare scaled cell or pack voltages against references to flag threshold crossings in battery-powered equipment. A 38 V maximum differential input rating provides headroom above common single-cell and multi-cell industrial voltage ranges, while the common-mode input range includes ground. Four independent channels allow monitoring of multiple threshold points or pack regions. Use resistor dividers with precision resistors, account for the 0.37 mV input offset, and place hysteresis around each decision point. Open-collector outputs can drive a supervisor input or fault indicator after adding the required pull-up resistor.
Recommended
Power Supply Sequencing
The LM339DRG4 can supervise several power rails and enable downstream converters in a controlled order. Its 38 V differential input rating accommodates monitoring signals above common low-voltage rails, and four channels provide independent comparisons without requiring four separate packages. Reference each rail against a divided threshold, add a pull-up resistor to every open-collector output, and combine the results into a sequencing controller. The 1 µs response time provides fast fault detection. Account for the 200 µA supply current per comparator and ensure the pull-up voltage remains compatible with the logic device receiving the sequence signals.
Recommended
Relay and Solenoid Control
The LM339DRG4 can provide the decision stage that controls a relay, solenoid, or latch in industrial equipment. An open-collector output is useful because its pull-up voltage and pull-up resistance determine the interface level, allowing the comparator section to remain separate from the load-driving stage. Compare the scaled actuator-current signal against a reference and use the output to request activation. Maintain valid input common-mode conditions, verify output sink capability, and add a suitable driver transistor or interface circuit for the load. The 1 µs response time supports prompt shutdown, although relay release time may dominate the overall response.
Recommended
Window Comparator for Limit Detection
Two LM339DRG4 channels can implement an upper-and-lower window comparator for a controlled analog quantity, while the remaining channels monitor another limit or provide redundancy. The 0.37 mV input offset helps establish threshold accuracy after resistor-divider scaling, and the 3.5 nA bias current is useful with high source impedance. Each open-collector output requires its own pull-up network and can be combined through wired logic. Add positive feedback for hysteresis, test all threshold states across temperature, and keep comparator traces away from relay, motor, and switching-power nodes that could create input transients.
Recommended
Embedded Control Logic Interface
The LM339DRG4 can turn analog conditions into logic events for an embedded controller. Four channels provide independent comparisons for temperature, pressure, supply, or digital-line thresholds, and the open-collector outputs can be pulled up to the controller’s logic voltage. The 3.5 nA input bias current limits loading of high-impedance sensor networks, while 1 µs response time supports rapid event detection. Use a pull-up resistor selected for the controller’s input current and output voltage, add filtering for noisy analog sources, and preserve a common ground reference between the comparator and controller. The 14-pin SOIC package simplifies retrofitting on existing through-hole-style layouts.
Recommended
Recommended Products Summary
Engineering reference data for LM339DRG4 — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | LM339DR | LM339DRG3 | LM239DRG4 | LM2904DR | LM339DG |
|---|---|---|---|---|---|---|
| Package | 14-pin SOIC | 14-pin SOIC | 14-pin SOIC | 14-pin SOIC | 14-pin SOIC | 14-pin SOIC |
| Brand | Texas Instruments | Texas Instruments | Texas Instruments | Texas Instruments | Texas Instruments | onsemi |
| Comparator Channels | 4 channels | 4 channels | 4 channels | 4 channels | 4 channels | 4 channels |
| Output Type | Open collector | Open collector | Open collector | Open collector | Open collector | Open collector |
| Input Offset Voltage | 0.37 mV | 0.37 mV | 0.37 mV | 0.37 mV | 0.37 mV | 5 mV |
| Response or Propagation Delay | 1 µs response time | 1 µs response time | 1 µs response time | 1 µs response time | 1 µs response time | 1.3 µs propagation delay |
Key Differentiators
- Lower input offset in the TI LM339 family specification (vs LM339DG)
- Faster specified response (vs LM339DG)
- Four independent channels in one compact package (vs LM339DG)
Design Notes
Every open-collector output requires an external pull-up resistor. Select it using the highest expected sink current, the output saturation voltage, the pull-up supply, and the connected logic input's leakage and minimum high-level current. Place the resistor close to the relevant output pin to limit the RC rise time. If several LM339 outputs are wired together, confirm that the combined sink current remains within the device limit.
Keep the two inputs of each comparator on a quiet analog signal path and maintain a continuous ground reference to the circuit being monitored. Place input resistors and reference components close to the associated pins, while routing comparator inputs away from relay-coil, motor, and switching-node traces. If a signal can exceed the supply range during fault conditions, add clamping or series resistance and verify the resulting differential and common-mode voltages against the manufacturer limits.
Use positive feedback to create hysteresis when the compared signal may cross the reference slowly. The hysteresis amplitude should exceed comparator offset and noise while remaining compatible with the required threshold accuracy. With a 0.37 mV input offset, very small hysteresis may not provide useful noise immunity. Check the resulting switching sequence for both channels in a two-threshold window comparator, and avoid relying on a single pull-up resistor to create shared hysteresis across multiple outputs.
Budget for approximately 200 µA per comparator for the LM339 device itself before adding resistor-network and pull-up currents. The stated figure applies per comparator, so a fully used four-channel device can consume roughly 800 µA from the LM339 supply under that criterion. Use the datasheet test conditions for the final design calculation and include leakage from external resistor networks, especially in low-power battery applications.
Compliance Information
The LM339DRG4 is a general-purpose industrial comparator rather than an automotive-qualified device. RoHS, REACH, lead-free, halogen-free, and conflict-minerals status require confirmation from the current manufacturer product documentation or the supplier declaration.