Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #488992 > unrolled thread

Use an opamp as a comparator or not?

Started byPiotr Wyderski <peter.pan@neverland.mil>
First post2017-12-22 00:07 +0100
Last post2017-12-22 15:14 +0100
Articles 11 — 5 participants

Back to article view | Back to sci.electronics.design


Contents

  Use an opamp as a comparator or not? Piotr Wyderski <peter.pan@neverland.mil> - 2017-12-22 00:07 +0100
    Re: Use an opamp as a comparator or not? bill.sloman@ieee.org - 2017-12-21 18:12 -0800
      Re: Use an opamp as a comparator or not? Piotr Wyderski <peter.pan@neverland.mil> - 2017-12-22 07:48 +0100
        Re: Use an opamp as a comparator or not? "Tim Williams" <tiwill@seventransistorlabs.com> - 2017-12-22 02:14 -0600
          Re: Use an opamp as a comparator or not? Piotr Wyderski <peter.pan@neverland.mil> - 2017-12-22 11:15 +0100
            Re: Use an opamp as a comparator or not? "Tim Williams" <tiwill@seventransistorlabs.com> - 2017-12-22 08:25 -0600
              Re: Use an opamp as a comparator or not? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-12-22 09:45 -0500
              Re: Use an opamp as a comparator or not? Piotr Wyderski <peter.pan@neverland.mil> - 2017-12-22 16:37 +0100
        Re: Use an opamp as a comparator or not? John Larkin <jjlarkin@highlandtechnology.com> - 2017-12-22 09:04 -0800
    Re: Use an opamp as a comparator or not? bill.sloman@ieee.org - 2017-12-22 05:51 -0800
      Re: Use an opamp as a comparator or not? Piotr Wyderski <peter.pan@neverland.mil> - 2017-12-22 15:14 +0100

#488992 — Use an opamp as a comparator or not?

FromPiotr Wyderski <peter.pan@neverland.mil>
Date2017-12-22 00:07 +0100
SubjectUse an opamp as a comparator or not?
Message-ID<p1heri$rvb$1@node1.news.atman.pl>
I need to amplify two signals (BW<=1MHz) 20 times, so there will be
an opamp with GBW=24MHz (or 60MHz, instantiated most likely by MCP66x), 
as the
price is not that much higher). Single supply, 5V. One of the amplified
signals will be then window-compared, with ~400mV hysteresis. The
question is whether the opamp should be a dual version (say, MCP662), 
accompanied by a dedicated dual comparator chip (both in SO08), or just 
use a quad opamp in SO14, which is tempting, without the comparator 
chip. Is the latter option asking for trouble?

	Best regards, Piotr

[toc] | [next] | [standalone]


#489011

Frombill.sloman@ieee.org
Date2017-12-21 18:12 -0800
Message-ID<b55a2a45-f689-444e-aa6e-d797a159c377@googlegroups.com>
In reply to#488992
On Friday, December 22, 2017 at 10:07:35 AM UTC+11, Piotr Wyderski wrote:
> I need to amplify two signals (BW<=1MHz) 20 times, so there will be
> an opamp with GBW=24MHz (or 60MHz, instantiated most likely by MCP66x), 
> as the
> price is not that much higher). Single supply, 5V. One of the amplified
> signals will be then window-compared, with ~400mV hysteresis. The
> question is whether the opamp should be a dual version (say, MCP662), 
> accompanied by a dedicated dual comparator chip (both in SO08), or just 
> use a quad opamp in SO14, which is tempting, without the comparator 
> chip. Is the latter option asking for trouble?

Comparators recover a lot faster from being over-driven than do amplifiers. If I remember rightly, the compensation capacitor gets charged up and can take ages to discharge.

It's a subject that comes up from time to time so a google search on "amplifiers as comparators" would have been worth the effort.

http://www.analog.com/en/analog-dialogue/articles/amplifiers-as-comparators.html

-- 
Bill Sloman, Sydney

[toc] | [prev] | [next] | [standalone]


#489023

FromPiotr Wyderski <peter.pan@neverland.mil>
Date2017-12-22 07:48 +0100
Message-ID<p1i9r2$kn5$1@node1.news.atman.pl>
In reply to#489011
bill.sloman@ieee.org wrote:

