I was looking at this guy's voltage regulator
T1 acts as a comparator with positive feedback through R4 for hysteresis. To eliminate oscillation, he adds the capacitor C1.
"Capacitor C1 stabilises the circuit at higher load. I have observed that the switching behaviour of the circuit without this capacitor is pretty "sharp" and stable if the load draws less than ca. 0.5 A (typically); however at higher current I observed a tendency to oscillate. This can be observed best with an oscilloscope, or a 12 V lamp as load: it will start to glow, instead of being switched completely on or completely off. C1 eliminates this instability"
I built a voltage regulator using that circuit and it works. It does oscillate without the cap, and installing the cap in the circuit prevents the oscillation.
I was wondering if I could use the same strategy with a comparator. I have a project where a comparator will have high impedance, slow-changing inputs, so I'm concerned about oscillation.
I was skimming through the National Semiconductor datasheet for LM*111 comparators and they showed a couple of strategies for preventing oscillation, but no cap from the output to the negative input. Is there some reason it wouldn't work on a comparator? I'm actually going to be using LM2903.