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.

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

3D View

Preparing 3D preview…
3D packageDrag to rotate · Scroll to zoom
14Physical pins LM339NPDIP-14 Manufacturer-referencedTexas Instruments

Pin diagram

Select a pin to explore its connection

Package map
Highlight
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.

Key specifications

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.

Classic LM339 supply2–30 V
Independent comparators4 Open-collector outputs
Ambient range0–70 °C
Typical response time1.3 µs · specified small-step test

Operating profile

Supply, signals and operating conditions

LM339 operating profile
ParameterValueConditions / notes
Selected packagePDIP-14LM339N · 14 pins
Input range at 5 V0–3 VAcross the full temperature range
Output stageOpen collectorPull-up required for HIGH
Use these values with the stated grade and test conditions.

Package details

LM339N · PDIP-14

Selected package
Selected LM339 physical package
PropertyDetails
ManufacturerTexas Instruments
Part numberLM339N
PackagePDIP-14
Connections14 pins
MountingThrough-hole
Lead pitch2.54 mm
Package codedip
Thermal referenceBoard and package dependent; see manufacturer data

Operating conditions

Classic LM339 · not LM339B

Scroll sideways to see all columns.

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

Scroll sideways to see all columns.

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

Scroll sideways to see all columns.

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

Scroll sideways to see all columns.

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

Scroll sideways to see all columns.

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.

Connections by function

Select a pin for its function, connection guidance and electrical notes.

Open collectors4 pins

Supply1 pin

Comparator inputs8 pins

Ground1 pin

Read the conditions with every value

Typical values describe stated test conditions. Absolute maximum ratings are stress limits, not operating targets.

Official PDF datasheet

LM339 at a glance

Follow the labeled connections and functional stages

LM339 working principle: illustrated functional stages, basic circuit and connections
Select the diagram to read it at full resolution.

How it works

3 stages · Explore one step at a time

Step 1 / 3

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.

Step 2 / 3

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.

Step 3 / 3

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.

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.

LM339 in a circuit

A 2 V reference, a pull-up and all unused inputs defined.

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.

Connect it, step by step

Follow the component values and pin connections

Create a reference

The resistor divider makes 2.0 V nominal from 5 V.

Add the output pull-up

Read the output with a high-impedance logic input or meter.

Define unused inputs

Bias unused channels away from equality and leave their outputs open.

Inside LM339

Four differential comparators, each with an open collector.

Fourcomparatorchannelswithphysicalpairs7/6to1,5/4to2,9/8to14,11/10to13. Eachdrivesanopencollector;VCC3andGND12shared.
Functional explanation. The output transistor sinks when IN+ is below IN−.

Explore the circuit

Select a stage to see its role and connections

Differential decision

The input stage responds to the difference between the two voltages.

Open collector

The output transistor either sinks current or releases the node.

Four independent channels

Each comparator has separate inputs and output, with a common supply.

Selected packagePDIP-14LM339N
Physical connections14 pinsPackage-specific numbering
Reference collection6 tables31 parameters & pin functions

Pin reference

Signal names, electrical functions and connection guidance

PDIP-14
Physical pin numbers14 pins

Scroll within the table to see all columns and rows.

LM339 pin functions and connections
PinSignalTypeFunction & connection
OUT1Open-collector outputSinks current when IN+ is below IN−. Releases when IN+ is above IN−.
Connection guidance

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

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

OUT2Open-collector outputSinks current when IN+ is below IN−. Releases when IN+ is above IN−.
Connection guidance

Leave open when unused.

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

VCCPositive supplyShared positive supply for all four comparators.
Connection guidance

Use +5 V with 100 nF bypass to pin 12.

Classic LM339: 2–30 V operating range.

IN2−Inverting inputNegative input for the comparator whose output is pin 2.
Connection guidance

Connect to the 2.0 V reference when unused.

IN2+Non-inverting inputPositive input for the comparator whose output is pin 2.
Connection guidance

Connect to GND when unused.

Stay within the common-mode range.

IN1−Inverting inputNegative input for the comparator whose output is pin 1.
Connection guidance

Connect to the 2.0 V reference.

IN1+Non-inverting inputPositive input for the comparator whose output is pin 1.
Connection guidance

Connect to VIN, the adjustable signal.

Stay within the common-mode range.

IN3−Inverting inputNegative input for the comparator whose output is pin 14.
Connection guidance

Connect to the 2.0 V reference when unused.

IN3+Non-inverting inputPositive input for the comparator whose output is pin 14.
Connection guidance

Connect to GND when unused.

Stay within the common-mode range.

IN4−Inverting inputNegative input for the comparator whose output is pin 13.
Connection guidance

Connect to the 2.0 V reference when unused.

IN4+Non-inverting inputPositive input for the comparator whose output is pin 13.
Connection guidance

Connect to GND when unused.

Stay within the common-mode range.

GNDSupply returnShared negative supply / ground.
Connection guidance

Connect to signal and supply returns.

OUT4Open-collector outputSinks current when IN+ is below IN−. Releases when IN+ is above IN−.
Connection guidance

Leave open when unused.

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

OUT3Open-collector outputSinks current when IN+ is below IN−. Releases when IN+ is above IN−.
Connection guidance

Leave open when unused.

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

PDIP-14 · Top view · Select a pin number to open its interactive pinout.

Operating conditions

Classic LM339 · not LM339B

Manufacturer-referenced values5 parameters

Scroll within the table to see all columns and rows.

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

Manufacturer-referenced values8 parameters

Scroll within the table to see all columns and rows.

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

Manufacturer-referenced values5 parameters

Scroll within the table to see all columns and rows.

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

Manufacturer-referenced values8 parameters

Scroll within the table to see all columns and rows.

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

Manufacturer-referenced values5 parameters

Scroll within the table to see all columns and rows.

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.

Read each value with its conditions

Typical values describe the stated test conditions. Absolute maximum ratings are stress limits, not operating targets.

Texas Instruments · SLCS006Z · May 2025
Official PDF datasheet

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