Schmitt Trigger: Robust Comparator Design with Hysteresis<br>Loading...
ALL
Be the first to know.<br>Get our Semiconductors weekly email digest.<br>Follow
Schmitt Trigger Input
Topic<br>Semiconductors Follow
Tags<br>digital technology<br>electronics<br>embedded systems<br>semiconductors
Key Takeaways<br>● A Schmitt trigger is a comparator with built-in hysteresis. Positive feedback ensures the output toggles only when the input crosses distinct upper (V(TH)) and lower (V(TL)) threshold voltages, so noise within the hysteresis window cannot cause repeated toggles.<br>● Inverting op-amp Schmitt trigger thresholds. With input resistor R1, feedback resistor R2, and saturation voltage V(sat), the thresholds are V(TH) = (R1 / (R1 + R2)) × V(sat) and V(TL) = (R1 / (R1 + R2)) × (−V(sat)). The hysteresis width is V(H) = V(TH) − V(TL) = (2 × R1 / (R1 + R2)) × |V(sat)|<br>● Non-inverting Schmitt trigger. Using superposition, V(UT) = +(R1 / R(f)) × V(sat) and V(LT) = −(R1 / R(f)) × V(sat). The hysteresis is 2 × (R1 / R(f)) × |V(sat)|<br>● Discrete BJT Schmitt trigger. Two transistors sharing a common emitter resistor produce hysteresis because the emitter voltage shifts with the output state. Typical resistor values give roughly 0.4 V of hysteresis.<br>● CMOS Schmitt-trigger inverters. The SN74HC14 at 4.5 V supply has a typical positive threshold V(T+) of about 2.5 V and negative threshold V(T−) of about 1.6 V; hysteresis ranges from about 0.4 V to 2.1 V The single-gate SN74LVC1G14 supports 1.65-5.5 V supplies; at 5.5 V, typical V(T+) is 2.61-3.33 V and V(T⁻) is 1.87-2.29 V, giving 0.71-1.11 V of hysteresis.<br>● Comparator ICs with hysteresis. The LM393 dual comparator operates from 2-36 V with a large-signal response of roughly 300 ns and a small-signal response of 1.3 µs [5]. The TLV3201 micropower comparator has a 40 ns propagation delay and 1.2 mV of built-in internal hysteresis, operating from 2.7 to 5.5 V.
Introduction: Why Add Hysteresis to a Comparator?<br>Standard comparators switch output state whenever the input crosses a reference voltage. When a noisy input or a slowly varying analog signal hovers near that reference, the comparator output can chatter, rapidly toggling high and low as noise causes repeated threshold crossings. This behavior is problematic in digital circuits and sensor interfaces because it generates multiple unwanted transitions, wastes power, and can create false triggers. Otto Schmitt first addressed this issue in 1934 while working to measure neuronal signals: he added positive feedback to an amplifier so that the circuit switched at different threshold levels depending on whether the input was rising or falling, creating a bistable transfer curve. The resulting Schmitt trigger produces a clean digital output even when the input has slow edges or significant noise.<br>Hysteresis is essential in many embedded systems: it debounces mechanical switches, shapes waveforms, prevents oscillation when sampling analog levels, and enables simple oscillators. This article provides a detailed engineering reference on Schmitt trigger design. It explores the principles of hysteresis and derives the threshold voltages for inverting and non-inverting op-amp comparators, examines discrete transistor implementations, and compares integrated CMOS Schmitt-trigger inverters (74HC14, SN74LVC1G14, CD40106/MC14584). It also discusses comparator ICs with adjustable hysteresis and presents practical applications such as debouncing, zero-cross detection, and relaxation oscillators.<br>Recommended reading: How to Read Electrical Schematics: A Comprehensive Guide for Engineers<br>Deriving the Thresholds<br>Consider the op-amp output at its positive saturation +V(sat). The voltage divider formed by R1 and R2 sets the non-inverting input voltage, and when the inverting input, V(IN), crosses this divider voltage, the output flips. Solving the divider math gives:<br>V(TH) = (R1 / (R1 + R2)) × V(sat)<br>When the op-amp saturates at −V(sat), the same analysis yields:<br>V(TL) = (R1 / (R1 + R2)) × (−V(sat))<br>The hysteresis voltage is the difference between the two thresholds:<br>V(H) = V(TH) − V(TL) = (2 × R1 / (R1 + R2)) × |V(sat)|<br>These formulas match those found in many electronics textbooks: the threshold voltages scale directly with the resistor divider ratio. Note that the magnitude of V(sat) depends on the op-amp's supply rails and its saturation characteristics; practical op-amps saturate at slightly less than the rails, so the actual thresholds may be slightly lower than calculated.<br>Design Example<br>Suppose an inverting Schmitt trigger uses ±5 V supply rails with V(sat) approximately 4.5 V. Choosing R1 = 10 kΩ and R2 = 30 kΩ gives R1 / (R1 + R2) = 0.25, so V(TH) is approximately +1.13 V and V(TL) is approximately −1.13 V, giving a hysteresis V(H) of about 2.25 V. To reduce the hysteresis, decrease R1 relative to R2. Always ensure the threshold band is wider than the maximum expected noise amplitude to prevent chatter.<br>Non-Inverting Schmitt Trigger<br>A non-inverting Schmitt...