A robot electronics record can show two different switching voltages for one comparator channel. An ideal positive-feedback model explains how that happens: the output state changes the voltage at the comparison node, which changes the next threshold.
The threshold is therefore a circuit quantity calculated separately for each output state. Its midpoint need not equal the independent reference voltage when the output levels are asymmetric around that reference.
The following resistor network is an original analytical example. It is not a component selection, wiring procedure, tested input channel, or protective circuit design.
Declare the ideal comparator and network
Call the noninverting input node P. Connect P through resistance R_a to an ideal fixed reference V_ref, and through resistance R_b to the comparator output V_o. Apply the varying signal V_in to the inverting input.
Assume both comparator inputs draw zero current. The reference source and output have zero source resistance, and the output takes exactly one of two declared voltages, V_H and V_L. Omit offsets, delays, capacitance, noise, and internal hysteresis.
For unequal input voltages, let the output be high when P is above V_in and low when P is below V_in. The model leaves exact equality as the switching boundary rather than assigning a stable analog output there.
Toshiba's official comparator FAQ develops positive-feedback thresholds under idealized assumptions. TI's authored comparator article describes the output-fed divider and the importance of output swing and loading. Those references establish the mechanism; the numerical network and calculations below are independently constructed.
Solve the node balance before assigning a threshold
Because the input takes no current, the two resistor currents sum to zero:
(P − V_ref)/R_a + (P − V_o)/R_b = 0.
Rearrangement gives P = (R_b V_ref + R_a V_o)/(R_a + R_b). Define alpha = R_a/(R_a + R_b). Then P = (1 − alpha)V_ref + alpha V_o.
The output contributes with a positive coefficient. When the comparator output rises, P rises; that supports the high-output condition for the inverting-input arrangement defined here. When the output falls, P falls and supports the low-output condition.
This dependence creates two node voltages even though V_ref itself remains fixed. The algebra concerns a state-dependent reference node, rather than a permanently unloaded divider driven from one constant source.
An original asymmetric example
Choose R_a = 30 kilohms and R_b = 90 kilohms, so alpha = 0.25. Let V_ref = 2 volts, V_H = 5 volts, and V_L = 0.2 volt.
With the output high, P_H = 0.75 times 2 plus 0.25 times 5 = 2.75 volts. With the output low, P_L = 0.75 times 2 plus 0.25 times 0.2 = 1.55 volts.
The hysteresis width is P_H − P_L = 1.20 volts. The same result follows directly from alpha(V_H − V_L) = 0.25 times 4.8.
An independent current check is useful. In the high state, the current from the 5-volt output toward P is (5 − 2.75)/90 kilohms = 25 microamps. The current from P toward the 2-volt reference is (2.75 − 2)/30 kilohms, also 25 microamps.
In the low state, the reference supplies (2 − 1.55)/30 kilohms = 15 microamps, which flows toward the output through the other resistor as (1.55 − 0.2)/90 kilohms = 15 microamps. The assumed input current remains zero in both cases.
Determine which threshold applies to each direction
Start with V_in below 1.55 volts. A high output is consistent because its P value is 2.75 volts, above the input. A low output would not be consistent with the stipulated comparator rule.
Increase V_in slowly while retaining the ideal high state. The relevant comparison node stays at P_H = 2.75 volts. Once V_in exceeds that boundary, the output goes low and the comparison node moves down to 1.55 volts.
For the reverse sweep, begin with a high input and low output. Decrease V_in. The output remains low until V_in falls below P_L = 1.55 volts, at which point it becomes high and P rises to 2.75 volts.
At an input such as 2.2 volts, either established state is self-consistent: the high state compares against 2.75, and the low state compares against 1.55. The preceding state supplies information that the input voltage alone does not contain.
Width and center respond differently
The threshold midpoint is (P_H + P_L)/2 = 2.15 volts. It is not the declared 2-volt reference. Algebraically, the midpoint is (1 − alpha)V_ref + alpha(V_H + V_L)/2.
Here the midpoint of the output levels is 2.6 volts, pulling the threshold center above V_ref. The threshold center equals V_ref only when the weighted relationship makes that true, including the special case where the output midpoint itself equals V_ref.
Holding the two output levels and alpha fixed, increasing V_ref by 0.1 volt raises both thresholds by 0.075 volt. It leaves their 1.20-volt separation unchanged. Changing output swing instead changes the width through alpha(V_H − V_L).
These separate sensitivities help explain why one measured threshold cannot determine the whole network. Different references and output levels can produce a similar individual switching voltage while producing different hysteresis intervals.
The ideal result has an electrical scope
Finite output resistance, output loading, input bias current, offset voltage, and propagation behavior can change the node values or observed events. An open-drain output also requires its actual pull-up network to be included; it cannot automatically be assigned the ideal V_H used here.
The two static thresholds do not specify a minimum pulse duration or a temporal debounce rule. They also do not establish distance, repeatability, or a physical sensor's switching characteristic without the intervening sensor relationship.
An interpretable comparator record therefore retains the signal polarity, feedback network, output levels, reference, and observed direction. The original calculation shows how those electrical definitions generate a state-dependent threshold and why its center and width carry different information.
Sources checked October 23, 2026
Toshiba Electronic Devices & Storage, How can I provide hysteresis (schmitt trigger) for a comparator?, official FAQ:
https://toshiba.semicon-storage.com/ap-en/semiconductor/knowledge/faq/linear_opamp/how-can-i-provide-hysteresis-for-a-comparator.html
Texas Instruments, Bruce Trump, Comparators—what's all the chatter?, January 28, 2013:
https://e2e.ti.com/blogs_/archives/b/thesignal/posts/comparators-what-s-all-the-chatter
All voltages, resistances, currents, and sweep states are hypothetical. No hardware test was performed.
Illustration note: The site-library wired sensor fixture on a metal table is a concept illustration. It does not identify this comparator network or document measured switching thresholds.