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

Analog IC Tips

Analog IC Design, Products, Tools Layout

  • Products
    • Amplifiers
    • Clocks & Timing
    • Data Converters
    • EMI/RFI
    • Interface & Isolation
    • MEMS & Sensors
  • Applications
    • Audio
    • Automotive/Transportation
    • Industrial
    • IoT
    • Medical
    • Telecommunications
    • Wireless
  • Learn
    • eBooks / Tech Tips
    • FAQs
    • EE Learning Center
    • EE Training Days
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Design Guide Library
    • Digital Issues
    • Engineering Diversity & Inclusion
    • LEAP Awards
    • Podcasts
    • White Papers
  • Video
    • EE Videos
    • Teardown Videos
  • EE Forums
    • EDABoard.com
    • Electro-Tech-Online.com
  • Engineering Training Days
  • Advertise
  • Subscribe

Should I use an op amp as a comparator?

November 21, 2016 By Janet Heath 1 Comment

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.

op-amp-as-a-comparator-fig-1
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.

You may also like:


  • 16-V CMOS Analog comparators boast 5 µA ave. current/comparator

  • CSP comparator operates from 1.8 V

  • What is an op amp?

Filed Under: Amplifiers, Analog ICs, FAQ, Industry Experts, Products Tagged With: basics, FAQ

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Featured Contributions

Design a circuit for ultra-low power sensor applications

Active baluns bridge the microwave and digital worlds

Managing design complexity and global collaboration with IP-centric design

PCB design best practices for ECAD/MCAD collaboration

Open RAN networks pass the time

More Featured Contributions

EE TECH TOOLBOX

“ee
Tech Toolbox: Connectivity
AI and high-performance computing demand interconnects that can handle massive data throughput without bottlenecks. This Tech Toolbox explores the connector technologies enabling ML systems, from high-speed board-to-board and PCIe interfaces to in-package optical interconnects and twin-axial assemblies.

EE LEARNING CENTER

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

EE ENGINEERING TRAINING DAYS

engineering

RSS Current EDABoard.com discussions

  • Rolling Code Tx-Rx nano module
  • Spot welder - parallel connection of MOFTET
  • Bandgap reference low power design doubts
  • Need clarification on SWDIO/SWCLK length‑matching and “shielding” for STM32WBA5MMG debug connector
  • Question recap electronics

RSS Current Electro-Tech-Online.com Discussions

  • analog logic of shmidt trigger bjt circuit
  • Unable To Get Advertised Op-Amp Slew Rate
  • Micro mouse
  • Best practices for accurate LiPo battery monitoring on ESP32?
  • Flip Flop for My Mirrors
“bills

Footer

Analog IC Tips

EE WORLD ONLINE NETWORK

  • 5G Technology World
  • EE World Online
  • Engineers Garage
  • Battery Power Tips
  • Connector Tips
  • EDA Board Forums
  • Electro Tech Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips

ANALOG IC TIPS

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us

Copyright © 2026 · 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