Skip to datasheet
The Engineering ProjectsAI Interactive Datasheet

LM339Quad differential comparator

Make four independent voltage decisions in one IC.

Manufacturer-referenced

Texas Instruments · LM339N

PDIP-14SLCS006Z · May 2025

LM339 contains four independent voltage comparators in a 14-pin IC. Each compares two input voltages and uses an open-collector output transistor to signal the result. The output can pull a node LOW, but it needs an external pull-up resistor to produce a defined HIGH. The input range includes ground and requires headroom below the positive supply. This page uses the classic LM339N and LM339D, with a 5 V threshold circuit. Pin numbers define every connection; channel 1/2 names can be transposed in other manufacturers’ documents without changing the physical pinout.

3D View

Preparing 3D preview…
3D packageDrag to rotate · Scroll to zoom

Real View

LM339N black package with silver leads and readable markings.
LM339N · PDIP-14Package illustration

Pinout

LM339NPDIP-14Top view
Select a pin to see its functionPDIP-14 · 14 pins

PCB Footprint

Loading footprint…
Powered by
Finding PDIP-14 packageTop view · mm
Open collectorsSupply & returnComparator inputs
LM339NPDIP-14Top view

Click a lead or use the arrow keys. Top view

1
PIN 1 · Open collectors

OUT1

Open-collector output

Function

Sinks current when IN+ is below IN−. Releases when IN+ is above IN−.

How to connect

Add a 10 kΩ pull-up to +5 V and connect a high-impedance logic input.

Electrical note

An external pull-up is required for a defined HIGH.

At a glance

Quad differential comparator

Share the supply and reference, but give each used output its own suitable pull-up. The comparator is a switching device, not a linear op-amp.

2–30 VClassic LM339 supply
4 Open-collector outputsIndependent comparators
0–70 °CAmbient range
1.3 µs · specified small-step testTypical response time

Operating profile

LM339N

Selected package
PDIP-14LM339N · 14 pins
Input range at 5 V
0–3 VAcross the full temperature range
Output stage
Open collectorPull-up required for HIGH

Operating conditions

Key parameters and their test conditions

Supply
2–30 VConditions / notes: Single supply
Ambient temperature
0 to 70°CConditions / notes: LM339 grade
Input common-mode range
0 to VCC − 1.5 VConditions / notes: At 25°C
Input common-mode range
0 to VCC − 2 VConditions / notes: Across the full temperature range
Total supply current
0.8 mA typical; 2 mA maximumConditions / notes: Four channels; VO = 2.5 V; no load; 25°C

Package details

Follows the selected physical package

Manufacturer
Texas Instruments
Part number
LM339N
Package
PDIP-14
Connections
14 pins
Mounting
Through-hole
Lead pitch
2.54 mm
Package code
dip
Thermal reference
Board and package dependent; see manufacturer data

Connections by function

Select a pin to open its function, electrical notes and wiring guidance.

Open collectors4 pins

Supply & return2 pins

Comparator inputs8 pins

Values apply to the stated grade and conditions. Absolute maximum ratings are stress limits.SLCS006Z · May 2025

Compare the inputs

Each channel responds to IN+ minus IN−. A sufficiently positive difference releases its output; a negative difference turns the sink transistor on.

Let the pull-up set HIGH

An open collector cannot drive HIGH by itself. The pull-up supplies the output node when the transistor is off.

Keep a margin near equality

Offset and noise determine the state near the threshold. Add intentional hysteresis when a noisy signal would otherwise cause repeated switching.

At equality, do not assume a precise output. The explorer highlights the offset-sensitive region and treats out-of-range inputs separately.

Find the switching threshold

Adjust VIN and the reference. Remove the pull-up to see why it matters.

5 V · DC explorer
IN+ − IN−—
Output state—
Pull-up current—

Enable JavaScript to explore the comparator.

05 V5 VSignal input voltage →Output voltage →

Violet: offset-sensitive transition · Amber: input outside the recommended range.

DC teaching model for one classic LM339 channel. The ±9 mV region illustrates possible offset, not built-in hysteresis. A fixed 0.15 V LOW is illustrative; real output voltage depends on sink current and temperature. Timing and noise are not simulated.

Fourcomparatorchannelswithphysicalpairs7/6to1,5/4to2,9/8to14,11/10to13. Eachdrivesanopencollector;VCC3andGND12shared.
Functional explanation. The output transistor sinks when IN+ is below IN−.
5Vsupply3,GND12.15kand10kdividerVREF2Vtopin6;VINpin7;OUT1pin1pullup10kto5Vandlogicinput. Unusedplus5,9,11GND;minus4,8,10VREF;unusedoutputsopen.
VIN above VREF releases output1; its 10 kΩ pull-up then makes a HIGH.

