Comparator applications

Last updated

A comparator is an electronic component that compares two input voltages. Comparators are closely related to operational amplifiers, but a comparator is designed to operate with positive feedback and with its output saturated at one power rail or the other. If necessary, an op-amp can be pressed into service as a poorly performing comparator, but its slew Rate will be impaired.

Contents

Comparator

Op-Amp Comparator.svg

Bistable output that indicates which of the two inputs has a higher voltage. That is,

where and are nominally the positive and negative supply voltages (which are not shown in the diagram).

Threshold detector

Circuit diagram for threshold detector with hysteresis Op-Amp Schmitt Trigger.svg
Circuit diagram for threshold detector with hysteresis

The threshold detector with hysteresis consists of an operational amplifier and a series of resistors that provide hysteresis. [1] :5 [2] :7 [3] Like other detectors, this device functions as a voltage switch, but with an important difference. The state of the detector output is not directly affected by input voltage, but instead by the voltage drop across its input terminals (here, referred to as Va). From Kirchhoff's Current Law, this value depends on Vin and the output voltage of the threshold detector itself, both multiplied by a resistor ratio.

Unlike the zero crossing detector, the detector with hysteresis does not switch when Vin is zero; rather the output becomes Vsat+ when Va becomes positive and Vsat- when Va becomes negative. Further examination of the Va equation reveals that Vin can exceed zero (positive or negative) by a certain magnitude before the output of the detector is caused to switch. By adjusting the value of R1, the magnitude of Vin that will cause the detector to switch can be increased or decreased. Hysteresis is useful in various applications. It has better noise immunity than the level detector, which is used in interface circuits. Its positive feedback has a faster transition, so it is used in timing applications such as frequency counters. It is also used in astable multivibrators found in instruments such as function generators.

Zero crossing detector

A zero crossing detector is a comparator with the reference level set at zero. It is used for detecting the zero crossings of AC signals. It can be made from an operational amplifier with an input voltage at its positive input (see circuit diagram)[ clarification needed ].

When the input voltage is positive, the output voltage is a positive value; when the input voltage is negative, the output voltage is a negative value. The magnitude of the output voltage is a property of the operational amplifier and its power supply.

Applications include converting an analog signal into a form suitable for frequency measurements, in phase locked loops, or controlling power electronics circuits that must switch with a defined relationship to an alternating current waveform.

This detector exploits the property that the instantaneous frequency of an FM wave is approximately given by where is the time difference between adjacent zero crossings of FM wave

[4]

Schmitt trigger

A bistable multivibrator implemented as a comparator with hysteresis.

Op-Amp Schmitt Trigger.svg

In this configuration, the input voltage is applied through the voltage divider formed by and (which may be the source internal resistance) to the non-inverting input and the inverting input is grounded or referenced. The hysteresis curve is non-inverting and the switching thresholds are where is the greatest output magnitude of the operational amplifier.

Op-Amp Inverting Schmitt Trigger.svg

Alternatively, the input source and the ground may be swapped. Now the input voltage is applied directly to the inverting input, and the non-inverting input is grounded or referenced. The hysteresis curve is inverting and the switching thresholds are . This configuration is used in the relaxation oscillator shown below.

Relaxation oscillator

Op-Amp Relaxation Oscillator.svg

By using an RC network to add slow negative feedback to the inverting Schmitt trigger, a relaxation oscillator is formed. The feedback through the RC network causes the Schmitt trigger output to oscillate in an endless symmetric square wave (i.e., the Schmitt trigger in this configuration is an astable multivibrator).

Related Research Articles

<span class="mw-page-title-main">Multivibrator</span> Electronic circuit used to implement two-state devices

A multivibrator is an electronic circuit used to implement a variety of simple two-state devices such as relaxation oscillators, timers, latches and flip-flops. The first multivibrator circuit, the astable multivibrator oscillator, was invented by Henri Abraham and Eugene Bloch during World War I. It consisted of two vacuum tube amplifiers cross-coupled by a resistor-capacitor network. They called their circuit a "multivibrator" because its output waveform was rich in harmonics. A variety of active devices can be used to implement multivibrators that produce similar harmonic-rich wave forms; these include transistors, neon lamps, tunnel diodes and others. Although cross-coupled devices are a common form, single-element multivibrator oscillators are also common.

