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
8Physical pins LM311PPDIP-8 Manufacturer-referencedTexas Instruments

Pin diagram

Select a pin to explore its connection

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

Key specifications

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

Recommended supply3.5–30 V · total span
Typical falling response165 ns · specified test
LM311 ambient0–70 °C
Output contactsC + E Separate collector and emitter

Operating profile

Supply, signals and operating conditions

LM311 operating profile
ParameterValueConditions / notes
Selected packagePDIP-8LM311P
Inputs at 5 V0.5–3.5V · recommended range
Example threshold2.00V · resistor divider
Use these values with the stated grade and test conditions.

Package details

LM311P · PDIP-8

Selected package
Selected LM311 physical package
PropertyDetails
ManufacturerTexas Instruments
Part numberLM311P
PackagePDIP-8
Connections8 pins
MountingThrough-hole
Lead pitch2.54 mm
Package codedip
Thermal referenceBoard and package dependent; see manufacturer data

Operating conditions

TI LM311 commercial grade

Scroll sideways to see all columns.

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

Scroll sideways to see all columns.

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

Scroll sideways to see all columns.

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

Scroll sideways to see all columns.

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

Scroll sideways to see all columns.

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.

Connections by function

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

Output transistor2 pins

Comparison inputs2 pins

Supply2 pins

Balance & strobe2 pins

Read the conditions with every value

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

Official PDF datasheet

LM311 at a glance

Follow the labeled connections and functional stages

LM311 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 VIN and VREF

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

Step 2 / 3

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.

Step 3 / 3

Control the transition

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

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 in a circuit

Separate emitter return, reference divider and collector pull-up.

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.

Connect it, step by step

Follow the component values and pin connections

Make the reference

30 kΩ over 20 kΩ gives 2 V from 5 V.

Connect the two returns

Ground pin 4 for power and pin 1 for the output transistor. Add 100 nF supply bypass.

Read the collector

Add 10 kΩ to +5 V at pin 7. VIN below 2 V gives LOW; above 2 V gives HIGH.

Inside LM311

A differential decision stage and an accessible output transistor.

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.

Explore the circuit

Select a stage to see its role and connections

Differential input

Compare the input voltages within the permitted common-mode range.

Balance and strobe

Optional external networks adjust offset or release the output. Their electrical drive requirements matter.

Collector and emitter

The output transistor has both contacts available. The external circuit sets its return and HIGH level.

Selected packagePDIP-8LM311P
Physical connections8 pinsPackage-specific numbering
Reference collection6 tables30 parameters & pin functions

Pin reference

Signal names, electrical functions and connection guidance

PDIP-8
Physical pin numbers8 pins

Scroll within the table to see all columns and rows.

LM311 pin functions and connections
PinSignalTypeFunction & connection
EMITOutput emitterEmitter of the output transistor, separate from the negative supply.
Connection guidance

Connect to ground for the illustrated logic output.

Do not leave the emitter floating.

IN+Non-inverting inputSignal input in the threshold detector.
Connection guidance

Connect VIN; keep it within 0.5–3.5 V for the 5 V example.

IN−Inverting inputReference input in the threshold detector.
Connection guidance

Connect the 2.00 V divider node.

V−Negative supplyNegative power rail for the comparator.
Connection guidance

Connect to ground in the single-supply example.

This is a supply pin; it is not internally interchangeable with output emitter pin 1.

BALOffset balanceOptional offset-balance connection.
Connection guidance

Leave open when offset trimming is not used.

BAL/STBBalance / strobeOptional balance and current-driven output-disable connection.
Connection guidance

Leave open in this unstrobbed circuit.

Do not short to ground. Use the manufacturer’s current-driven strobe network when required.

COLOutput collectorCollector of the output transistor.
Connection guidance

Add 10 kΩ to +5 V and read this node.

HIGH requires an external pull-up; this pin sinks current when the transistor is on.

V+Positive supplyPositive comparator supply.
Connection guidance

Connect +5 V with 100 nF bypass to pin 4.

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

Operating conditions

TI LM311 commercial grade

Manufacturer-referenced values5 parameters

Scroll within the table to see all columns and rows.

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

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

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

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

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

Manufacturer-referenced values7 parameters

Scroll within the table to see all columns and rows.

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

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

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.

Read each value with its conditions

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

Texas Instruments · SLCS007K · March 2017
Official PDF datasheet

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