Skip to datasheet
The Engineering ProjectsAI Interactive Datasheet

LM311Single differential voltage comparator

A fast voltage decision with a flexible output transistor.

Manufacturer-referenced

Texas Instruments · LM311P

PDIP-8SLCS007K · March 2017

LM311 is a single voltage comparator with separately accessible collector and emitter output pins. It compares two input voltages and switches its output transistor rather than amplifying a signal linearly. Our 5 V example compares VIN with a 2 V resistor reference. The emitter is grounded and the collector uses a 10 kΩ pull-up, giving a LOW output below the threshold and a HIGH output above it. Balance and strobe contacts add flexibility, but they require the correct external network. This reference follows TI’s commercial LM311P and LM311DR with both optional contacts left open in the basic circuit.

Real View

LM311P black package with silver leads and readable markings.
LM311P · PDIP-8Package illustration

Pinout

LM311PPDIP-8Top view
Select a pin to see its functionPDIP-8 · 8 pins

PCB Footprint

Loading footprint…
Powered by
Finding PDIP-8 packageTop view · mm

3D View

Preparing 3D preview…
3D packageDrag to rotate · Scroll to zoom
Output transistorComparison inputsSupply railsBalance & strobe
LM311PPDIP-8Top view

Click a lead or use the arrow keys. Top view

1
PIN 1 · Output transistor

EMIT

Output emitter

Function

Emitter of the output transistor, separate from the negative supply.

How to connect

Connect to ground for the illustrated logic output.

Electrical note

Do not leave the emitter floating.

At a glance

Single differential voltage comparator

The output collector and emitter are both exposed. The chosen emitter return and external pull-up determine the logic levels.

3.5–30 V · total spanRecommended supply
165 ns · specified testTypical falling response
0–70 °CLM311 ambient
C + E Separate collector and emitterOutput contacts

Operating profile

LM311P

Selected package
PDIP-8LM311P
Inputs at 5 V
0.5–3.5V · recommended range
Example threshold
2.00V · resistor divider

Operating conditions

Key parameters and their test conditions

Supply span
3.5–30 VConditions / notes: V+ minus V−
Ambient range
0 to +70°CConditions / notes: LM311 grade
Recommended input range
V− + 0.5 V to V+ − 1.5 VConditions / notes: Subject to the manufacturer supply conditions
Inputs in the 5 V example
0.5–3.5 VConditions / notes: Both VIN and VREF
Balance / strobe
Open in the basic circuitConditions / notes: Optional networks shown in the manufacturer PDF

Package details

Follows the selected physical package

Manufacturer
Texas Instruments
Part number
LM311P
Package
PDIP-8
Connections
8 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.

Output transistor2 pins

Comparison inputs2 pins

Supply rails2 pins

Balance & strobe2 pins

Values apply to the stated grade and conditions. Absolute maximum ratings are stress limits.SLCS007K · March 2017

Compare VIN and VREF

VIN enters IN+ pin 2; the 2 V reference enters IN− pin 3. Their difference determines the unstrobbed output state.

Switch the output transistor

Below the threshold, the transistor conducts from collector pin 7 to emitter pin 1. Above it, the transistor releases the collector and the pull-up establishes HIGH.

Control the transition

Offset creates uncertainty around equality. Positive-feedback hysteresis can stabilize a noisy threshold; it is not included in this simple example.

A comparator needs a defined output load. Keep inputs inside their common-mode range and use hysteresis when noise could 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.

Unstrobed DC teaching model with emitter pin 1 grounded. Valid input range is 0.5–3.5 V. The ±10 mV uncertainty band follows the full-temperature offset limit; it is not hysteresis. LOW uses an illustrative 0.23 V estimate from a different test load. Actual saturation, transient delay, leakage and noise are omitted.

LM311 compact internal cutaway shows IN+2 and IN−3, a gain and decision stage, balance5 and strobe6, collector7 and emitter1, supplies8 and4.
Functional cutaway; output emitter and negative supply are distinct contacts.
LM311P pin8 at5V,pin4 andemitter1ground. VIN1.5Vpin2,VREF2Vpin3from30k/20kdivider.Collector7has10kpull-up andhigh-impedance meter.Balance5andstrobe6open.100nFbypasses8and4.
Matching net labels are connected. Ground symbols share one return.

