May 2007
LMV331 Single / LMV393 Dual / LMV339 Quad
General Purpose, Low Voltage, Tiny Pack Comparators
General Description
The LMV393 and LMV339 are low voltage (2.7-5V) versions
of the dual and quad comparators, LM393/339, which are
specified at 5-30V. The LMV331 is the single version, which
is available in space saving 5-pin SC70 and 5-pin SOT23
packages. The 5-pin SC70 is approximately half the size of
the 5-pin SOT23.
The LMV393 is available in 8-pin SOIC and MSOP. The
LMV339 is available in 14-pin SOIC and TSSOP.
The LMV331/393/339 is the most cost-effective solution
where space, low voltage, low power and price are the pri-
mary specification in circuit design for portable consumer
products. They offer specifications that meet or exceed the
familiar LM393/339 at a fraction of the supply current.
The chips are built with National's advanced Submicron Sili-
con-Gate BiCMOS process. The LMV331/393/339 have bipo-
lar input and output stages for improved noise performance.
Features
(For 5V supply, typical unless otherwise noted)
Guaranteed 2.7V and 5V performance
Industrial temperature range −40°C to +85°C
Low supply current 60 µA/Channel
Input common mode voltage range includes ground
Low output saturation voltage 200 mV
Propagation delay 200 ns
Space saving 5-pin SC70 and 5-Pin SOT23 packages
Applications
Mobile communications
Notebooks and PDA's
Battery powered electronics
General purpose portable device
General purpose low voltage applications
Typical Applications
Squarewave Oscillator
10008008
10008017
Positive Peak Detector
10008024
© 2007 National Semiconductor Corporation 100080 www.national.com
LMV331 Single / LMV393 Dual / LMV339 Quad General Purpose, Low Voltage, Tiny Pack
Comparators
Absolute Maximum Ratings (Note 1)
If Military/Aerospace specified devices are required,
please contact the National Semiconductor Sales Office/
Distributors for availability and specifications.
ESD Tolerance (Note 2)
Human Body Model
LMV331/393/339 800V
Machine Model
LMV331/339/393 120V
Differential Input Voltage ±Supply Voltage
Voltage on any pin
(referred to V pin)
5.5V
Soldering Information
Infrared or Convection (20 sec) 235°C
Storage Temp. Range −65°C to +150°C
Junction Temperature (Note 3) 150°C
Operating Ratings (Note 1)
Supply Voltage 2.7V to 5.0V
Temperature Range (Note 3)
LMV393. LMV339, LMV331 −40°C to +85°C
Thermal Resistance (θJA)
5-Pin SC70 478°C/W
5-Pin SOT23 265°C/W
8-Pin SOIC 190°C/W
8-Pin MSOP 235°C/W
14-Pin SOIC 145°C/W
14-Pin TSSOP 155°C/W
2.7V DC Electrical Characteristics
Unless otherwise specified, all limits guaranteed for TJ = 25°C, V+ = 2.7V, V = 0V. Boldface limits apply at the temperature
extremes.
Symbol Parameter Conditions Min
(Note 5)
Typ
(Note 4)
Max
(Note 5)
Units
VOS Input Offset Voltage 1.7 7 mV
TCVOS Input Offset Voltage Average Drift 5 µV/°C
IBInput Bias Current 10 250
400 nA
IOS Input Offset Current 5 50
150 nA
VCM Input Voltage Range −0.1 V
2.0 V
VSAT Saturation Voltage ISINK 1 mA 120 mV
IOOutput Sink Current VO 1.5V 5 23 mA
ISSupply Current LMV331 40 100 µA
LMV393
Both Comparators
70 140 µA
LMV339
All four Comparators
140 200 µA
Output Leakage Current .003 1µA
2.7V AC Electrical Characteristics
TJ = 25°C, V+ = 2.7V, RL = 5.1 kΩ, V = 0V.
Symbol Parameter Conditions Min
(Note 5)
Typ
(Note 4)
Max
(Note 5)
Units
tPHL Propagation Delay (High to Low) Input Overdrive = 10 mV 1000 ns
Input Overdrive = 100 mV 350 ns
tPLH Propagation Delay (Low to High) Input Overdrive = 10 mV 500 ns
Input Overdrive = 100 mV 400 ns
www.national.com 2
LMV331 Single / LMV393 Dual / LMV339 Quad
5V DC Electrical Characteristics
Unless otherwise specified, all limits guaranteed for TJ = 25°C, V+ = 5V, V = 0V. Boldface limits apply at the temperature extremes.
Symbol Parameter Conditions Min
(Note 5)
Typ
(Note 4)
max
(Note 5)
Units
VOS Input Offset Voltage 1.7 7
9mV
TCVOS Input Offset Voltage Average Drift 5 µV/°C
IBInput Bias Current 25 250
400 nA
IOS Input Offset Current 2 50
150 nA
VCM Input Voltage Range −0.1 V
4.2 V
AVVoltage Gain 20 50 V/mV
Vsat Saturation Voltage ISINK 4 mA 200 400
700 mV
IOOutput Sink Current VO 1.5V 84 10 mA
ISSupply Current LMV331 60 120
150 µA
LMV393
Both Comparators
100 200
250 µA
LMV339
All four Comparators
170 300
350 µA
Output Leakage Current .003 1µA
5V AC Electrical Characteristics
TJ = 25°C, V+ = 5V, RL = 5.1 kΩ, V = 0V.
Symbol Parameter Conditions Min
(Note 5)
Typ
(Note 4)
Max
(Note 5)
Units
tPHL Propagation Delay (High to Low) Input Overdrive = 10 mV 600 ns
Input Overdrive = 100 mV 200 ns
tPLH Propagation Delay (Low to High) Input Overdrive = 10 mV 450 ns
Input Overdrive = 100 mV 300 ns
Note 1: Absolute Maximum Ratings indicate limits beyond which damage to the device may occur. Operating Ratings indicate conditions for which the device is
intended to be functional, but specific performance is not guaranteed. For guaranteed specifications and the test conditions, see the Electrical characteristics.
Note 2: Human Body Model, applicable std. MIL-STD-883, Method 3015.7. Machine Model, applicable std. JESD22-A115-A (ESD MM std. of JEDEC)
Field-Induced Charge-Device Model, applicable std. JESD22-C101-C (ESD FICDM std. of JEDEC).
Note 3: The maximum power dissipation is a function of TJ(MAX), θJA. The maximum allowable power dissipation at any ambient temperature is
PD = (TJ(MAX) - TA)/θJA. All numbers apply for packages soldered directly onto a PC board.
Note 4: Typical values represent the most likely parametric norm as determined at the time of characterization. Actual typical values may vary over time and will
also depend on the application and configuration. The typical values are not tested and are not guaranteed on shipped production material.
Note 5: All limits are guaranteed by testing or statistical analysis.
3 www.national.com
LMV331 Single / LMV393 Dual / LMV339 Quad
Typical Performance Characteristics Unless otherwise specified, VS = +5V, single supply, TA = 25°C
Supply Current vs. Supply Voltage Output High (LMV331)
10008034
Supply Current vs. Supply Voltage Output Low (LMV331)
10008033
Output Voltage vs. Output Current at 5V Supply
10008037
Output Voltage vs. Output Current at 2.7 Supply
10008038
Input Bias Current vs. Supply Voltage
10008036
Response Time vs. Input Overdrives Negative Transition
10008042
www.national.com 4
LMV331 Single / LMV393 Dual / LMV339 Quad
Response Time for Input Overdrive Positive Transition
10008043
Response Time vs. Input Overdrives Negative Transition
10008041
Response Time for Input Overdrive Positive Transition
10008040
5 www.national.com
LMV331 Single / LMV393 Dual / LMV339 Quad
Simplified Schematic
10008047
www.national.com 6
LMV331 Single / LMV393 Dual / LMV339 Quad
Application Circuits
BASIC COMPARATOR
A basic comparator circuit is used for converting analog sig-
nals to a digital output. The LMV331/393/339 have an open-
collector output stage, which requires a pull-up resistor to a
positive supply voltage for the output to switch properly. When
the internal output transistor is off, the output voltage will be
pulled up to the external positive voltage.
The output pull-up resistor should be chosen high enough so
as to avoid excessive power dissipation yet low enough to
supply enough drive to switch whatever load circuitry is used
on the comparator output. On the LMV331/393/339 the pull-
up resistor should range between 1k to 10kΩ.
The comparator compares the input voltage (VIN) at the non-
inverting pin to the reference voltage (VREF) at the inverting
pin. If VIN is less than VREF, the output voltage (VO) is at the
saturation voltage. On the other hand, if VIN is greater than
VREF, the output voltage (VO) is at VCC.
10008026
10008004
FIGURE 1. Basic Comparator
COMPARATOR WITH HYSTERESIS
The basic comparator configuration may oscillate or produce
a noisy output if the applied differential input voltage is near
the comparator's offset voltage. This usually happens when
the input signal is moving very slowly across the comparator's
switching threshold. This problem can be prevented by the
addition of hysteresis or positive feedback.
INVERTING COMPARATOR WITH HYSTERESIS
The inverting comparator with hysteresis requires a three re-
sistor network that are referenced to the supply voltage VCC
of the comparator. When Vin at the inverting input is less than
Va, the voltage at the non-inverting node of the comparator
(Vin < Va), the output voltage is high (for simplicity assume
VO switches as high as VCC). The three network resistors can
be represented as R1//R3 in series with R2. The lower input
trip voltage Va1 is defined as
When Vin is greater than Va (Vin > Va), the output voltage is
low very close to ground. In this case the three network re-
sistors can be presented as R2//R3 in series with R1. The
upper trip voltage Va2 is defined as
The total hysteresis provided by the network is defined as
ΔVa = Va1 - Va2
To assure that the comparator will always switch fully to VCC
and not be pulled down by the load the resistors values should
be chosen as follow:
RPULL-UP << RLOAD
and R1 > RPULL-UP.
7 www.national.com
LMV331 Single / LMV393 Dual / LMV339 Quad
10008025
FIGURE 2. Inverting Comparator with Hysteresis
NON-INVERTING COMPARATOR WITH HYSTERESIS
Non inverting comparator with hysteresis requires a two re-
sistor network, and a voltage reference (Vref) at the inverting
input. When Vin is low, the output is also low. For the output
to switch from low to high, Vin must rise up to Vin1 where
Vin1 is calculated by
When Vin is high, the output is also high, to make the com-
parator switch back to it's low state, Vin must equal Vref before
VA will again equal Vref. Vin can be calculated by:
The hysteresis of this circuit is the difference between Vin1 and
Vin2.
ΔVin = VCCR1/R2
10008022
FIGURE 3.
www.national.com 8
LMV331 Single / LMV393 Dual / LMV339 Quad
10008023
FIGURE 4.
SQUAREWAVE OSCILLATOR
Comparators are ideal for oscillator applications. This square
wave generator uses the minimum number of components.
The output frequency is set by the RC time constant of the
capacitor C1 and the resistor in the negative feedback R4. The
maximum frequency is limited only by the large signal prop-
agation delay of the comparator in addition to any capacitive
loading at the output, which would degrade the output slew
rate.
10008008
10008024
FIGURE 5. Squarewave Oscillator
To analyze the circuit, assume that the output is initially high.
For this to be true, the voltage at the inverting input Vc has to
be less than the voltage at the non-inverting input Va. For Vc
to be low, the capacitor C1 has to be discharged and will
charge up through the negative feedback resistor R4. When
it has charged up to value equal to the voltage at the positive
input Va1, the comparator output will switch.
Va1 will be given by:
If:
R1 = R2 = R3
Then:
Va1 = 2VCC/3
When the output switches to ground, the value of Va is re-
duced by the hysteresis network to a value given by:
Va2 = VCC/3
Capacitor C1 must now discharge through R4 towards ground.
The output will return to its high state when the voltage across
the capacitor has discharged to a value equal to Va2.
For the circuit shown, the period for one cycle of oscillation
will be twice the time it takes for a single RC circuit to charge
up to one half of its final value. The time to charge the capac-
itor can be calculated from
Where Vmax is the max applied potential across the capacitor
= (2VCC/3)
and VC = Vmax/2 = VCC/3
One period will be given by:
1/freq = 2t
or calculating the exponential gives:
1/freq = 2(0.694) R4 C1
Resistors R3 and R4 must be at least two times larger than
R5 to insure that VO will go all the way up to VCC in the high
state. The frequency stability of this circuit should strictly be
a function of the external components.
FREE RUNNING MULTIVIBRATOR
A simple yet very stable oscillator that generates a clock for
slower digital systems can be obtained by using a resonator
as the feedback element. It is similar to the free running mul-
tivibrator, except that the positive feedback is obtained
through a quartz crystal. The circuit oscillates when the trans-
mission through the crystal is at a maximum, so the crystal in
its series-resonant mode.
The value of R1 and R2 are equal so that the comparator will
switch symmetrically about +VCC/2. The RC constant of R3
and C1 is set to be several times greater than the period of
the oscillating frequency, insuring a 50% duty cycle by main-
taining a DC voltage at the inverting input equal to the abso-
lute average of the output waveform.
When specifying the crystal, be sure to order series resonant
with the desired temperature coefficient
9 www.national.com
LMV331 Single / LMV393 Dual / LMV339 Quad
10008007
FIGURE 6. Crystal controlled Oscillator
PULSE GENERATOR WITH VARIABLE DUTY CYCLE
The pulse generator with variable duty cycle is just a minor
modification of the basic square wave generator. Providing a
separate charge and discharge path for capacitor C1gener-
ates a variable duty cycle. One path, through R2 and D2 will
charge the capacitor and set the pulse width (t1). The other
path, R1 and D1 will discharge the capacitor and set the time
between pulses (t2).
By varying resistor R1, the time between pulses of the gen-
erator can be changed without changing the pulse width.
Similarly, by varying R2, the pulse width will be altered without
affecting the time between pulses. Both controls will change
the frequency of the generator. The pulse width and time be-
tween pulses can be found from:
10008009
FIGURE 7. Pulse Generator
Solving these equations for t1 and t2
t1 =R4C1ln2
t2 =R5C1ln2
These terms will have a slight error due to the fact that Vmax
is not exactly equal to 2/3 VCC but is actually reduced by the
diode drop to:
POSITIVE PEAK DETECTOR
Positive peak detector is basically the comparator operated
as a unit gain follower with a large holding capacitor from the
output to ground. Additional transistor is added to the output
to provide a low impedance current source. When the output
of the comparator goes high, current is passed through the
transistor to charge up the capacitor. The only discharge path
will be the 1 M resistor shunting C1 and any load that is
connected to the output. The decay time can be altered simply
by changing the 1 M resistor. The output should be used
through a high impedance follower to a avoid loading the out-
put of the peak detector.
www.national.com 10
LMV331 Single / LMV393 Dual / LMV339 Quad
10008017
FIGURE 8. Positive Peak Detector
NEGATIVE PEAK DETECTOR
For the negative detector, the output transistor of the com-
parator acts as a low impedance current sink. The only dis-
charge path will be the 1 MΩ resistor and any load impedance
used. Decay time is changed by varying the 1 MΩ resistor
10008018
FIGURE 9. Negative Peak Detector
DRIVING CMOS AND TTL
The comparator's output is capable of driving CMOS and TTL
Logic circuits.
10008005
FIGURE 10. Driving CMOS
10008006
FIGURE 11. Driving TTL
AND GATES
The comparator can be used as three input AND gate. The
operation of the gate is as follow:
The resistor divider at the inverting input establishes a refer-
ence voltage at that node. The non-inverting input is the sum
of the voltages at the inputs divided by the voltage dividers.
The output will go high only when all three inputs are high,
casing the voltage at the non-inverting input to go above that
at inverting input. The circuit values shown work for a "0"
equal to ground and a "1" equal to 5V.
The resistor values can be altered if different logic levels are
desired. If more inputs are required, diodes are recommend-
ed to improve the voltage margin when all but one of the
inputs are high.
10008011
FIGURE 12. AND Gate
OR GATES
A three input OR gate is achieved from the basic AND gate
simply by increasing the resistor value connected from the
inverting input to Vcc, thereby reducing the reference voltage.
A logic "1" at any of the inputs will produce a logic "1" at the
output.
11 www.national.com
LMV331 Single / LMV393 Dual / LMV339 Quad
10008010
FIGURE 13. OR Gate
ORing THE OUTPUT
By the inherit nature of an open collector comparator, the out-
puts of several comparators can be tied together with a pull
up resistor to VCC. If one or more of the comparators outputs
goes low, the output VO will go low.
10008012
FIGURE 14. ORing the Outputs
10008013
FIGURE 15. Large Fan-In AND Gate
www.national.com 12
LMV331 Single / LMV393 Dual / LMV339 Quad
Connection Diagrams
5-Pin SC70/SOT23
10008001
Top View
8-Pin SOIC/MSOP
10008002
Top View
14-Pin SOIC/TSSOP
10008003
Top View
Ordering Information
Package Temperature Range Packaging
Marking
Transport Media NSC
Drawing
Industrial
−40°C to +85°C
5-Pin SC70 LMV331M7 C13 1k Units Tape and Reel MAA05A
LMV331M7X C13 3k Units Tape and Reel
5-Pin SOT23 LMV331M5 C12 1k Units Tape and Reel MF05A
LMV331M5X C12 3k Units Tape and Reel
8-Pin SOIC LMV393M LMV393M Rails M08A
LMV393MX LMV393M 2.5k Units Tape and Reel
8-Pin MSOP LMV393MM V393 1k Units Tape and Reel MUA08A
LMV393MMX V393 3.5k Units Tape and Reel
14-Pin SOIC LMV339M LMV339M Rails M14A
LMV339MX LMV339M 2.5k Units Tape and Reel
14-Pin TSSOP LMV339MT LMV339MT Rails MTC14
LMV339MTX LMV339MT 2.5k Units Tape and Reel
13 www.national.com
LMV331 Single / LMV393 Dual / LMV339 Quad
SC70-5 Tape and Reel Specification
10008044
SOT-23-5 Tape and Reel
Specification
TAPE FORMAT
Tape Section # Cavities Cavity Status Cover Tape Status
Leader 0 (min) Empty Sealed
(Start End) 75 (min) Empty Sealed
Carrier 3000 Filled Sealed
250 Filled Sealed
Trailer 125 (min) Empty Sealed
(Hub End) 0 (min) Empty Sealed
www.national.com 14
LMV331 Single / LMV393 Dual / LMV339 Quad
TAPE DIMENSIONS
10008045
8 mm 0.130 0.124 0.130 0.126 0.138 ±0.002 0.055 ±0.004 0.157 0.315 ±0.012
(3.3) (3.15) (3.3) (3.2) (3.5 ±0.05) (1.4 ±0.11) (4) (8 ±0.3)
Tape Size DIM A DIM Ao DIM B DIM Bo DIM F DIM Ko DIM P1 DIM W
15 www.national.com
LMV331 Single / LMV393 Dual / LMV339 Quad
REEL DIMENSIONS
10008046
8 mm 7.00 0.059 0.512 0.795 2.165 0.331 + 0.059/−0.000 0.567 W1+ 0.078/−0.039
330.00 1.50 13.00 20.20 55.00 8.40 + 1.50/−0.00 14.40 W1 + 2.00/−1.00
Tape Size A B C D N W1 W2 W3
www.national.com 16
LMV331 Single / LMV393 Dual / LMV339 Quad
Physical Dimensions inches (millimeters) unless otherwise noted
5-Pin SC70
NS Package Number MAA05A
5-Pin SOT23
NS Package Number MF05A
17 www.national.com
LMV331 Single / LMV393 Dual / LMV339 Quad
8-Pin SOIC
NS Package Number M08A
8-Pin MSOP
NS Package Number MUA08A
www.national.com 18
LMV331 Single / LMV393 Dual / LMV339 Quad
14-Pin SOIC
NS Package Number M14A
14-Pin TSSOP
NS Package Number MTC14
19 www.national.com
LMV331 Single / LMV393 Dual / LMV339 Quad
Notes
LMV331 Single / LMV393 Dual / LMV339 Quad General Purpose, Low Voltage, Tiny Pack
Comparators
THE CONTENTS OF THIS DOCUMENT ARE PROVIDED IN CONNECTION WITH NATIONAL SEMICONDUCTOR CORPORATION
(“NATIONAL”) PRODUCTS. NATIONAL MAKES NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY
OR COMPLETENESS OF THE CONTENTS OF THIS PUBLICATION AND RESERVES THE RIGHT TO MAKE CHANGES TO
SPECIFICATIONS AND PRODUCT DESCRIPTIONS AT ANY TIME WITHOUT NOTICE. NO LICENSE, WHETHER EXPRESS,
IMPLIED, ARISING BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS
DOCUMENT.
TESTING AND OTHER QUALITY CONTROLS ARE USED TO THE EXTENT NATIONAL DEEMS NECESSARY TO SUPPORT
NATIONAL’S PRODUCT WARRANTY. EXCEPT WHERE MANDATED BY GOVERNMENT REQUIREMENTS, TESTING OF ALL
PARAMETERS OF EACH PRODUCT IS NOT NECESSARILY PERFORMED. NATIONAL ASSUMES NO LIABILITY FOR
APPLICATIONS ASSISTANCE OR BUYER PRODUCT DESIGN. BUYERS ARE RESPONSIBLE FOR THEIR PRODUCTS AND
APPLICATIONS USING NATIONAL COMPONENTS. PRIOR TO USING OR DISTRIBUTING ANY PRODUCTS THAT INCLUDE
NATIONAL COMPONENTS, BUYERS SHOULD PROVIDE ADEQUATE DESIGN, TESTING AND OPERATING SAFEGUARDS.
EXCEPT AS PROVIDED IN NATIONAL’S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, NATIONAL ASSUMES NO
LIABILITY WHATSOEVER, AND NATIONAL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY RELATING TO THE SALE
AND/OR USE OF NATIONAL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR
PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY
RIGHT.
LIFE SUPPORT POLICY
NATIONAL’S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR
SYSTEMS WITHOUT THE EXPRESS PRIOR WRITTEN APPROVAL OF THE CHIEF EXECUTIVE OFFICER AND GENERAL
COUNSEL OF NATIONAL SEMICONDUCTOR CORPORATION. As used herein:
Life support devices or systems are devices which (a) are intended for surgical implant into the body, or (b) support or sustain life and
whose failure to perform when properly used in accordance with instructions for use provided in the labeling can be reasonably expected
to result in a significant injury to the user. A critical component is any component in a life support device or system whose failure to perform
can be reasonably expected to cause the failure of the life support device or system or to affect its safety or effectiveness.
National Semiconductor and the National Semiconductor logo are registered trademarks of National Semiconductor Corporation. All other
brand or product names may be trademarks or registered trademarks of their respective holders.
Copyright© 2007 National Semiconductor Corporation
For the most current product information visit us at www.national.com
National Semiconductor
Americas Customer
Support Center
Email:
new.feedback@nsc.com
Tel: 1-800-272-9959
National Semiconductor Europe
Customer Support Center
Fax: +49 (0) 180-530-85-86
Email: europe.support@nsc.com
Deutsch Tel: +49 (0) 69 9508 6208
English Tel: +49 (0) 870 24 0 2171
Français Tel: +33 (0) 1 41 91 8790
National Semiconductor Asia
Pacific Customer Support Center
Email: ap.support@nsc.com
National Semiconductor Japan
Customer Support Center
Fax: 81-3-5639-7507
Email: jpn.feedback@nsc.com
Tel: 81-3-5639-7560
www.national.com