LM393 Dual Comparator vs. LM358 Dual Op-Amp: Are they interchangeable?

Sophie

Published: 03 December 2021 | Last Updated: 03 December 2021

11818

LM393DR2G

LM393DR2G

ON Semiconductor

Surface Mount Cut Tape (CT) 16mA mA 1.3 μs μs Linear Comparators 106.02dB dB 250nA pA 2006 1mA μA 5mV mV

Purchase Guide

Surface Mount Cut Tape (CT) 16mA mA 1.3 μs μs Linear Comparators 106.02dB dB 250nA pA 2006 1mA μA 5mV mV

The LM358 Op-Amp and the LM393 Comparator are two common jellybean components that are characterized by their ease of use and availability. Outwardly, the LM358 and LM393 are very similar–they come in the same package and with the same pinout, but there are fundamental differences to both chips, which we will be taking a look at in this article. Furthermore, Huge range of Semiconductors, Capacitors, Resistors and IcS in stock. Welcome RFQ.

In this video, the author made a powerful 12v Audio Amplifier using LM358 IC.

Powerful 12v Audio Amplifier using LM358 IC

LM393 vs. LM358: Overview

LM393 Overview

The LM393 is a Dual in package comparator IC, meaning the IC has two comparators inside a single 8-pin package. The LM393 IC can be considered as the equivalent comparator version of the most popular LM358 Op-Amp. While any Op-Amp can be made to work as a voltage comparator, the LM393 proves itself to be advantages by providing an open collector output making it suitable to drive loads.

The LM393 series are dual independent precision voltage comparators capable of single or split supply operation. These devices are designed to permit a common mode range−to−ground level with single supply operation. Input offset voltage specifications as low as 2.0 mV make this device an excellent selection for many applications in consumer, automotive, and industrial electronics.


LM358 Overview

LM358 is a dual op-amp IC integrated with two op-amps powered by a common power supply. It can be considered as one half of LM324 Quad op-amp which contains four op-amps with common power supply. The LM358 series consists of two independent, high gain, internally frequency compensated operational amplifiers which were designed specifically to operate from a single power supply over a wide range of voltages.

Utilizing the circuit designs perfected for Quad Operational Amplifiers, these dual operational amplifiers feature low power drain, a common mode input voltage range extending to ground/VEE, and single supply or split supply operation. The LM358 series is equivalent to one−half of an LM324. These amplifiers have several distinct advantages over standard operational amplifier types in single supply applications.


LM393 vs. LM358: Pinout

Pinout.png

LM393 vs. LM358: Pinout


LM393 vs. LM358: Specifications

                               Specification                     LM358                              LM393
Supply Voltage32V, +/-16V36V, +/-18V
Differential Input Voltage32V36V
Input Offset Voltage3mV max.5mV max.
Input Bias Current100nA max.250nA max.
Input Common Mode Range0V to V+ - 2V0V to V+ - 1.5V
Large Signal Voltage Gain100V/mV typ.200V/mV typ.
Bandwidth1MHzNot specified

Although the input specifications seem similar, it is clear that the LM358 Op-Amp has a lower bias current and offset voltage, since it is designed to be used as an amplifier where these parameters matter. On the other hand, the LM393 has slightly worse input bias and offset performance, because for a comparator these parameters are not usually critical, since it is designed to be used only to compare voltages and not amplify them.

This is also reflected in the large signal voltage gain. The op-amp has a smaller gain, whereas the comparator's gain is much higher to make the output transition as fast as possible. The bandwidth of the comparator is also not specified, since it is not compensated.


LM393 vs. LM358: Features

LM393 Features

● Wide Single−Supply Range: 2.0 Vdc to 36 Vdc

● Split−Supply Range: ±1.0 Vdc to ±18 Vdc

● Very Low Current Drain Independent of Supply Voltage: 0.4 mA

● Low Input Bias Current: 25 nA

● Low Input Offset Current: 5.0 nA

● Low Input Offset Voltage: 5.0 mV (max)

● Input Common Mode Range to Ground Level

● Differential Input Voltage Range Equal to Power Supply Voltage

● Output Voltage Compatible with DTL, ECL, TTL, MOS, and CMOS Logic Levels

● ESD Clamps on the Inputs Increase the Ruggedness of the Device without Affecting Performance

