The comparator is an electronic decision making circuit that makes use of an operational amplifiers very high gain in its open-loop state, that is, there is no feedback resistor. ... In other words, the op-amp voltage comparator compares the magnitudes of two voltage inputs and determines which is the largest of the two.