Author Topic: is it possible? to use comparetor op amps as crud audio amps  (Read 4526 times)

0 Members and 1 Guest are viewing this topic.

Offline ali6x944Topic starter

  • Frequent Contributor
  • **
  • Posts: 567
  • Country: sa
is it possible? to use comparetor op amps as crud audio amps
« on: February 24, 2016, 08:47:04 pm »
hi everyone,
is it possible to use comparetor op amps like lm311 or lm339 as crud audio amps?
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21734
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: is it possible? to use comparetor op amps as crud audio amps
« Reply #1 on: February 24, 2016, 08:55:20 pm »
Maybe. Probably not. Why would you want to?  Single op-amps are available in SOT-23-5.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline bktemp

  • Super Contributor
  • ***
  • Posts: 1616
  • Country: de
Re: is it possible? to use comparetor op amps as crud audio amps
« Reply #2 on: February 24, 2016, 08:58:34 pm »
You could build a class-D amp using a comparator.
Maybe a comparator works as a linear amplifier, but it won't be good.
 

Offline Audioguru

  • Super Contributor
  • ***
  • Posts: 1507
  • Country: ca
Re: is it possible? to use comparetor op amps as crud audio amps
« Reply #3 on: February 24, 2016, 09:27:46 pm »
An opamp has a frequency compensation capacitor inside so that it doesn't oscillate when negative feedback is used.
A comparator oscillates when negative feedback is used.

The output of an opamp goes to any level within its linear range.
The output od a comparator goes digitally only high and low with linear nothing in between.
 

Offline bktemp

  • Super Contributor
  • ***
  • Posts: 1616
  • Country: de
Re: is it possible? to use comparetor op amps as crud audio amps
« Reply #4 on: February 24, 2016, 10:09:51 pm »
The output of an opamp goes to any level within its linear range.
The output od a comparator goes digitally only high and low with linear nothing in between.
In theory, but all practical comparators have a finite gain (200k for a LM339, that is similar to an opamp). So adding a feedback will force them into linear operation (unless the comparator has an internal hysteresis).
 

Offline Seekonk

  • Super Contributor
  • ***
  • Posts: 1938
  • Country: us
Re: is it possible? to use comparetor op amps as crud audio amps
« Reply #5 on: February 24, 2016, 10:44:22 pm »
It has been years since I used a LM339 in an audio application, but I don't recall it being bad at all.
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21734
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: is it possible? to use comparetor op amps as crud audio amps
« Reply #6 on: February 25, 2016, 04:28:56 am »
The problem is the gain and output stage are wide open, so the gain extends to much higher frequencies, where the phase shift wraps around.  So you can hardly apply any feedback without it oscillating.

I think the usual approach is to shunt the output into submission with a Big Fuckin' Cap, but this doesn't address the fundamental problem, which is that the circuit itself is unstable and prone to oscillation.  Indeed, this tends to result in low level oscillation (~mV), as its screams are muffled into the large capacitor, but not silenced.

You also don't have a driving output, only open collector.  So you're limited to class A resistor loaded output.

Used in a proper PWM circuit, it's not bad, but now you're intentionally harnessing its screams, which means the possibility of high efficiency (adding a suitable output stage), and the requirement for heavy filtering.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19571
  • Country: gb
  • 0999
Re: is it possible? to use comparetor op amps as crud audio amps
« Reply #7 on: February 25, 2016, 08:58:30 pm »
Yes, it can be done. There are some examples of this on the datasheet. The VCO schematic on the LM339 uses a comparator as an op-amp integrator: see top left of the schematic.



The LM311 will probably be better with the output connected as an emitter follower but there are no examples on the datasheet.
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: is it possible? to use comparetor op amps as crud audio amps
« Reply #8 on: February 25, 2016, 09:28:15 pm »
Yup, LM339 is perfectly fine as an opamp - as mentioned stability can be an issue, but it's not too bad if you can slow it down a bit with a cap. Various revisions of the datasheet have even suggested this use, though recent versions seem to have been scrubbed of this. I've used it before for a very specific application - I needed an open collector opamp, which would be connected in "wired OR" with multiple others, with only one active at a time.

Keep in mind this is because LM339 is inordinately slow for a comparator. You may have worse luck with faster specimens like LM311.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline Richard Crowley

  • Super Contributor
  • ***
  • Posts: 4317
  • Country: us
  • KJ7YLK
Re: is it possible? to use comparetor op amps as crud audio amps
« Reply #9 on: February 25, 2016, 09:37:32 pm »
I have even seen application notes showing DTL gates used as linear amplifiers (with appropriate biasing and feedback, of course.)

The original question was "is it possible to use comparetor op amps like lm311 or lm339 as crud audio amps?"
Was that a Freudian slip?   :-DD
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf