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.

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

3D View

Preparing 3D preview…
3D packageDrag to rotate · Scroll to zoom
Open-collector outputsComparison inputsSupply & return
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.

At a glance

Dual voltage comparator

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

2–30 V · classic LM393Recommended supply
2 Open-collector outputsIndependent channels
0–70 °CAmbient range
1.3 µs · specified small-signal testTypical response

Operating profile

LM393P

Selected package
PDIP-8LM393P · 8 pins
Input range at 5 V
0–3 VRecommended full-temperature range
Example pull-up
10 kΩTo +5 V; about 0.49 mA when LOW

Operating conditions

Key parameters and their test conditions

Supply
2–30 VConditions / notes: Single supply; example uses 5 V
Ambient temperature
0 to +70°CConditions / notes: LM393 / LM393A grade
Input voltage range
0 to VCC − 2 VConditions / notes: Recommended full-temperature range
Example input range
0–3 VConditions / notes: At VCC = 5 V
Output HIGH
External pull-up requiredConditions / notes: Output transistor is off

Package details

Follows the selected physical package

Manufacturer
Texas Instruments
Part number
LM393P
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.

Open-collector outputs2 pins

Comparison inputs4 pins

Supply & return2 pins

Compare the two inputs

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

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.

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.

The explorer illustrates a DC threshold and a pull-up. It does not replace a transient simulation, and it deliberately marks the offset-sensitive region near equality.

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.

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.
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.

Pin reference

Select a pin to explore its function and connection.

8 pins
PinSignalTypeFunction
OUT1Open-collector outputChannel A sinks current when IN1− is above IN1+.
IN1−Inverting inputChannel A reference input in the illustrated circuit.
IN1+Non-inverting inputChannel A measured signal.
GNDSupply returnGround reference for both comparators.
IN2+Non-inverting inputChannel B positive input.
IN2−Inverting inputChannel B negative input.
OUT2Open-collector outputChannel B current-sinking output.
VCCPositive supplyShared positive supply for both comparators.
PDIP-8 · Top view · Select a pin number to inspect its connection.

Operating conditions

Classic LM393 · not the B revision

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

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

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

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

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.

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