Electronic – Comparator as operational amplifier

comparatorcontrol-loopoperational-amplifier

Using an operational amplifier as a comparator was asked quite a lot times here, but how does it behave the way around?

I've a really cheap one in my circuit with low hysteresis and a MOSFETt push/pull output stage. Using it as a two point regulator with a LPF (fc<100Hz) at the output to drive my actuator should do almost the same job as an operational amplifier? Yes, it will oscillate, leading to higher Iq, and some EMI issues -but the control loop should be stable. Am I missing other huge downsides?

Best Answer

Yes, you can do this, if the bandwidth of the low pass filter is appropriately low to achieve stability.

This will result in a PWM output of variable timebase at the comparator output. As you get closer to 0% and 100% the timebase will get arbitrarily long. The frequency will also be greatly affected by the hysteresis (you need some hysteresis or the frequency will be too high and other effects will likely cause issues).


You can also operate some comparators in a linear mode, as Andy says the LM339 is one of the few that allows this because there are not intermediate stages inside that require access in order to add compensation-- in this case just adding a BFC (Big "Fat" Capacitor) to the output as explained in this document.

enter image description here

Limitations include low bandwidth and poor current source capability due to the open-collector output and R3.