• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Electrical Engineering News and Products

Electronics Engineering Resources, Articles, Forums, Tear Down Videos and Technical Electronics How-To's

  • Products / Components
    • Analog ICs
    • Battery Power
    • Connectors
    • Microcontrollers
    • Power Electronics
    • Sensors
    • Test and Measurement
    • Wire / Cable
  • Applications
    • 5G
    • Automotive/Transportation
    • EV Engineering
    • Industrial
    • IoT
    • Medical
    • Telecommunications
    • Wearables
    • Wireless
  • Learn
    • eBooks / Handbooks
    • EE Training Days
    • Tutorials
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • White Papers
    • Educational Assets
    • Design Guide Library
    • Digital Issues
    • Engineering Diversity & Inclusion
    • LEAP Awards
    • Podcasts
    • DesignFast
  • Videos
    • EE Videos and Interviews
    • Teardown Videos
  • EE Forums
    • EDABoard.com
    • Electro-Tech-Online.com
  • Bill’s Blogs
  • Advertise
  • Subscribe

FAQ: Should I use an op amp as a comparator?

November 21, 2016 By Janet Heath

Perhaps you have a quad pack of op amps, are using only three, and need a single comparator. It might be tempting to use the remaining op-amp as a comparator, after all, both have high gain, low offset, and high common-mode rejection. But it’s easier said than done, because a comparator and an op-amp, although similar, are different devices. It is possible to create a comparator out of an op amp, but if your design must be robust, there’s a good amount of checking and experimentation to make sure your quad pack of op amps will have what it takes to make a sufficient comparator.

Comparators tell us which of its two inputs is at a higher potential through the comparator’s logic output, which can be TTL or CMOS compatible. Comparators make a rapid transition between the maximum and minimum voltage rails in output to indicate the status of the inputs. Op amps are not characterized for the purpose and do not make rapid transitions due to the need to recover from saturation. Op amps are designed to drive small loads, fundamentally operate as closed-loop systems with feedback, and are not meant to be driven to saturation. Comparators are designed to operate as open-loop systems, operate at high speed, and rapidly drive output as high or low logic even when comparators are overdriven.

Op amps, when used as comparators, cannot provide high-speed response like a comparator.  Furthermore, since few datasheets will state how long it will take to come out of saturation, you may need to experiment with the op amp to find out how long it takes. Additionally, the stability of an op amp when used as a comparator is in question. The op amp-as-comparator will have very high-open-loop gain, thus a little bit of positive feedback during transitions can push the op amp into oscillating. That little bit of positive feedback may be due to stray capacitance. You can minimize stray capacitance with careful layout as one option. At this point, op amps may not seem attractive when used as a comparator due to the considerations.

Figure 1: An op amp, if used as a comparator, can saturate (sometimes by mere millivolts). It takes longer for the op amp to desaturate and respond, resulting in a time delay, tD, with respect to a comparator’s response time (dashed line). Source: J. Heath.

Having said all of this, if the caveats above simply don’t matter or you are willing to do the experimentation, you can use an op amp as a comparator with due diligence to operating parameters as they affect the overall outcome. If speed is not an issue (as the op amp hesitates on output while desaturating), then stability will still need to be investigated. At this point, you may find that it’s not worth it to try and use a left or op amp as a comparator. If the op amp-as-comparator’s function is not critical, you can get away with using the op amp but may want to check that the slew rate is adequate (rule of thumb .5V/µs or faster for modern op amps.) Older op amps (pre-2000) may go into phase inversion.[i] Clamping output with a Zener diode feedback circuit can help to prevent saturation on output.

For non-critical designs, that fourth op amp in the quad pack may be sufficient. Otherwise, it might not be worth the time or the effort to end up with a headache that can be solved with a proper comparator.

[i] Bryant, James. “Using Op Amps as Comparators.” Analog Devices Application Note – AN-849 (2011): 1-8. Web. 20 Nov. 2016.

The post FAQ: Should I use an op amp as a comparator? appeared first on Analog IC Tips.

You Might Also Like

Filed Under: Amplifiers, Analog IC Tips, Analog ICs, Featured, Industry Experts Tagged With: basics, FAQ

Primary Sidebar

EE Engineering Training Days

engineering

Featured Contributions

zonal architecture

Addressing zonal architecture challenges in the automotive industry

zonal architecture

Addressing zonal architecture challenges in the automotive industry

A2L refrigerants drive thermal drift concerns in HVAC systems

Why outdoor charging demands specialized battery connectors

How Li-ion batteries are powering the shift in off-highway equipment

More Featured Contributions

EE Tech Toolbox

“ee
Tech Toolbox: 5G Technology
This Tech Toolbox covers the basics of 5G technology plus a story about how engineers designed and built a prototype DSL router mostly from old cellphone parts. Download this first 5G/wired/wireless communications Tech Toolbox to learn more!

EE Learning Center

EE Learning Center
“ee
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.
“bills
contribute

R&D World Podcasts

R&D 100 Episode 10
See More >

Sponsored Content

Designing for Serviceability: The Role of Interconnects in HVAC Maintenance

From Control Boards to Comfort: How Signal Integrity Drives HVAC Innovation

Built to Withstand: Sealing and Thermal Protection in HVAC Sub-Systems

Revolutionizing Manufacturing with Smart Factories

Smarter HVAC Starts at the Sub-System Level

Empowering aerospace E/E design and innovation through Siemens Xcelerator and Capital in the Cloud

More Sponsored Content >>

RSS Current EDABoard.com discussions

  • Step Up Push Pull Transformer design / construction
  • current distribution on resonant mode in anapole resoantor question
  • Snooping Around is All
  • System for measuring the amount of Joules delivered from a capacitor discharge.
  • MoM capacitor at 36 GHz

RSS Current Electro-Tech-Online.com Discussions

  • More fun with ws2812 this time XC8 and CLC
  • I Wanna build a robot
  • Pickit 5
  • Pic18f25q10 osccon1 settings swordfish basic
  • The Analog Gods Hate Me
Search Millions of Parts from Thousands of Suppliers.

Search Now!
design fast globle

Footer

EE World Online

EE WORLD ONLINE NETWORK

  • 5G Technology World
  • Analog IC Tips
  • Battery Power Tips
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • Electro-Tech-Online Forums
  • Engineer's Garage
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips

EE WORLD ONLINE

  • Subscribe to our newsletter
  • Teardown Videos
  • Advertise with us
  • Contact us
  • About Us

Copyright © 2025 · WTWH Media LLC and its licensors. All rights reserved.
The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media.

Privacy Policy