A varying input voltage is compared with a fixed reference voltage. If the input voltage is higher than the reference voltage, then the output is negative. If the input voltage is lower than the reference, then the output is positive.
The gain can be set by negative feedback. |