Pin reference

Select a pin to explore its function and connection.

14 pins
PinSignalTypeFunction
OUT1Open-collector outputSinks current when IN+ is below IN−. Releases when IN+ is above IN−.
OUT2Open-collector outputSinks current when IN+ is below IN−. Releases when IN+ is above IN−.
VCCPositive supplyShared positive supply for all four comparators.
IN2−Inverting inputNegative input for the comparator whose output is pin 2.
IN2+Non-inverting inputPositive input for the comparator whose output is pin 2.
IN1−Inverting inputNegative input for the comparator whose output is pin 1.
IN1+Non-inverting inputPositive input for the comparator whose output is pin 1.
IN3−Inverting inputNegative input for the comparator whose output is pin 14.
IN3+Non-inverting inputPositive input for the comparator whose output is pin 14.
IN4−Inverting inputNegative input for the comparator whose output is pin 13.
IN4+Non-inverting inputPositive input for the comparator whose output is pin 13.
GNDSupply returnShared negative supply / ground.
OUT4Open-collector outputSinks current when IN+ is below IN−. Releases when IN+ is above IN−.
OUT3Open-collector outputSinks current when IN+ is below IN−. Releases when IN+ is above IN−.
PDIP-14 · Top view · Select a pin number to inspect its connection.

Operating conditions

Classic LM339 · not LM339B

ParameterValueConditions / notes
Supply2–30 VSingle supply
Ambient temperature0 to 70°CLM339 grade
Input common-mode range0 to VCC − 1.5 VAt 25°C
Input common-mode range0 to VCC − 2 VAcross the full temperature range
Total supply current0.8 mA typical; 2 mA maximumFour channels; VO = 2.5 V; no load; 25°C

B variants have different supply, offset and temperature limits.

Electrical characteristics

5 V unless stated

ParameterValueConditions / notes
Input offset2 mV typical; 5 mV maximumAt 25°C; specified common-mode condition
Input offset across temperature9 mV maximumClassic LM339
Input bias-current magnitude25 nA typical; 250 nA maximumAt 25°C
Input bias-current magnitude400 nA maximumAcross temperature
LOW output voltage150 mV typical; 400 mV maximum4 mA sink; −1 V differential; 25°C
LOW output across temperature700 mV maximum4 mA sink
Off-state leakage0.1 nA typical; 50 nA maximumVO = 5 V; 25°C
Typical response time1.3 µs100 mV step; 5 mV overdrive; 5.1 kΩ pull-up; 15 pF

Small-signal timing and output voltage depend on overdrive, pull-up, load and temperature.

Comparator channel connections

Physical pin numbers

ParameterValueConditions / notes
OUT1 pin1IN+7 / IN−6Used threshold channel
OUT2 pin2IN+5 / IN−4Second independent comparator
OUT3 pin14IN+9 / IN−8Third independent comparator
OUT4 pin13IN+11 / IN−10Fourth independent comparator
Shared supplyVCC3 / GND12Do not confuse this map with LM324

Some manufacturers swap channel 1 and 2 names. The physical input/output groupings above are unchanged.

Threshold detector

5 V · 2 V reference

ParameterValueConditions / notes
Reference divider15 kΩ above, 10 kΩ below5 × 10 / (15 + 10) = 2.0 V nominal
Signal inputVIN → pin7Use 0–3 V for the reviewed full-temperature range
Reference inputVREF → pin6Same reference also biases unused negative inputs
Pull-up10 kΩ from output1 to +5 VRequired for logic HIGH
Supply bypass100 nF from3 to12Close to the package
Unused comparatorsPositive inputs to GND; negative inputs to VREFLeave their outputs open
Below referenceOutput LOWTransistor sinks pull-up current
Above referenceOutput HIGH through pull-upTransistor is off

Divider accuracy depends on resistor tolerances and input bias. The explorer uses a chosen reference value.

Package and stress limits

LM339N · PDIP-14

ParameterValueConditions / notes
Lead pitch2.54 mmThrough-hole; top view
Supply absolute maximum36 VClassic non-B stress limit
Output absolute maximum36 V / 20 mAStress limits; design within operating conditions
Storage temperature−65 to +150°CUnpowered
Input/output distinctionOutputs can sink; inputs cannot power a loadUse a pull-up sized for the connected logic

Output pull-up voltage, input range and supply voltage are separate design constraints.

Multi-level indicators

Four comparators can compare one signal with four reference levels; each used output needs suitable loading.

Manufacturer application guide

Take it into ProTech

Find LM339 in the Components Library to place its schematic symbol and connect its pins.

Reference page · circuit simulation model not yet availableOpen ProTech

Component view