LM393/LM339
Features
36V Low Power Dual/Quad Differential Comparators
Wide Single-supply Voltage Range or Dual
Supplies: +2 V to +36 V or ±1.0 V to ±18 V
Very Low Supply Current (150 μA/ch) Independent
of Supply Voltage(0.75 mW/comparator at +5 V)
Low Input Bias Current: 4 nA typ.
Low Offset Voltage: ± 3.0 mV Max
Offset Voltage Temperature Drift: 1 μV/°C
Input Common-mode Voltage Range Includes
Ground
Internal Differential Input Voltage Range Equal to
The Supply Voltage
TTL, DTL, ECL, MOS, CMOS compatible Outputs
ESD Clamps on the Inputs Increase the
Ruggedness of the Device Without Affecting
Performance
Low Output Saturation
–40°C to 125°C Operation Range
ESD Rating:
Robust 2KV – HBM, 2KV – CDM
High Performance Drop-In Compatible With 339,
339, 2903, 2901 Series Product
Description
The devices in this series consist of dual/quad
independent single or dual supply voltage
comparators on a single monolithic substrate. The
common mode input voltage range includes
ground even when operated from a single supply,
and the low power supply current drain makes
these comparators suitable for battery operation.
These types were designed to directly interface
with TTL and CMOS, Current drain is independent
of the supply voltage. The outputs can be
connected to other open-collector outputs to
achieve wired-AND relationships.
The LM393 is dual channel version available in
8-pin SOP package. The LM339 is quad channel
version available in 14-pin SOP package. All
devices are specified for the temperature range of
–40°C to +125°C.
3PEAK and the 3PEAK logo are registered trademarks of
3PEAK INCORPORATED. All other trademarks are the property
of their respective owners.
Applications
High-speed Line or Digital Line Receivers
Peak and Zero-crossing Detectors
High Speed Sampling Circuits
Threshold Detectors/Discriminators
Sensing at Ground or Supply Line
Pin Configuration (Top View)
www.3peakic.com
Rev. B
1
LM393/LM339
36V Low Power Dual/Quad Differential Comparators
Order Information
Model Name
Order Number
LM393
LM393-SR
LM339
LM339-SR
Package
8-Pin SOP
14-Pin SOP
Transport Media, Quantity
Tape and Reel, 4,000
Marking
Information
LM393
Tape and Reel, 2,500
LM339
Absolute Maximum Ratings Note 1
Supply Voltage: V – V ......................................42V
Input Voltage............................. V – 0.3 to V + 0.3
Operating Temperature Range.........–40°C to
125°C
Output Current: OUT..................................... ±20mA
Storage Temperature Range.......... –65°C to 150°C
+
–
–
+
Input Current: +IN, –IN, Note 2...........................±20mA
Output Short-Circuit Duration Note 3….............. Infinite
Maximum Junction Temperature................... 150°C
Lead Temperature (Soldering, 10 sec) ......... 260°C
Note 1: Stresses beyond those listed under Absolute Maximum Ratings may cause permanent damage to the device. Exposure to any
Absolute Maximum Rating condition for extended periods may affect device reliability and lifetime.
Note 2: The inputs are protected by ESD protection diodes to each power supply. If the input extends more than 500mV beyond the power
supply, the input current should be limited to less than 10mA.
Note 3: A heat sink may be required to keep the junction temperature below the absolute maximum. This depends on the power supply voltage
and how many amplifiers are shorted. Thermal resistance varies with the amount of PC board metal connected to the package. The specified
values are for short traces connected to the leads.
ESD, Electrostatic Discharge Protection
Symbol
HBM
CDM
2
Parameter
Human Body Model ESD
Charged Device Model ESD
Rev. B
Condition
MIL-STD-883H Method 3015.8
JEDEC-EIA/JESD22-C101E
Minimum Level
2
2
Unit
kV
kV
www.3peakic.com
LM393/LM339
Electrical Characteristics
36V Low Power Dual/Quad Differential Comparators
The ● denotes the specifications which apply over the full operating temperature range(-40°C ~ +125°C), otherwise specifications are
at TA = 27°C. VDD = +5V, VIN+ = VDD, VIN- = 1.2V, RPU=10kΩ, CL =15pF.
SYMBOL
PARAMETER
VOS
Input Offset Voltage Note 1
VDD
Supply Voltage
VOS TC
IB
Input Offset Voltage Drift Note 1
Input Bias Current
VCM
Common-mode Input Voltage
Range
CIN
AVD
IOH
VOL
IOL
IQ
tRT
Input Capacitance
Large-signal Differential-voltage
Amplification
High-level Output Current
Low-Level Output Voltage
Low-level Output Current
Quiescent Current per Comparator
Response time
CONDITIONS
VCC = 5 V to MAX, VIC = VICR(min),
VO = 1.4V
VCM = 1.2V
VDM = 0.5V
Differential
Common Mode
25°C
-40°C ~ +125°C
VCC = 15 V, VO = 1.4 V to 11.4 V,
RL ≥ 15 kΩ to VCC
VOH = 5 V, VID = 1 V
VOH = 30 V, VID = 1 V
IOL = 4mA, VID = −1V
VOL = 1.5 V, VID = −1 V
VCC = 5 V
VCC = 30 V
100-mV input
RL connected to
step with 5-mV
5 V through 5.1
overdrive
kΩ, CL = 15 pF,
TTL-level input
See Note 3
step
●
●
●
MIN
2
-3
0
0
100
●
●
TYP
±0.6
1
4
2.5
5
400
25
250
10
150
150
2
0.5
MAX
36
+3
2
VDD-1.5
VDD-2
70
7
400
700
300
300
UNITS
V
mV
μV/°C
nA
pF
V
V
V/mV
nA
μA
mV
mV
mA
μA
μA
μs
Note 1: The input offset voltage is the average of the input-referred trip points.
www.3peakic.com
Rev. B
3
LM393/LM339
36V Low Power Dual/Quad Differential Comparators
Typical Performance Characteristics
VS = +5V, VCM = 0V, RL = Open, unless otherwise specified.
Supply Current vs. Supply Voltage
180
Response Time for Various Input Overdrives - Positive Transition
6
5
140
4
120
100
VOUT(V)
Supply Current(uA)
160
80
60
25°C
40
0
8
13
18
Supply Voltage(V)
23
Vov=20mV
Vov=5mV
0
130°C
3
2
1
-40°C
20
3
-1
28
Vov=100mV
0
Response Time For Various Input Overdrives
3
2
1
0.6
0.8
Time(μs)
1
T=-40℃
5
Vdrop(V)
VOUT(V)
4
T=25℃
T=130℃
4
3
2
1
0
-1
6
Vov=100mV
Vov=20mV
Vov=5mV
5
0.4
Negative Output Swing vs. Sink Current
- Negative Transition
6
0.2
0
0.2
0.4
0.6
Time(μs)
0.8
1
1.2
0
0
10
20
Isink (mA)
30
40
Response Time Test Circuit
4
Rev. B
www.3peakic.com
LM393/LM339
36V Low Power Dual/Quad Differential Comparators
Pin Functions
–IN: Inverting Input of the Comparator. Voltage
–
+
range of this pin can go from V to V - 1.5V.
power supply pins or between supply pins and
ground.
+IN: Non-Inverting Input of Comparator. This pin has
the same voltage range as –IN.
V– (VSS): Negative Power Supply. It is normally tied
to ground. It can also be tied to a voltage other than
+
–
ground as long as the voltage between V and V is
from 2V to 36V. If it is not connected to ground,
bypass it with a capacitor of 0.1μF as close to the
part as possible.
V+ (VDD): Positive Power Supply. Typically the
voltage is from 2V to 36V. Split supplies are possible
as long as the voltage between V+ and V– is
between 2V and 36V. A bypass capacitor of 0.1μF as
close to the part as possible should be used between
OUT: Comparator Output. The voltage range
extends to within millivolts of each supply rail.
Operation
The LM393/339 family single-supply comparators
feature internal hysteresis, high speed, and low power.
Input signal range extends beyond the negative and
positive power supplies. The output can even extend
all the way to the negative supply. The input stage is
active over different ranges of common mode input
voltage. Rail-to-rail input voltage range and
low-voltage single-supply operation make these
devices ideal for portable equipment.
Applications Information
Inputs
The LM393/339 comparator family uses CMOS transistors at the input which prevent phase inversion when the
input pins exceed the supply voltages. Figure 1 shows an input voltage exceeding both supplies with no resulting
phase inversion.
Vout Voltage (mV)
6
Input Voltage
4
2
0
-2
VDD=5V
Output Voltage
Time (100μs/div)
Figure 1. Comparator Response to Input Voltage
The electrostatic discharge (ESD) protection input structure of two back-to-back diodes and 1kΩ series resistors
are used to limit the differential input voltage applied to the precision input of the comparator by clamping input
www.3peakic.com
Rev. B
5
LM393/LM339
36V Low Power Dual/Quad Differential Comparators
voltages that exceed supply voltages, as shown in Figure 2. Large differential voltages exceeding the supply
voltage should be avoided to prevent damage to the input stage.
+In
1K Ω
-In
1K Ω
Core
Chip
Figure 2. Equivalent Input Structure
External Hysteresis
Greater flexibility in selecting hysteresis is achieved by using external resistors. Hysteresis reduces output
chattering when one input is slowly moving past the other. It also helps in systems where it is best not to cycle
between high and low states too frequently (e.g., air conditioner thermostatic control). Output chatter also
increases the dynamic supply current.
Non-Inverting Comparator with Hysteresis
A non-inverting comparator with hysteresis requires a two-resistor network, as shown in Figure 3 and a voltage
reference (Vr) at the inverting input.
Figure 3. Non-Inverting Configuration with Hysteresis
When Vi is low, the output is also low. For the output to switch from low to high, Vi must rise up to Vtr. When Vi is
high, the output is also high. In order for the comparator to switch back to a low state, Vi must equal Vtf before the
non-inverting input V+ is again equal to Vr.
Vr
R2
R1 R 2
Vtr
Vr (VDD Vtf )
Vtr
6
Rev. B
R1 R 2
R2
R1
Vtf
R1 R 2
Vr
www.3peakic.com
LM393/LM339
36V Low Power Dual/Quad Differential Comparators
Vtf
R1 R 2
R2
Vr
R1
R2
Vhyst Vtr Vtf
R1
R2
VDD
VDD
Inverting Comparator with Hysteresis
The inverting comparator with hysteresis requires a three-resistor network that is referenced to the comparator
supply voltage (VDD), as shown in Figure 4.
Figure 4. Inverting Configuration with Hysteresis
When Vi is greater than V+, the output voltage is low. In this case, the three network resistors can be presented as
paralleled resistor R2 || R3 in series with R1. When Vi at the inverting input is less than V+, the output voltage is
high. The three network resistors can be represented as R1 ||R3 in series with R2.
Vtr
Vtf
R2
R1 || R 3 R 2
VDD
R 2 || R 3
VDD
R 2 || R 3 R1
Vhyst Vtr Vtf
R1 || R 2
R1 || R 2 R 3
VDD
Low Input Bias Current
The LM393/339 family is a CMOS comparator family and features very low input bias current in pA range. The low
input bias current allows the comparators to be used in applications with high resistance sources. Care must be
taken to minimize PCB Surface Leakage. See below section on “PCB Surface Leakage” for more details.
PCB Surface Leakage
In applications where low input bias current is critical, Printed Circuit Board (PCB) surface leakage effects need to
be considered. Surface leakage is caused by humidity, dust or other contamination on the board. Under low
12
humidity conditions, a typical resistance between nearby traces is 10 Ω. A 5V difference would cause 5pA of
www.3peakic.com
Rev. B
7
LM393/LM339
36V Low Power Dual/Quad Differential Comparators
current to flow, which is greater than the LM393/LM339’s input bias current at +27°C (±6pA, typical). It is
recommended to use multi-layer PCB layout and route the comparator’s -IN and +IN signal under the PCB
surface.
The effective way to reduce surface leakage is to use a guard ring around sensitive pins (or traces). The guard
ring is biased at the same voltage as the sensitive pin. An example of this type of layout is shown in Figure 5 for
Inverting configuration application.
1. For Non-Inverting Configuration:
a) Connect the non-inverting pin (VIN+) to the input with a wire that does not touch the PCB surface.
b) Connect the guard ring to the inverting input pin (VIN–). This biases the guard ring to the same reference as the
comparator.
2. For Inverting Configuration:
a) Connect the guard ring to the non-inverting input pin (VIN+). This biases the guard ring to the same reference voltage as
the comparator (e.g., VDD/2 or ground).
b) Connect the inverting pin (VIN–) to the input with a wire that does not touch the PCB surface.
Figure 5. Example Guard Ring Layout for Inverting Comparator
Ground Sensing and Rail to Rail Output
The LM393/339 family implements a rail-to-rail topology that is capable of swinging to within 10mV of either rail.
Since the inputs can go 300mV beyond either rail, the comparator can easily perform ‘true ground’ sensing.
The maximum output current is a function of total supply voltage. As the supply voltage of the comparator
increases, the output current capability also increases. Attention must be paid to keep the junction temperature of
the IC below 150°C when the output is in continuous short-circuit condition. The output of the amplifier has
reverse-biased ESD diodes connected to each supply. The output should not be forced more than 0.5V beyond
either supply, otherwise current will flow through these diodes.
ESD
The LM393/339 family has reverse-biased ESD protection diodes on all inputs and output. Input and output pins
can not be biased more than 300mV beyond either supply rail.
Power Supply Layout and Bypass
The LM393/339 family’s power supply pin should have a local bypass capacitor (i.e., 0.01μF to 0.1μF) within 2mm
for good high frequency performance. It can also use a bulk capacitor (i.e., 1μF or larger) within 100mm to provide
large, slow currents. This bulk capacitor can be shared with other analog parts.
Good ground layout improves performance by decreasing the amount of stray capacitance and noise at the
comparator’s inputs and outputs. To decrease stray capacitance, minimize PCB lengths and resistor leads, and
place external components as close to the comparator’ pins as possible.
Proper Board Layout
The LM393/339 family is a series of fast-switching, high-speed comparator and requires high-speed layout
considerations. For best results, the following layout guidelines should be followed:
1. Use a printed circuit board (PCB) with a good, unbroken low-inductance ground plane.
2. Place a decoupling capacitor (0.1μF ceramic, surface-mount capacitor) as close as possible to supply.
8
3. On the inputs and the output, keep lead lengths as short as possible to avoid unwanted parasitic feedback
around the comparator. Keep inputs away from the output.
Rev. B
www.3peakic.com
LM393/LM339
36V Low Power Dual/Quad Differential Comparators
4. Solder the device directly to the PCB rather than using a socket.
5. For slow-moving input signals, take care to prevent parasitic feedback. A small capacitor (1000 pF or less)
placed between the inputs can help eliminate oscillations in the transition region. This capacitor causes some
degradation to propagation delay when the impedance is low. The topside ground plane should be placed
between the output and inputs.
6. The ground pin ground trace should run under the device up to the bypass capacitor, thus shielding the inputs
from the outputs.
Typical Applications
IR Receiver
The LM393/339 is an ideal candidate to be used as an infrared receiver shown in Figure 6. The infrared photo
diode creates a current relative to the amount of infrared light present. The current creates a voltage across RD.
When this voltage level cross the voltage applied by the voltage divider to the inverting input, the output
transitions. Optional Ro provides additional hysteresis for noise immunity.
VDD
R1
Ro
LM393
R2
Vo
RD
Figure 6. IR Receiver
Relaxation Oscillator
A relaxation oscillator using LM393/339 is shown in Figure 7. Resistors R1 and R2 set the bias point at the
comparator's inverting input. The period of oscillator is set by the time constant of R4 and C1. The maximum
frequency is limited by the large signal propagation delay of the comparator. LM393/339’s low propagation delay
guarantees the high frequency oscillation.
If the inverted input (VC1) is lower than the non-inverting input (VA), the output is high which charges C1 through R4
until VC1 is equal to VA. The value of VA at this point is
VA1
VDD R 2
R 1 || R 3 R 2
At this point the comparator switches pulling down the output to the negative rail. The value of VA at this point is
VA2
VDD R 2 || R 3
R 1 R 2 || R 3
If R1=R2=R3, then VA1=2VDD /3, and VA2= VDD/3
The capacitor C1 now discharges through R4, and the voltage VC decreases till it is equal to VA2, at which point the
comparator switches again, bringing it back to the initial stage. The time period is equal to twice the time it takes
to discharge C1 from 2VDD/3 to VDD/3. Hence the frequency is:
Freq
www.3peakic.com
1
2 ln2 R 4 C1
Rev. B
9
LM393/LM339
36V Low Power Dual/Quad Differential Comparators
VDD
R1
R2
R3
VA
VC1
C1
LM393
R4
VO
Vo
2/3VDD
t
VC1
1/3VDD
R1=R2=R3
t
Figure 7. Relaxation Oscillator
Windowed Comparator
Figure 8 shows one approach to designing a windowed comparator using a single LM393/339 chip. Choose
different thresholds by changing the values of R1, R2, and R3. OutA provides an active-low undervoltage
indication, and OutB gives an active-low overvoltage indication. ANDing the two outputs provides an active-high,
power-good signal. When input voltage Vi reaches the overvoltage threshold VOH, the OutB gets low. Once Vi falls
to the undervoltage threshold VUH, the OutA gets low. When VUH