● NCV Prefix for Automotive and Other Applications Requiring Unique Site and Control Change Requirements;                     AEC−Q100 Qualified and PPAP Capable

● These Devices are Pb−Free, Halogen Free/BFR Free and are RoHS Compliant


LM358 Features

● Short Circuit Protected Outputs

● True Differential Input Stage

● Single Supply Operation: 3.0 V to 32 V

● Low Input Bias Currents

● Internally Compensated

● Common Mode Range Extends to Negative Supply

● Single and Split Supply Operation

● ESD Clamps on the Inputs Increase Ruggedness of the Device without Affecting Operation

● Pb−Free Package May be Available. The G−Suffix Denotes a Pb−Free Lead Finish


LM393 vs. LM358: Internal Circuitry

LM393 Comparator Internal Circuit.png

LM393 Comparator Internal Circuit


LM358 Op-Amp Internal Circuit.png

LM358 Op-Amp Internal Circuit


At first glance, the internal circuits of the LM358 and the LM393 look similar, but taking a closer look we can find the differences that explain the different specifications mentioned above.

The input stages are similar to "Darlington-connected" PNPs, which explains the ground sensing capability of both the LM358 and LM393. The differential stages run at different currents, however – the LM393 runs at a higher current to increase the gain and output switching speed. Since the LM358 is a linear amplifier, this is not so important.

The largest difference is the output stages. The output stage of the LM393 is much simpler than that of the LM358 because it is designed to switch the output between the rails as fast as possible, spending the smallest amount of time between the rails. The output stage is also open-collector. The LM358 has a fully linear output stage, since it is an op-amp and designed to be used as a linear amplifier, where the output scales linearly with the input.


Parts with Similar Specs

The three parts on the right have similar specifications to ON Semiconductor & LM393DR2G.

LM393 vs. LM358: Applications

LM393 Applications

● Voltage Comparator Circuits

● Can drive Relay, Lamp, Motor Etc

● Peak Voltage Detector

● High Voltage Protection/Warning

● Oscillator Circuits

● Zero Crossing Detector (Single Supply)

● Zero Crossing Detector (Split Supply)

● Free−Running Square−Wave Oscillator

● Time Delay Generator

● Comparator with Hysteresis


LM358 Applications

● Transducer Amplifiers

● Conventional Op-amp Circuits

● Integrator, Differentiator, Summer, Adder, Voltage follower, etc.,

● DC gain blocks, Digital multimeters, Oscilloscopes

● Comparators (Loop control & regulation)

● Active Filters

● General Signal Conditioning and Amplification

● 4- to 20-mA Current Loop Transmitters


LM393 vs. LM358: Package

SOIC−8 Package.png

LM393/LM358 SOIC−8 Package 


Major Differences Between LM358 and LM393

                                               LM358                                              LM393
Dual operational amplifierDual comparator
Relatively better input specificationsRelatively worse input specifications
Output linear with inputNon-linear output
Stable with negative feedbackStable with positive feedback


Conclusion

The LM358 and LM393 might seem outwardly similar, but the LM358 is an operational amplifier with linear output, and the LM393 is a comparator with a digital output, and they cannot be interchanged.


Frequently Asked Questions

The pin functions of LM393 and LM358 are the same, I want to know whether they can be directly interchanged?

Generally not directly interchangeable. Although the Op Amp can be used as a voltage comparator in some circuits that require less precision, the Op Amp cannot be replaced by a comparator because there is no amplification function; When LM358 is replaced with LM393, the original 393 output terminal should be removed, pull-resistance comparator; Although the symbols of the comparator and the Op Amp are the same on the circuit diagram, the two devices do have very big differences and generally cannot be interchanged.

What is the difference between LM258 and LM393?

One is an operational amplifier and the other is a voltage comparator. Of course, LM258 can also be used as a voltage comparator. LM393 must be used as a comparator output terminal to add a pull-up resistor, using LM258 as a comparator can eliminate the need for an external pull-up resistor.

Can LM324 and LM358 be replaced?

358 is an 8-pin dual op amp, and 324 is a 14-pin quad op amp. Their parameters are the same. It can be replaced, but the circuit board needs to be changed. If it is used as a comparator in the inverter, it is no problem. Personally, I think it is better to use 358, because it is easier to design the circuit board. If the op amp is used as an oscillator, it is recommended to replace it with TL082 and 084, which are high-speed op amps.

