Skip to datasheet
The Engineering ProjectsAI Interactive Datasheet

LM393Dual voltage comparator

Turn a voltage threshold into a clear digital decision.

Manufacturer-referenced

Texas Instruments · LM393P

PDIP-8SLCS005AH · April 2025

LM393 contains two independent voltage comparators in an eight-pin IC. Each compares its positive and negative inputs and controls an open-collector output. When IN+ is below IN−, the output transistor conducts and pulls the output LOW. When IN+ rises above IN−, it releases the output and an external pull-up resistor establishes HIGH. This reference covers the classic LM393P and LM393D, with a 5 V threshold detector and a 2 V reference.

3D View

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

Real View

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

Pinout

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

PCB Footprint

Loading footprint…
Powered by
Finding PDIP-8 packageTop view · mm
8Physical pins LM393PPDIP-8 Manufacturer-referencedTexas Instruments

Pin diagram

Select a pin to explore its connection

Package map
Highlight
LM393PPDIP-8Top view

Click a lead or use the arrow keys. Top view

1
PIN 1 · Open-collector outputs

OUT1

Open-collector output

Function

Channel A sinks current when IN1− is above IN1+.

How to connect

Add a 10 kΩ pull-up to +5 V; read this node with a high-impedance input.

Electrical note

The IC does not actively drive HIGH.

Key specifications

An open-collector output needs a pull-up resistor. It sinks current instead of sourcing a HIGH level.

Recommended supply2–30 V · classic LM393
Independent channels2 Open-collector outputs
Ambient range0–70 °C
Typical response1.3 µs · specified small-signal test

Operating profile

Supply, signals and operating conditions

LM393 operating profile
ParameterValueConditions / notes
Selected packagePDIP-8LM393P · 8 pins
Input range at 5 V0–3 VRecommended full-temperature range
Example pull-up10 kΩTo +5 V; about 0.49 mA when LOW
Use these values with the stated grade and test conditions.

Package details

LM393P · PDIP-8

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

Operating conditions

Classic LM393 · not the B revision

Scroll sideways to see all columns.

ParameterValueConditions / notes
Supply2–30 VSingle supply; example uses 5 V
Ambient temperature0 to +70°CLM393 / LM393A grade
Input voltage range0 to VCC − 2 VRecommended full-temperature range
Example input range0–3 VAt VCC = 5 V
Output HIGHExternal pull-up requiredOutput transistor is off

TI SLCS005AH recommended conditions for the classic device.

Electrical characteristics

5 V supply unless stated

Scroll sideways to see all columns.

ParameterValueConditions / notes
Input offset voltage2 mV typical; 5 mV maximum25°C; VCC = 5–30 V
Offset over temperature9 mV maximum0–70°C
Input bias current25 nA typical; 250 nA maximumMagnitude at 25°C
Output LOW voltage0.13 V typical; 0.40 V maximum4 mA sink; VID = −1 V; 25°C
Output LOW over temperature0.70 V maximumSame 4 mA test; full range
Total supply current0.45 mA typical; 1 mA maximum5 V; unloaded; 25°C
Response time1.3 µs typical100 mV step; 5 mV overdrive; 5.1 kΩ pull-up; 15 pF

Response time and typical LOW voltage are not guaranteed operating limits.

Output behavior

Voltage difference and pull-up

Scroll sideways to see all columns.

ParameterValueConditions / notes
IN+ < IN−Output transistor ONLOW; current flows through the pull-up
IN+ > IN−Output transistor OFFHIGH only with a pull-up or another defined load
Inputs nearly equalOffset and noise matterOutput state is not guaranteed at exact equality
No pull-up; transistor OFFFloating outputDo not call this HIGH
Noisy thresholdMay switch repeatedlyUse calculated hysteresis for a stable transition

This example has no positive-feedback hysteresis.

Threshold detector values

Nominal 5 V example

Scroll sideways to see all columns.

