# How can I use a comparator in a circuit?

I am learning about how to use Operational Amplifiers as comparators. I understand that comparators are used to compare an input signal to a reference voltage. However, I am having a hard time visualizing this.

Say that I wanted a comparator with a reference voltage of 0 V (therefore, the output will be either positive or negative depending on whether the input signal is positive or negative, respectively). How could I draw a circuit like this?

I hope my question is clear.

• @Bee You're welcome :) and that's correct. There aren't any feedback networks in these diagrams I have above. If there was any feedback, you would have your typical $\displaystyle H=\frac{A}{1+A\beta}$ transfer function.... Here, it's only $H=A$ so it's all feedforward. – user103380 Sep 6 '18 at 0:05