> It's a subject that comes up from time to time so a google search on "amplifiers as comparators" would have been worth the effort.
> 
> http://www.analog.com/en/analog-dialogue/articles/amplifiers-as-comparators.html

Yes, there is also a good TI analysis on the subject. The problem
is that there are two opposing camps, one says "never do that!" and
the other "actually, it's not that bad". The opamp will be fast
for other reasons, so I would like to know whether the 60x speed
margin is sufficient for reliable operation or not.

	Best regards, Piotr

[toc] | [prev] | [next] | [standalone]


#489026

From"Tim Williams" <tiwill@seventransistorlabs.com>
Date2017-12-22 02:14 -0600
Message-ID<p1ieu2$ogn$1@dont-email.me>
In reply to#489023
"Piotr Wyderski" <peter.pan@neverland.mil> wrote in message 
news:p1i9r2$kn5$1@node1.news.atman.pl...
> Yes, there is also a good TI analysis on the subject. The problem
> is that there are two opposing camps, one says "never do that!" and
> the other "actually, it's not that bad". The opamp will be fast
> for other reasons, so I would like to know whether the 60x speed
> margin is sufficient for reliable operation or not.

Well then tell us. You mentioned a hysteresis band, but not how fast it 
needs to reach its decision.  10ns?  10us?  That's what matters. :-)

Tim

-- 
Seven Transistor Labs, LLC
Electrical Engineering Consultation and Contract Design
Website: https://www.seventransistorlabs.com/ 

[toc] | [prev] | [next] | [standalone]


#489031

FromPiotr Wyderski <peter.pan@neverland.mil>
Date2017-12-22 11:15 +0100
Message-ID<p1ilvh$cch$1@node2.news.atman.pl>
In reply to#489026
Tim Williams wrote:

> Well then tell us. You mentioned a hysteresis band, but not how fast it 
> needs to reach its decision.  10ns?  10us?  That's what matters. :-)

<=2us. The hysteresis can be lowered to 200mV. OTOH, the comparator
can have open collector outpus, which saves me 2 diodes and the area
advantage of SO14 diminishes.

	Best regards, Piotr

[toc] | [prev] | [next] | [standalone]


#489042

From"Tim Williams" <tiwill@seventransistorlabs.com>
Date2017-12-22 08:25 -0600
Message-ID<p1j4ks$ah1$1@dont-email.me>
In reply to#489031
"Piotr Wyderski" <peter.pan@neverland.mil> wrote in message 
news:p1ilvh$cch$1@node2.news.atman.pl...
> <=2us. The hysteresis can be lowered to 200mV. OTOH, the comparator
> can have open collector outpus, which saves me 2 diodes and the area
> advantage of SO14 diminishes.

MCP662 says 32V/us, at 5V is under 200ns.  Unclear how much slope you'll get 
for small offsets (i.e., the comparator response vs. so many mV of input 
overdrive), probably not terrible.

2us at 5V implies as slow as 2.5V/us is acceptable, which is almost 
LM324/358 territory. :o

Tim

-- 
Seven Transistor Labs, LLC
Electrical Engineering Consultation and Contract Design
Website: https://www.seventransistorlabs.com/ 

[toc] | [prev] | [next] | [standalone]


#489043

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2017-12-22 09:45 -0500
Message-ID<m7ednevUU-4Hh6DHnZ2dnUU7-IHNnZ2d@supernews.com>
In reply to#489042
On 12/22/2017 09:25 AM, Tim Williams wrote:
> "Piotr Wyderski" <peter.pan@neverland.mil> wrote in message
> news:p1ilvh$cch$1@node2.news.atman.pl...
>> <=2us. The hysteresis can be lowered to 200mV. OTOH, the comparator
>> can have open collector outpus, which saves me 2 diodes and the area
>> advantage of SO14 diminishes.
> 
> MCP662 says 32V/us, at 5V is under 200ns.  Unclear how much slope you'll
> get for small offsets (i.e., the comparator response vs. so many mV of
> input overdrive), probably not terrible.
> 
> 2us at 5V implies as slow as 2.5V/us is acceptable, which is almost
> LM324/358 territory. :o
> 
> Tim
> 

