3
\$\begingroup\$

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?

\$\endgroup\$
1
  • 1
    \$\begingroup\$ You don't need low hysteresis. You need no hysteresis. \$\endgroup\$
    – DKNguyen
    Dec 9, 2020 at 16:31

2 Answers 2

3
\$\begingroup\$

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.

\$\endgroup\$
5
\$\begingroup\$

There are plenty of comparators that can be unofficially wired as an op-amp without much trouble but, many more will oscillate (go unstable) because they are not designed for linear applications; they are designed for non-negative feedback applications where output transistor switching speed is important. The LM339 is a bit of an exception in that you can get semi-decent op-amp style performance but you have to jump through a few hoops: -

enter image description here

However, speed is usually the big thing needed from comparators and that means the internally circuits are not compensated. And, without compensation, they will be often unstable when using negative feedback (op-amp applications).

But the control loop should be stable.

No, that's a much bigger and broader thing and you cannot make that conclusion at all.

Am I missing other huge downsides?

A lot of comparators don't have low input offset voltage accuracy but they will have (usually) a better common-mode signal handling reliability than op-amps (at the expense of worser input offset voltage specifications).

\$\endgroup\$
5
  • 2
    \$\begingroup\$ Comparators might also have built in hystersis and open collector outputs. \$\endgroup\$
    – DKNguyen
    Dec 9, 2020 at 16:29
  • \$\begingroup\$ @DKNguyen the MAX999 is a prime example. Some comparators need output pull-up resistors too like the LM339. \$\endgroup\$
    – Andy aka
    Dec 9, 2020 at 16:30
  • \$\begingroup\$ My internal hysteresis will be more or less the equivalent to the input offset voltage of an opa as my feedback need to be higher/lower than V+ and that threshold to cause the output to go either to VCC or VDD. I agree with your stability statement. Just a bad generalization by myself. Integrating that PWM to drive the actuator and change the negative feedback, might cause a ripple/noise in the loop due to the hysteresis. Not saying the loop is stable at all, as it requires all parts of the loop for such assessment. \$\endgroup\$
    – Florian
    Dec 9, 2020 at 17:08
  • \$\begingroup\$ @Florian what are you saying though? \$\endgroup\$
    – Andy aka
    Dec 9, 2020 at 17:10
  • \$\begingroup\$ @Florian Hysteresis does not have the same effect as an offset and the device is still linear on either side of the offset. An offset is an offset. A hysteresis is a dead zone. \$\endgroup\$
    – DKNguyen
    Dec 10, 2020 at 0:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.