• 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
    • Interface & Isolation
    • MEMS & Sensors
  • Applications
  • Video
    • TI Video Channel
  • EE Forums
    • EDABoard.com
    • Electro-Tech-Online.com
  • EE Resources
    • DesignFast
    • eBooks / Tech Tips
    • FAQs
    • LEAP Awards
    • Podcasts
    • Webinars
    • White Papers
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide

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.

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

Primary Sidebar

Subscribe to weekly industry news, new product innovations and more.

Subscribe today

EE Training Center Classrooms

EE Classrooms

A frequency you can count on There are few constants in life, but what few there are might include death, taxes, and a U.S. grid frequency that doesn’t vary by more than ±0.5 Hz. However, the certainty of the grid frequency is coming into question, thanks to the rising percentage of renewable energy sources that…

More from the archive

RSS Current EDABoard.com discussions

  • How do you find the angle made by two isosceles triangles in a kite?
  • Thermal pad construction on pcb
  • FPGA LVDS with separate clock
  • Help understanding 915MHz transciever pcb layout
  • Ansys Electronic Desktop (HFSS) file opening failed????

RSS Current Electro-Tech-Online.com Discussions

  • Flickering (candle) LED to trigger 555
  • Identify a circuit.
  • Microcontrollable adjustable and switchable constant current source for driving LED's
  • Useful Handbook for Making Low Level Measurements
  • CRYPTOOOOO, but wait i am no terrorist

Design Fast

Component Selection Made Simple.

Try it Today
design fast globle

Footer

Analog IC Tips

EE WORLD ONLINE NETWORK

  • EE World Online
  • EDA Board Forums
  • Electro Tech Online Forums
  • DesignFast
  • Connector Tips
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • Wire and Cable Tips
  • 5G Technology World

ANALOG IC TIPS

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us
Follow us on Twitter Add us on Facebook Follow us on YouTube Follow us on Instagram

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