This is the basic configuration of a voltage comparator with the Norton LM3900 amplifier. The power supply depends on the voltages being compared.