<span class="mw-page-title-main">Operational amplifier</span> High-gain voltage amplifier with a differential input

An operational amplifier is a DC-coupled high-gain electronic voltage amplifier with a differential input and, usually, a single-ended output. In this configuration, an op amp produces an output potential that is typically 100,000 times larger than the potential difference between its input terminals. The operational amplifier traces its origin and name to analog computers, where they were used to perform mathematical operations in linear, non-linear, and frequency-dependent circuits.

<span class="mw-page-title-main">Comparator</span> Device that compares two voltages or currents

In electronics, a comparator is a device that compares two voltages or currents and outputs a digital signal indicating which is larger. It has two analog input terminals and and one binary digital output . The output is ideally

<span class="mw-page-title-main">Negative-feedback amplifier</span> Type of electronic amplifier

A negative-feedback amplifier is an electronic amplifier that subtracts a fraction of its output from its input, so that negative feedback opposes the original signal. The applied negative feedback can improve its performance and reduces sensitivity to parameter variations due to manufacturing or environment. Because of these advantages, many amplifiers and control systems use negative feedback.

<span class="mw-page-title-main">Relaxation oscillator</span> Oscillator that produces a nonsinusoidal repetitive waveform

In electronics a relaxation oscillator is a nonlinear electronic oscillator circuit that produces a nonsinusoidal repetitive output signal, such as a triangle wave or square wave. The circuit consists of a feedback loop containing a switching device such as a transistor, comparator, relay, op amp, or a negative resistance device like a tunnel diode, that repetitively charges a capacitor or inductor through a resistance until it reaches a threshold level, then discharges it again. The period of the oscillator depends on the time constant of the capacitor or inductor circuit. The active device switches abruptly between charging and discharging modes, and thus produces a discontinuously changing repetitive waveform. This contrasts with the other type of electronic oscillator, the harmonic or linear oscillator, which uses an amplifier with feedback to excite resonant oscillations in a resonator, producing a sine wave.

<span class="mw-page-title-main">Differential amplifier</span> Electrical circuit component which amplifies the difference of two analog signals

A differential amplifier is a type of electronic amplifier that amplifies the difference between two input voltages but suppresses any voltage common to the two inputs. It is an analog circuit with two inputs and and one output , in which the output is ideally proportional to the difference between the two voltages:

<span class="mw-page-title-main">Schmitt trigger</span> Electronic comparator circuit with hysteresis

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. 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.

<span class="mw-page-title-main">Common emitter</span> Type of electronic amplifier using a bipolar junction transistor

In electronics, a common-emitter amplifier is one of three basic single-stage bipolar-junction-transistor (BJT) amplifier topologies, typically used as a voltage amplifier. It offers high current gain, medium input resistance and a high output resistance. The output of a common emitter amplifier is 180 degrees out of phase to the input signal.

<span class="mw-page-title-main">Current source</span> Electronic circuit which delivers or absorbs electric current regardless of voltage

A current source is an electronic circuit that delivers or absorbs an electric current which is independent of the voltage across it.

The open-loop gain of an electronic amplifier is the gain obtained when no overall feedback is used in the circuit.

The precision rectifier is a configuration obtained with an operational amplifier in order to have a circuit behave like an ideal diode and rectifier. It is very useful for high-precision signal processing. With the help of a precision rectifier the high-precision signal processing can be done very easily.

This article illustrates some typical operational amplifier applications. A non-ideal operational amplifier's equivalent circuit has a finite input impedance, a non-zero output impedance, and a finite gain. A real op-amp has a number of non-ideal features as shown in the diagram, but here a simplified schematic notation is used, many details such as device selection and power supply connections are not shown. Operational amplifiers are optimised for use with negative feedback, and this article discusses only negative-feedback applications. When positive feedback is required, a comparator is usually more appropriate. See Comparator applications for further information.

<span class="mw-page-title-main">Charge amplifier</span>

A charge amplifier is an electronic current integrator that produces a voltage output proportional to the integrated value of the input current, or the total charge injected.

<span class="mw-page-title-main">Operational transconductance amplifier</span>

