Comparators as op-amp integrator

comparatorintegratoroperational-amplifier

So I figured I need an audio range function generator and was thinking of generating a square wave with a 555 and then using op-amps to integrate it into a triangle and sine. Since I happen to have some LM339s laying around and I was thinking, I could use these. All my searches yielded only talk about why you should not use opamps as comparators, but not the other way around.

So hence my question, what are the drawbacks of using a comparator with pull up resistor as an op-amp integrator? Should I just use 2 or 3 discrete 741s instead?

Also the design frequencies are low, some 40 to maybe a few kilo Hz, mainly for testing linearities and distortion of different circuits(I got tired of using the old computer's sound card method)

Best Answer

Unlike an op amp, comparators generally have no internal frequency compensation, so therefore a comparator won't be unity-gain stable. There is no way to know what open-loop frequency would yield 180 degree phase shift. The equivalent circuit diagram for LM339 supports this generalization. ( http://www.onsemi.com/pub/Collateral/LM339-D.PDF )