An electronic comparator is an electrical circuit that converts the ordering of two input electric potential differences into an output state. For the usual non-inverting convention, the output is high when and low when . Unlike a linear amplifier, an electronic comparator deliberately makes a threshold decision; its output does not report how large the input difference is. A sensor signal can therefore become a pulse marking the instant it crosses a reference.
Real threshold decisions have an input offset voltage and a finite propagation delay. The permitted input range and the output drive also matter: an open-drain output needs a pull-up resistor, whereas a push-pull output drives both states. The manufacturer’s inverting example explicitly includes the pull-up resistor and explains how input offset voltage, resistor tolerances and internal hysteresis affect the thresholds.[ref]
Inverting Comparator With Hysteresis Circuit by Texas Instruments. SNOA997A, p. 1, Design Description and Design Notes; p. 5, output types
With a single threshold, a slowly varying input plus electrical noise can cause repeated transitions. A Schmitt trigger adds hysteresis: the threshold depends on the existing output state. For an illustrative non-inverting design, suppose the output switches high on a rise through and low on a fall through . At , either output is possible, depending on the preceding input. The interval is deliberate memory of the last state, rather than an ambiguous instantaneous comparison. Positive feedback can produce this behavior; the cited design derives the two thresholds from the feedback resistor network.[ref]
Inverting Comparator With Hysteresis Circuit by Texas Instruments. pp. 2–3, separate high-output and low-output threshold equations
A useful bench demonstration applies a slow triangular input with a small superposed ripple and displays both input and output on an oscilloscope. Record the rising and falling switching levels separately. Repeated transitions near one level demonstrate noise sensitivity; distinct rising and falling levels demonstrate hysteresis. The time between an input crossing and the output transition measures propagation delay, a different quantity from the separation between the two thresholds.
A Schmitt trigger is a threshold circuit with hysteresis: its switching level depends on its current output state. An input rising through an upper threshold causes one transition, whereas an input falling through a lower threshold causes the reverse transition. Between the thresholds, the circuit retains the state reached previously. This makes a Schmitt trigger useful for turning a slowly varying or noisy signal into clean transitions, rather than repeatedly switching whenever noise crosses a single reference level.[ref]
Inverting Comparator With Hysteresis Circuit by Texas Instruments. SNOA997A, p. 1, Design Description; pp. 2–3, separate output-state equations
A simple inverting implementation puts the signal on the negative input of an electronic comparator. Connect its positive input to output through a resistor and to a reference through a resistor . Neglecting comparator input current, Kirchhoff's current law givesFor ideal high and low output levels , the input switches on a rise at and on a fall at . Thus the separation of the switching thresholds isThe output feeds back so as to reinforce its new state: after a rising input makes the output low, the positive-input threshold falls too.
For illustrative values , , , and , the thresholds are and . At an input of , the output can be either high or low, depending on the preceding trajectory. These chosen numbers describe the ideal circuit above, not a particular device specification.
An oscilloscope demonstration applies a slow triangular input with a small ripple and records input and output together. Compare the rising and falling transition levels, and then reduce the threshold separation to see when the ripple produces additional transitions. In a real circuit, input offset voltage, resistor tolerances, output loading and any internal hysteresis change the thresholds. An open-drain output also requires a pull-up resistor; its load must be included in the feedback calculation.[ref]
Inverting Comparator With Hysteresis Circuit by Texas Instruments. p. 1, Design Notes; pp. 2–3, pull-up and feedback network analysis
Articles by others on the same topic
There are currently no matching articles.