What are the advantages of LM258 compared to LM358?

LM258 is an industrial grade, and LM358 is a commercial grade. LM258 is a grade higher than LM358, and LM258 parameters are better than LM358. One type of chip with good performance is 258.
LM393DR2G

ON Semiconductor

In Stock: 29198

United States

China

Canada

Japan

Russia

Germany

United Kingdom

Singapore

Italy

Hong Kong(China)

Taiwan(China)

France

Korea

Mexico

Netherlands

Malaysia

Austria

Spain

Switzerland

Poland

Thailand

Vietnam

India

United Arab Emirates

Afghanistan

Åland Islands

Albania

Algeria

American Samoa

Andorra

Angola

Anguilla

Antigua & Barbuda

Argentina

Armenia

Aruba

Australia

Azerbaijan

Bahamas

Bahrain

Bangladesh

Barbados

Belarus

Belgium

Belize

Benin

Bermuda

Bhutan

Bolivia

Bonaire, Sint Eustatius and Saba

Bosnia & Herzegovina

Botswana

Brazil

British Indian Ocean Territory

British Virgin Islands

Brunei

Bulgaria

Burkina Faso

Burundi

Cabo Verde

Cambodia

Cameroon

Cayman Islands

Central African Republic

Chad

Chile

Christmas Island

Cocos (Keeling) Islands

Colombia

Comoros

Congo

Congo (DRC)

Cook Islands

Costa Rica

Côte d’Ivoire

Croatia

Cuba

Curaçao

Cyprus

Czechia

Denmark

Djibouti

Dominica

Dominican Republic

Ecuador

Egypt

El Salvador

Equatorial Guinea

Eritrea

Estonia

Eswatini

Ethiopia

Falkland Islands

Faroe Islands

Fiji

Finland

French Guiana

French Polynesia

Gabon

Gambia

Georgia

Ghana

Gibraltar

Greece

Greenland

Grenada

Guadeloupe

Guam

Guatemala

Guernsey

Guinea

Guinea-Bissau

Guyana

Haiti

Honduras

Hungary

Iceland

Indonesia

Iran

Iraq

Ireland

Isle of Man

Israel

Jamaica

Jersey

Jordan

Kazakhstan

Kenya

Kiribati

Kosovo

Kuwait

Kyrgyzstan

Laos

Latvia

Lebanon

Lesotho

Liberia

Libya

Liechtenstein

Lithuania

Luxembourg

Macao(China)

Madagascar

Malawi

Maldives

Mali

Malta

Marshall Islands

Martinique

Mauritania

Mauritius

Mayotte

Micronesia

Moldova

Monaco

Mongolia

Montenegro

Montserrat

Morocco

Mozambique

Myanmar

Namibia

Nauru

Nepal

New Caledonia

New Zealand

Nicaragua

Niger

Nigeria

Niue

Norfolk Island

North Korea

North Macedonia

Northern Mariana Islands

Norway

Oman

Pakistan

Palau

Palestinian Authority

Panama

Papua New Guinea

Paraguay

Peru

Philippines

Pitcairn Islands

Portugal

Puerto Rico

Qatar

Réunion

Romania

Rwanda

Samoa

San Marino

São Tomé & Príncipe

Saudi Arabia

Senegal

Serbia

Seychelles

Sierra Leone

Sint Maarten

Slovakia

Slovenia

Solomon Islands

Somalia

South Africa

South Sudan

Sri Lanka

St Helena, Ascension, Tristan da Cunha

St. Barthélemy

St. Kitts & Nevis

St. Lucia

St. Martin

St. Pierre & Miquelon

St. Vincent & Grenadines

Sudan

Suriname

Svalbard & Jan Mayen

Sweden

Syria

Tajikistan

Tanzania

Timor-Leste

Togo

Tokelau

Tonga

Trinidad & Tobago

Tunisia

Turkey

Turkmenistan

Turks & Caicos Islands

Tuvalu

U.S. Outlying Islands

U.S. Virgin Islands

Uganda

Ukraine

Uruguay

Uzbekistan

Vanuatu

Vatican City

Venezuela

Wallis & Futuna

Yemen

Zambia

Zimbabwe

Related Parts More