Pin reference

Select a pin to explore its function and connection.

8 pins
PinSignalTypeFunction
EMITOutput emitterEmitter of the output transistor, separate from the negative supply.
IN+Non-inverting inputSignal input in the threshold detector.
IN−Inverting inputReference input in the threshold detector.
V−Negative supplyNegative power rail for the comparator.
BALOffset balanceOptional offset-balance connection.
BAL/STBBalance / strobeOptional balance and current-driven output-disable connection.
COLOutput collectorCollector of the output transistor.
V+Positive supplyPositive comparator supply.
PDIP-8 · Top view · Select a pin number to inspect its connection.

Operating conditions

TI LM311 commercial grade

ParameterValueConditions / notes
Supply span3.5–30 VV+ minus V−
Ambient range0 to +70°CLM311 grade
Recommended input rangeV− + 0.5 V to V+ − 1.5 VSubject to the manufacturer supply conditions
Inputs in the 5 V example0.5–3.5 VBoth VIN and VREF
Balance / strobeOpen in the basic circuitOptional networks shown in the manufacturer PDF

Supply range and input range are separate constraints.

Electrical characteristics

±15 V test supply unless stated

ParameterValueConditions / notes
Input offset voltage2 mV typical; 7.5 mV maximum25°C; 10 mV maximum over temperature
Input bias current100 nA typical; 250 nA maximum25°C; 300 nA maximum over temperature
Input offset current6 nA typical; 50 nA maximum25°C; 70 nA maximum over temperature
Collector-emitter LOW0.23 V typical; 0.4 V maximum4.5 V single supply; 8 mA sink; VID = −10 mV
Positive supply current5.1 mA typical; 7.5 mA maximumOutput LOW; no load; 25°C
Negative supply current magnitude4.1 mA typical; 5 mA maximumOutput HIGH; no load; 25°C

The LOW-voltage test is load dependent. It is not a fixed voltage for every collector current.

Response and output behavior

Manufacturer switching test

ParameterValueConditions / notes
LOW-to-HIGH response115 ns typical±15 V supply; 100 mV step; 5 mV overdrive
HIGH-to-LOW response165 ns typicalSame step and overdrive
Test output load500 Ω to 5 V; 5 pFDifferent loading changes delay
VIN below VREFOutput transistor ONCollector pulled toward emitter
VIN above VREFOutput transistor OFFPull-up creates HIGH
No pull-up, output OFFFloating collectorNot a valid HIGH

Near equality, offset and noise can dominate. Typical response is not a guaranteed delay.

5 V threshold detector

A 2.00 V reference and 10 kΩ pull-up

ParameterValueConditions / notes
Reference upper resistor30 kΩ+5 V to VREF
Reference lower resistor20 kΩVREF to ground
Reference result2.00 V5 × 20 / (30 + 20)
Signal input1.50 V initiallyIN+ pin 2
Output pull-up10 kΩ+5 V to collector pin 7
Emitter and negative railPins 1 and 4 to groundTwo distinct terminals
Supply bypass100 nFPins 8–4; short local loop

The high-impedance output meter adds negligible loading.

Optional controls and stress limits

LM311P · PDIP-8

ParameterValueConditions / notes
Offset trimBalance pins 5 and 6Use the manufacturer network
Strobe driveCurrent driven, approximately −3 to −5 mADo not short the strobe contact to ground
Supply absolute maximum36 V totalStress only; recommended maximum 30 V
Collector to V− absolute maximum40 V for LM311The 50 V rating belongs to other family members
Storage temperature−65 to +150°CUnpowered storage
Pin pitch2.54 mmThrough-hole

Stress ratings do not describe recommended continuous operation.

Logic interfacing

Choose collector pull-up and emitter return to suit the receiving logic while observing every voltage/current limit.

Manufacturer application guide

Take it into ProTech

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

Reference page · circuit simulation model not yet availableOpen ProTech

Component view