Electronic comparator 2026-11-05
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.
Ideal operational amplifier 2026-10-18
An ideal operational amplifier has infinite open-loop gain and input impedance, zero output impedance, unlimited response speed and zero input offset voltage and input bias current. Its input currents vanish. In a stable linear circuit with negative feedback and a finite output, its differential input voltage tends to zero as the open-loop gain tends to infinity. Thus and are the familiar conditional circuit rules. The equality of the input voltages cannot be imposed on an open-loop, unstable or saturated circuit.
Input offset voltage Created 2026-10-18 Updated 2026-11-05
The input offset voltage of an operational amplifier is the differential direct-current input voltage needed to make its output zero at a specified operating point. Its effect resembles a small unwanted input signal and can cause sustained output drift in an op amp integrator.
Integrator reset 2026-11-05
An integrator reset establishes the charge on an integrating amplifier's feedback capacitor before the next measurement. Without it, the next output includes the previous initial condition, and repeated input pulses or input offset voltage can eventually cause amplifier clipping. Resetting makes consecutive measurement intervals comparable; it does not reconstruct a pulse already lost to amplifier clipping.
Consider an inverting integrating amplifier with the input held at zero during reset. Place an analog switch across its feedback capacitor . In the approximation of a stable ideal operational amplifier maintaining a virtual ground, a closed switch with constant on-state electrical resistance gives the RC circuit relationThis exponential decay gives an integrator reset settling time for residual magnitude at most :For stipulated values , and , the reset time constant is . Reaching a residual of requires about in this model. Actual amplifier drive, stability and recovery from overload can change the response. A switch's control delay also differs from the full circuit's settling time.[ref]
MT-088: Analog Switches and Multiplexers Basics. pp11–13, Figures19–21: settling versus switching delay
Opening the reset switch can itself disturb the initial condition. Analog switch charge injection transfers a small charge to the connected capacitor, producing a reset charge-injection pedestal of magnitudeFor a stipulated deposited on , this step is . Its sign depends on the circuit and charge direction. A longer reset suppresses the preceding exponential residual but need not suppress the new step created when the switch opens. Analog Devices illustrates this capacitive coupling mechanism and the resulting output step separately from retained-charge settling.[ref]
MT-088: Analog Switches and Multiplexers Basics. pp9–10, Figures13–16
A practical experiment repeats zero-input measurements with several reset durations and reads the output at the same delay after switch opening. A decreasing residual indicates incomplete discharge; a persistent offset can instead include reset charge-injection pedestal, input offset voltage and subsequent drift. Repeated readings help separate the reproducible offset from noise. The ACF2101 provides a concrete historical implementation: separate hold and reset controls disconnect the input and discharge the integration capacitor, and its datasheet shows the sequence of hold, integration and reset states.[ref]
ACF2101 Low Noise, Dual Switched Integrator datasheet. p9, Modes of Operation, Hold and Reset Switches, Figures3–4; p3, Charge Transfer Errors
The reset interval also creates integrator reset dead time: charge arriving while the circuit is being reset may not contribute to the next measured integral. Pulse timing relative to the reset therefore matters. A perfectly repeatable baseline alone does not establish that every input pulse was captured.
Past exam of the physics A course of the University of Cambridge 2013 Paper 1 Section D D12 Solution 2026-10-20
An ideal operational amplifier has infinite differential open-loop gain, infinite input impedance, zero output impedance and unlimited bandwidth and output capability, and zero input offset voltage and input bias current. In a stable negative-feedback circuit operating linearly, its input currents vanish and . This equality is a feedback consequence, not a rule for a saturated or open-loop amplifier. Here the grounded non-inverting input makes the inverting node a virtual earth.
The inverting two-pole band-pass filter has a series resistor and capacitor input, while the feedback arm is a parallel resistor and capacitor. With Laplace variable ,Kirchhoff's current law at virtual earth gives the minus sign. Substituting yieldsIt vanishes at zero and infinite frequency, with low-frequency and high-frequency . Differentiation gives the single maximumFor , the broad interval has . For , the interval instead has . The same rising and falling asymptotes apply outside either plateau.
Original ideal filter power gains for different time-constant ratios, showing the finite selectivity limit
. Details. Writing and , the half-power frequencies and quality factor areEqual time constants give the narrowest fractional pass-band achievable here, with andThis topology cannot make a genuinely sharp, high- band-pass. Its poles are real, and the selectivity bound for a two-real-pole band-pass prevents arbitrarily narrow selection. A more selective resonant filter needs additional circuit structure. The gain above answers the component-ratio question for the sharpest available setting without assuming an impossible limit.
Real amplifiers have finite frequency-dependent gain and phase lag, so virtual earth becomes inaccurate, the response changes and stability must be checked. Gain-bandwidth limits, slew rate for large signals, output loading and amplifier saturation also matter. Component tolerances move the corners; capacitor parasitics, stray capacitance, resistor noise and input noise become significant. The ideal high-frequency tail should not be extrapolated beyond the amplifier and lumped-component operating ranges.
An ideal operational amplifier has infinite differential open-loop gain, infinite input impedance, zero output impedance, unlimited bandwidth and slew rate, and zero input offset voltage, input bias current and intrinsic noise. The idealized model has no finite output-swing or output-current limit.
The usual circuit rules areThe first follows from infinite input impedance. The second follows because a finite output requires as the open-loop gain tends to infinity. It is a virtual equality of potentials, not a conducting connection between the inputs. It cannot be imposed for open-loop operation or after an amplifier reaches its supply rails.
Any direct-current component of the input produces an output ramp. The input offset voltage and input bias currents of a real operational amplifier therefore charge the feedback capacitor until the output saturates. Even the desired signal can exceed the available output swing when integrated for too long. Initial capacitor charge also introduces an unknown integration constant.
Place a large resistor in parallel with the feedback capacitor. The idealized transfer function then becomesIts finite direct-current gain supplies a return path and bounds the response to a small offset; it approximates when . The chosen gain must still keep offsets within the output range. A reset switch across the capacitor can set the initial charge, while low-offset amplifiers, bias compensation and input offset adjustment reduce drift. Useful integration also requires frequencies below the amplifier's own response limit.
A real operational amplifier has large but finite, frequency-dependent open-loop gain; the gain falls and its phase changes at higher frequencies. Finite bandwidth and slew rate constrain small-signal and large-signal responses respectively. There are also finite input impedance and output impedance, nonzero input bias currents and input offset voltage, and internally generated noise. Offset and bias can drift with temperature.
The output is limited by the supply voltages and output-current capability, and the inputs have a permitted common-mode range. Rejection of common-mode and supply changes is finite. Consequently need not vanish exactly, and neither the virtual-ground approximation nor linear gain formulas apply after saturation. For the calculation below the stipulated infinite input impedance removes the input loading currents, while finite gain and optionally finite output resistance are retained.
Schmitt trigger 2026-11-05
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
An electronic comparator registers a pulse only if its input reaches the chosen threshold. For an initially uncharged capacitor driven through an electrical resistance , a short rectangular pulse may end before that happens. The resulting threshold-crossing time of a finite rectangular pulse through an RC load depends on threshold and pulse duration, as well as the time constant ; it is not determined by group delay alone.
Take a positive input electric potential difference for , zero input outside that interval, and output across a capacitance . Include the source's effective series electrical resistance in . The initial condition is . Kirchhoff's voltage law and the capacitor current relation give the first-order linear differential equationThe output is a continuous function and reaches its maximum at the pulse's falling edge:The input jumps there, but an ideal capacitor's stored electric charge cannot change discontinuously under the finite currents of this model.
Choose a fixed threshold with . Solving the rising exponential function using a natural logarithm givesIf , the output never reaches the threshold. At , it touches the threshold only at its peak; the ideal time spent strictly above threshold is zero. A nonzero high interval in an ideal non-inverting electronic comparator requires . This is RC pulse-width discrimination: different input durations can give a missing pulse or a finite output pulse even when their input heights are equal.
For , solving the falling exponential decay givesHere is the time above threshold for an RC-filtered rectangular pulse, before any electronic comparator switching dynamics. It is not generally the input duration . Just above , differentiation gives and hence to first order; a half-height threshold gives slope two at the detection boundary.
For an original numerical example, take , , , and , so . A input peaks at only and is rejected. A input peaks at and givesThese are model calculations, not recorded instrument traces.
A threshold near the asymptotic input height is also especially sensitive to noise and threshold measurement uncertainty. Holding the absolute input height and fixed, the threshold timing sensitivity of an RC step response isFor the same , model, a effective threshold perturbation gives approximately of timing change at , but at , by first-order uncertainty propagation. The rectangular pulse must still last long enough to reach the selected threshold; changing together with is a different sensitivity calculation.
A bench test uses a pulse generator and an oscilloscope to record both the applied electric potential difference and the capacitor output. Sweep while keeping and the actual threshold fixed, and allow enough time between pulses for the measured initial output to be negligible at the desired precision. Include probe and comparator-input capacitance in . MIT's laboratory measures RC decay with a capacitor, a resistor and square-wave excitation; that gives a directly measurable component-value time constant.[ref]
Laboratory 11: Sinusoidal Steady State Response of RC and RL Circuits by MIT OpenCourseWare. Printed pp. 1–2, component values and decay/phase measurements
The pulse-duration sweep proposed here extends that decay measurement to a threshold observation. A real electronic comparator's input offset voltage, hysteresis and finite switching time must be separated from the ideal RC crossing times; a Schmitt trigger uses different rising and falling thresholds.