The operational transconductance amplifier (OTA) is an amplifier whose differential input voltage produces an output current. Thus, it is a voltage controlled current source (VCCS). There is usually an additional input for a current to control the amplifier's transconductance. The OTA is similar to a standard operational amplifier in that it has a high impedance differential input stage and that it may be used with negative feedback.

In electronics, a differentiator is a circuit designed to produce an output approximately proportional to the rate of change of the input. A true differentiator cannot be physically realized, because it has infinite gain at infinite frequency. A similar effect can be achieved, however, by limiting the gain above some frequency. The differentiator circuit is essentially a high-pass filter.

An integrating ADC is a type of analog-to-digital converter that converts an unknown input voltage into a digital representation through the use of an integrator. In its basic implementation, the dual-slope converter, the unknown input voltage is applied to the input of the integrator and allowed to ramp for a fixed time period. Then a known reference voltage of opposite polarity is applied to the integrator and is allowed to ramp until the integrator output returns to zero. The input voltage is computed as a function of the reference voltage, the constant run-up time period, and the measured run-down time period. The run-down time measurement is usually made in units of the converter's clock, so longer integration times allow for higher resolutions. Likewise, the speed of the converter can be improved by sacrificing resolution.

The Miller theorem refers to the process of creating equivalent circuits. It asserts that a floating impedance element, supplied by two voltage sources connected in series, may be split into two grounded elements with corresponding impedances. There is also a dual Miller theorem with regards to impedance supplied by two current sources connected in parallel. The two versions are based on the two Kirchhoff's circuit laws.

<span class="mw-page-title-main">Transimpedance amplifier</span> Amplifier that converts current to voltage

In electronics, a transimpedance amplifier (TIA) is a current to voltage converter, almost exclusively implemented with one or more operational amplifiers. The TIA can be used to amplify the current output of Geiger–Müller tubes, photo multiplier tubes, accelerometers, photo detectors and other types of sensors to a usable voltage. Current to voltage converters are used with sensors that have a current response that is more linear than the voltage response. This is the case with photodiodes where it is not uncommon for the current response to have better than 1% nonlinearity over a wide range of light input. The transimpedance amplifier presents a low impedance to the photodiode and isolates it from the output voltage of the operational amplifier. In its simplest form a transimpedance amplifier has just a large valued feedback resistor, Rf. The gain of the amplifier is set by this resistor and because the amplifier is in an inverting configuration, has a value of -Rf. There are several different configurations of transimpedance amplifiers, each suited to a particular application. The one factor they all have in common is the requirement to convert the low-level current of a sensor to a voltage. The gain, bandwidth, as well as current and voltage offsets change with different types of sensors, requiring different configurations of transimpedance amplifiers.

The operational amplifier integrator is an electronic integration circuit. Based on the operational amplifier (op-amp), it performs the mathematical operation of integration with respect to time; that is, its output voltage is proportional to the input voltage integrated over time.

<span class="mw-page-title-main">TL431</span>

The TL431 is a three-terminal adjustable precision shunt voltage regulator integrated circuit. With the use of an external voltage divider, a TL431 can regulate voltages ranging from 2.5 to 36 V, at currents up 100 mA. The typical initial deviation of reference voltage from the nominal 2.495 V level is measured in millivolts, the maximum worst-case deviation is measured in tens of millivolts. The circuit can control power transistors directly; combinations of the TL431 with power MOS transistors are used in high efficiency, very low dropout linear regulators. The TL431 is the de facto industry standard error amplifier circuit for switched-mode power supplies with optoelectronic coupling of the input and output networks.

References

  1. "AN-49 Application Note, Rev. A" (PDF). Analog Devices . Retrieved 26 August 2017.
  2. Chaniotakis; Cory (2006). "MIT OCW: Operational Amplifier Circuits: Comparators and Positive Feedback" (PDF). Massachusetts Institute of Technology . Retrieved 26 August 2017.
  3. Kay, Art; Claycomb, Timothy (2014). "Comparator with Hysteresis Reference Design" (PDF). Texas Instruments . Retrieved 26 August 2017.
  4. Elliott Sound Products Application Notes : Zero Crossing Detectors and Comparators