Besides speed and open collector outputs, the other thing is that some
op amps don't like having their inputs sit at very different voltages,
either because there are inverse parallel diodes between them or because
the input devices can get damaged.  The latter probably isn't an issue
at 5V supplies.

Cheers

Phil Hobbs

-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510

http://electrooptical.net
https://hobbs-eo.com

[toc] | [prev] | [next] | [standalone]


#489044

FromPiotr Wyderski <peter.pan@neverland.mil>
Date2017-12-22 16:37 +0100
Message-ID<p1j8rb$thj$1@node2.news.atman.pl>
In reply to#489042
Tim Williams wrote:

> 2us at 5V implies as slow as 2.5V/us is acceptable, which is almost 
> LM324/358 territory. :o

Yes, the GBW requirements are imposed by the amplification part,
the comparator doesn't have to be Speedy Gonzalez. Thanks, Tim and Phil.
Let it be a separate device then.

	Best regards, Piotr

[toc] | [prev] | [next] | [standalone]


#489048

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2017-12-22 09:04 -0800
Message-ID<obeq3d9873dbj01e5ju8hmb6j239bliqgk@4ax.com>
In reply to#489023
On Fri, 22 Dec 2017 07:48:01 +0100, Piotr Wyderski
<peter.pan@neverland.mil> wrote:

>bill.sloman@ieee.org wrote:
>
>> It's a subject that comes up from time to time so a google search on "amplifiers as comparators" would have been worth the effort.
>> 
>> http://www.analog.com/en/analog-dialogue/articles/amplifiers-as-comparators.html
>
>Yes, there is also a good TI analysis on the subject. The problem
>is that there are two opposing camps, one says "never do that!" and
>the other "actually, it's not that bad". The opamp will be fast
>for other reasons, so I would like to know whether the 60x speed
>margin is sufficient for reliable operation or not.
>
>	Best regards, Piotr
>

Some opamps, especially newer RRO types, make decent comparators in
the 1 usec ballpark. Many/most older parts hang up on a rail and take
forever to come off. The best thing to do is test candidates.

I use LVDS line receivers a lot as RRIO comparators. They are not DC
precise, but they are screaming fast, cheap, and have legal CMOS
output levels.


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#489037

Frombill.sloman@ieee.org
Date2017-12-22 05:51 -0800
Message-ID<3e5c2f0e-04b5-48b2-9098-1f2d863ae662@googlegroups.com>
In reply to#488992
On Friday, December 22, 2017 at 10:07:35 AM UTC+11, Piotr Wyderski wrote:
> I need to amplify two signals (BW<=1MHz) 20 times, so there will be
> an opamp with GBW=24MHz (or 60MHz, instantiated most likely by MCP66x), 
> as the
> price is not that much higher). Single supply, 5V. One of the amplified
> signals will be then window-compared, with ~400mV hysteresis. The
> question is whether the opamp should be a dual version (say, MCP662), 
> accompanied by a dedicated dual comparator chip (both in SO08), or just 
> use a quad opamp in SO14, which is tempting, without the comparator 
> chip. Is the latter option asking for trouble?

Have a look at the LM392. Element 14 seems to have plenty of them

http://www.ti.com/lit/ds/symlink/lm392-n.pdf

The op amp isn't nearly fast enough - 1MHz rather than the 24MHz GBW you seem to have in mind, and the comparator isn't quick either.

It looks like a single LM324 element with a single LM339 element - so at least it's compatible with a single 5V supply, even if slow as wet week.

-- 
Bill Sloman, Sydney 

[toc] | [prev] | [next] | [standalone]


#489040

FromPiotr Wyderski <peter.pan@neverland.mil>
Date2017-12-22 15:14 +0100
Message-ID<p1j3vk$p0q$1@node2.news.atman.pl>
In reply to#489037
bill.sloman@ieee.org wrote:

> http://www.ti.com/lit/ds/symlink/lm392-n.pdf

Wow, I didn't know that such combos exist at all. Thanks, Bill!
Yes, this one is way too slow, but maybe there are faster variants?
Good to know, this might be very useful in a future project.

	Best regards, Piotr

[toc] | [prev] | [standalone]


Back to top | Article view | sci.electronics.design


csiph-web