
In electronics, a Schmitt trigger is a comparator circuit with hysteresis implemented by applying positive feedback to the noninverting input of a comparator or differential amplifier. It is an active circuit which converts an analog input signal to a digital output signal. The circuit is named a trigger because the output retains its value until the input changes sufficiently to trigger a change. In the non-inverting configuration, when the input is higher than a chosen threshold, the output is high. When the input is below a different (lower) chosen threshold the output is low, and when the input is between the two levels the output retains its value. This dual threshold action is called hysteresis and implies that the Schmitt trigger possesses memory and can act as a bistable multivibrator (latch or flip-flop). There is a close relation between the two kinds of circuits: a Schmitt trigger can be converted into a latch and a latch can be converted into a Schmitt trigger.
Schmitt trigger devices are typically used in signal conditioning applications to remove noise from signals used in digital circuits, particularly mechanical contact bounce in switches. They are also used in closed loop negative feedback configurations to implement relaxation oscillators, used in function generators and switching power supplies.
In signal theory, a schmitt trigger is essentially a one-bit quantizer.
The Schmitt trigger was invented by American scientist Otto Schmitt in 1934 while he was a graduate student,[1] later described in his doctoral dissertation (1937) as a thermionic trigger.[2] It was a direct result of Schmitt's study of the neural impulse propagation in squid nerves.
Circuits with hysteresis are based on positive feedback. Any active circuit can be made to behave as a Schmitt trigger by applying positive feedback so that the loop gain is more than one. The positive feedback is introduced by adding a part of the output voltage to the input voltage. These circuits contain an attenuator (the B box in the figure on the right) and an adder (the circle with "+" inside) in addition to an amplifier acting as a comparator. There are three specific techniques for implementing this general idea. The first two of them are dual versions (series and parallel) of the general positive feedback system. In these configurations, the output voltage increases the effective difference input voltage of the comparator by "decreasing the threshold" or by "increasing the circuit input voltage"; the threshold and memory properties are incorporated in one element. In the third technique, the threshold and memory properties are separated.
Dynamic threshold (series feedback)Some circuits and elements exhibiting negative resistance can also act in a similar way: negative impedance converters (NIC), neon lamps, tunnel diodes (e.g., a diode with an N-shaped current–voltage characteristic in the first quadrant), etc. In the last case, an oscillating input will cause the diode to move from one rising leg of the "N" to the other and back again as the input crosses the rising and falling switching thresholds.
Two different unidirectional thresholdsThe symbol for Schmitt triggers in circuit diagrams is a triangle with a symbol inside representing its ideal hysteresis curve.
The original Schmitt trigger is based on the dynamic threshold idea that is implemented by a voltage divider with a switchable upper leg (the collector resistors
RC1
This configuration can be considered as a differential amplifier with series positive feedback between its non-inverting input (Q2 base) and output (Q1 collector) that forces the transition process. There is also a smaller negative feedback introduced by the emitter resistor . To make the positive feedback dominate over the negative one and to obtain a hysteresis, the proportion between the two collector resistors is chosen so that . Thus less current flows through and there is less voltage drop across
RE
=For the NPN transistors shown on the right, imagine the input voltage is below the shared emitter voltage (high threshold for concreteness) so that the Q1 base-emitter junction is reverse-biased and Q1 does not conduct. The Q2 base voltage is determined by the divider described above so that Q2 is conducting and the trigger output is in the low state. The two resistors
RC2
RE
The output voltage is low but well above ground. It is approximately equal to the high threshold and may not be low enough to be a logical zero for subsequent digital circuits. This may require an additional level shifting circuit following the trigger circuit.
=When the input voltage (Q1 base voltage) rises slightly above the voltage across the emitter resistor
RE
RE
RC1
RE
=With the trigger now in the high state, if the input voltage drops enough (below the low threshold), Q1 begins cutting off. Its collector current reduces; as a result, the shared emitter voltage drops slightly and Q1's collector voltage rises significantly. The
R1{,}R2
RE
=The classic non-inverting Schmitt trigger can be turned into an inverting trigger by taking
Vout
RB
=To simplify the circuit, the
R1{,}R2
RB
Like every latch, the fundamental collector-base coupled bistable circuit operates with hysteresis. It can be converted to a Schmitt trigger by connecting an additional base resistor R to one of the inputs (Q1's base in the figure). The two resistors
R
R4
The emitter-coupled version has the advantage that the input transistor is reverse biased when the input voltage is quite below the high threshold so the transistor is definitely cut off. This was important when germanium transistors were used for implementing the circuit, and this configuration has continued to be popular. The input base resistor can be omitted, since the emitter resistor limits the current when the input base-emitter junction is forward-biased.
An emitter-coupled Schmitt trigger logical zero output level may not be low enough and might need an additional output level shifting circuit. The collector-coupled Schmitt trigger has extremely low (almost zero) output at logical zero.
Schmitt triggers are commonly implemented using an operational amplifier or a dedicated comparator. An open-loop op-amp and comparator may be considered as an analog-digital device having analog inputs and a digital output that extracts the sign of the voltage difference between its two inputs. The positive feedback is applied by adding a part of the output voltage to the input voltage in series or parallel manner. Due to the extremely high op-amp gain, the loop gain is also high enough and provides the avalanche-like process.
In this circuit, the two resistors
R1
R2
R1
The output voltage always has the same sign as the voltage but it does not always have the same sign as the voltage (the signs of the two input voltages can differ). When the circuit input voltage is above the high threshold or below the low threshold, the output voltage has the same sign as the circuit input voltage (the circuit is non-inverting). It acts like a comparator that switches at a different point depending on whether the output of the comparator is high or low. When the circuit input voltage is between the thresholds, the output voltage is undefined and it depends on the last state (the circuit behaves as an elementary latch).
For instance, if the Schmitt trigger is currently in the high state, the output will be at the positive power supply rail . The output voltage
V+
The comparator will switch when . Then
R2 ⋅ Vin=-R1 ⋅ VS
Vin
R1
R2
A unique property of circuits with parallel positive feedback is the impact on the input source. In circuits with negative parallel feedback (e.g., an inverting amplifier), the virtual ground at the inverting input separates the input source from the op-amp output. Here there is no virtual ground, and the steady op-amp output voltage is applied through the
R1{,}R2
A practical Schmitt trigger with precise thresholds is shown in the figure on the right. The transfer characteristic has exactly the same shape of the previous basic configuration, and the threshold values are the same as well. On the other hand, in the previous case, the output voltage was depending on the power supply, while now it is defined by the Zener diodes (which could also be replaced with a single double-anode Zener diode). In this configuration, the output levels can be modified by appropriate choice of Zener diode, and these levels are resistant to power supply fluctuations (i.e., they increase the PSRR of the comparator). The resistor
R3
R4
In the inverting version, the attenuation and summation are separated. The two resistors
R1
R2
R1
R1
The circuit is named inverting, since the output voltage always has an opposite sign to the input voltage when it is out of the hysteresis cycle (when the input voltage is above the high threshold or below the low threshold). However, if the input voltage is within the hysteresis cycle (between the high and low thresholds), the circuit can be inverting as well as non-inverting. The output voltage is undefined and depends on the last state, so the circuit behaves like an elementary latch.
To compare the two versions, the circuit operation will be considered at the same conditions as above. If the Schmitt trigger is currently in the high state, the output will be at the positive power supply rail . The output voltage
V+
The comparator will switch when . So
Vin
R1
R1
R2
In contrast with the parallel version, this circuit does not impact on the input source, since the source is separated from the voltage divider output by the high op-amp input differential impedance.
In the inverting amplifier voltage drop across resistor decides the reference voltages i.e., upper threshold voltage and lower threshold voltages for the comparison with input signal applied. These voltages are fixed, as the output voltage and resistor values are fixed.
By changing the drop across, threshold voltages can be varied. By adding a bias voltage in series with resistor, drop across it can be varied, which can change threshold voltages. Desired values of reference voltages can be obtained by varying bias voltage. The above equations can be modified as:
Schmitt triggers are typically used in open-loop configurations for noise immunity and in closed-loop configurations to implement function generators.
One application of a Schmitt trigger is to increase the noise immunity in a circuit with only a single input threshold. With only one input threshold, a noisy input signal near that threshold could cause the output to switch rapidly back and forth from noise alone. A noisy signal on Schmitt trigger input near one threshold can cause only one switch in output value, after which it would have to move beyond the other threshold in order to cause another switch.
For example, an amplified infrared photodiode may generate an electric signal that switches frequently between its absolute lowest value and its absolute highest value. This signal is then low-pass filtered to form a smooth signal that rises and falls corresponding to the relative amount of time the switching signal is on and off. That filtered output passes to the input of a Schmitt trigger. The net effect is that the output of the Schmitt trigger only passes from low to high after a received infrared signal excites the photodiode for longer than some known period, and once the Schmitt trigger is high, it only moves low after the infrared signal ceases to excite the photodiode for longer than a similar known period. Whereas the photodiode is prone to spurious switching due to noise from the environment, the delay added by the filter and Schmitt trigger ensures that the output only switches when there is certainly an input stimulating the device.
Schmitt triggers are common in many switching circuits for similar reasons (e.g., for switch debouncing).
The following 7400 series devices include a Schmitt trigger on their input(s) (see List of 7400-series integrated circuits):
A number of 4000 series devices include a Schmitt trigger on their inputs(s) (see List of 4000-series integrated circuits):
Schmitt-input configurable single-gate chips (see):
See main article: Relaxation oscillator. A Schmitt trigger is a bistable multivibrator, and it can be used to implement another type of multivibrator the relaxation oscillator. This is achieved by connecting a single RC integrating circuit between the output and the input of an inverting Schmitt trigger. The output will be a continuous square wave whose frequency depends on the values of and, and the threshold points of the Schmitt trigger. Since multiple Schmitt trigger circuits can be provided by a single integrated circuit (e.g. the 4000-series CMOS device type 40106 contains 6 of them), a spare section of the IC can be quickly pressed into service as a simple and reliable oscillator with only two external components.
Here, a comparator-based Schmitt trigger is used in its inverting configuration. Additionally, slow negative feedback is added with an integrating RC network. The result is that the output automatically oscillates from the positive supply voltage
VSS
VDD