ParameterValueConditions / notes
Upper reference resistor30 kΩFrom +5 V to VREF
Lower reference resistor20 kΩFrom VREF to ground
Reference voltage2.00 V5 × 20 / (30 + 20)
Output pull-up10 kΩFrom +5 V to OUT1
Supply bypass100 nFClose to pins 8 and 4
Unused comparatorIN2+ to GND; IN2− to VREFOUT2 unconnected

Divider tolerance, input bias and supply error affect the threshold.

Package and stress limits

LM393P · PDIP-8

Scroll sideways to see all columns.

ParameterValueConditions / notes
Lead pitch2.54 mmThrough-hole; top view
Supply absolute maximum36 VStress rating; recommended maximum is 30 V
Output voltage absolute maximum−0.3 to +36 VObserve the load and current limits
Output current absolute maximum20 mANot a recommended design current
Junction temperature limit150°CAbsolute maximum
Storage temperature−65 to +150°CUnpowered storage

Use the manufacturer thermal data for the actual board and package.

Connections by function

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

Open-collector outputs2 pins

Comparison inputs4 pins

Ground1 pin

Supply1 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

LM393 at a glance

Follow the labeled connections and functional stages

LM393 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 two inputs

The differential input stage responds to IN+ minus IN−. No analog-to-digital converter or firmware is needed.

Step 2 / 3

Sink current or release the node

A negative input difference turns the output transistor on. A positive difference turns it off. The external pull-up supplies the HIGH level.

Step 3 / 3

Make a stable decision

Keep inputs in their common-mode range. Add positive-feedback hysteresis when a slowly changing or noisy signal would chatter around the threshold.

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 channel A. The ±9 mV band uses the maximum input-offset magnitude over 0–70°C; it is uncertainty, not hysteresis. LOW uses a 0.13 V illustrative estimate. Propagation delay, input bias, leakage and noise are omitted.

LM393 in a circuit

A physical IC, a resistor reference and a clearly defined output.

LM393P pin 8 uses 5 V, pin 4 ground and 100 nF bypass. A 30 kΩ and 20 kΩ divider produces 2 V at pin 2. VIN drives pin 3. A 10 kΩ pull-up on pin 1 supplies the HIGH output. Unused channel pin 5 is ground, pin 6 VREF and pin 7 unconnected.
Same-name labels are connected. All ground symbols share one return. Meter input is high impedance.

Connect it, step by step

Follow the component values and pin connections

Build the reference

30 kΩ above and 20 kΩ below produce a nominal 2 V reference from 5 V.

Compare VIN

Connect the measured voltage to IN1+ and VREF to IN1−. VIN below 2 V makes OUT1 LOW.

Add the pull-up

Connect 10 kΩ from OUT1 to 5 V. Without it, the released output is floating rather than HIGH.

Inside LM393

Two differential channels with independent open-collector outputs.

Two comparator channels share supply pins. Each differential input drives an output transistor whose emitter returns to ground and collector is the output pin. External pull-ups create HIGH levels.
Functional architecture; the pull-up resistors are external to the IC.

Explore the circuit

Select a stage to see its role and connections

Differential input

Compare the two input voltages while respecting their valid range.

Open-collector switch

The collector is exposed at OUT. A LOW state sinks current; an off transistor releases the node.

Shared supply

Both channels use VCC pin 8 and GND pin 4, but each has its own inputs and output.

Selected packagePDIP-8LM393P
Physical connections8 pinsPackage-specific numbering
Reference collection6 tables29 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.

LM393 pin functions and connections
PinSignalTypeFunction & connection
OUT1Open-collector outputChannel A sinks current when IN1− is above IN1+.
Connection guidance

Add a 10 kΩ pull-up to +5 V; read this node with a high-impedance input.

The IC does not actively drive HIGH.

IN1−Inverting inputChannel A reference input in the illustrated circuit.
Connection guidance

Connect the 2.00 V divider node.

Keep both example inputs within 0–3 V at a 5 V supply.

IN1+Non-inverting inputChannel A measured signal.
Connection guidance

Connect VIN and a common ground.

GNDSupply returnGround reference for both comparators.
Connection guidance

Connect the supply return and bypass capacitor.

IN2+Non-inverting inputChannel B positive input.
Connection guidance

Tie to GND when unused in this example.

IN2−Inverting inputChannel B negative input.
Connection guidance

Connect to the same 2 V reference to give the unused channel a defined state.

OUT2Open-collector outputChannel B current-sinking output.
Connection guidance

Leave unconnected in the single-channel example.

Use a separate pull-up when using channel B.

VCCPositive supplyShared positive supply for both comparators.
Connection guidance

Apply +5 V; place 100 nF between pins 8 and 4.

Classic LM393 recommended supply: 2–30 V.

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

Operating conditions

Classic LM393 · not the B revision

Manufacturer-referenced values5 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
Supply2–30 VSingle supply; example uses 5 V
Ambient temperature0 to +70°CLM393 / LM393A grade
Input voltage range0 to VCC − 2 VRecommended full-temperature range
Example input range0–3 VAt VCC = 5 V
Output HIGHExternal pull-up requiredOutput transistor is off

TI SLCS005AH recommended conditions for the classic device.

Electrical characteristics

5 V supply unless stated

Manufacturer-referenced values7 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
Input offset voltage2 mV typical; 5 mV maximum25°C; VCC = 5–30 V
Offset over temperature9 mV maximum0–70°C
Input bias current25 nA typical; 250 nA maximumMagnitude at 25°C
Output LOW voltage0.13 V typical; 0.40 V maximum4 mA sink; VID = −1 V; 25°C
Output LOW over temperature0.70 V maximumSame 4 mA test; full range
Total supply current0.45 mA typical; 1 mA maximum5 V; unloaded; 25°C
Response time1.3 µs typical100 mV step; 5 mV overdrive; 5.1 kΩ pull-up; 15 pF

Response time and typical LOW voltage are not guaranteed operating limits.

Output behavior

Voltage difference and pull-up

Manufacturer-referenced values5 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
IN+ < IN−Output transistor ONLOW; current flows through the pull-up
IN+ > IN−Output transistor OFFHIGH only with a pull-up or another defined load
Inputs nearly equalOffset and noise matterOutput state is not guaranteed at exact equality
No pull-up; transistor OFFFloating outputDo not call this HIGH
Noisy thresholdMay switch repeatedlyUse calculated hysteresis for a stable transition

This example has no positive-feedback hysteresis.

Threshold detector values

Nominal 5 V example

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
Upper reference resistor30 kΩFrom +5 V to VREF
Lower reference resistor20 kΩFrom VREF to ground
Reference voltage2.00 V5 × 20 / (30 + 20)
Output pull-up10 kΩFrom +5 V to OUT1
Supply bypass100 nFClose to pins 8 and 4
Unused comparatorIN2+ to GND; IN2− to VREFOUT2 unconnected

Divider tolerance, input bias and supply error affect the threshold.

Package and stress limits

LM393P · PDIP-8

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
Lead pitch2.54 mmThrough-hole; top view
Supply absolute maximum36 VStress rating; recommended maximum is 30 V
Output voltage absolute maximum−0.3 to +36 VObserve the load and current limits
Output current absolute maximum20 mANot a recommended design current
Junction temperature limit150°CAbsolute maximum
Storage temperature−65 to +150°CUnpowered storage

Use the manufacturer thermal data for the actual board and package.

Read each value with its conditions

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

Texas Instruments · SLCS005AH · April 2025
Official PDF datasheet

Threshold and level detection

Compare a sensor voltage with a reference and feed the result to logic. Choose a pull-up voltage compatible with that logic.

Manufacturer application guide

Window detectors

Use both comparators for upper and lower limits. The output circuit determines how the two decisions combine.

Manufacturer application guide

Slow sensor signals

Convert a temperature, light or position voltage into an alarm state. Hysteresis prevents noisy repeated transitions.

Manufacturer application guide

Take it into ProTech

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

Reference page · circuit simulation model not yet availableOpen ProTech

Component view