Dictionary:
com·pa·ra·tor (kŏm'pə-rā'tər, kəm-păr'ə-) ![]() |
| 5min Related Video: comparator |
| Britannica Concise Encyclopedia: comparator |
For more information on comparator, visit Britannica.com.
| Sci-Tech Encyclopedia: Comparator |
An electronic circuit that produces an output voltage or current whenever two input levels simultaneously satisfy predetermined amplitude requirements. A comparator circuit may be designed to respond to continuously varying (analog) or discrete (digital) signals, and its output may be in the form of signaling pulses which occur at the comparison point or in the form of discrete direct-current (dc) levels.
A linear comparator operates on continuous, or nondiscrete, waveforms. Most often one voltage, referred to as the reference voltage, is a variable dc or level-setting voltage and the other is a time-varying waveform. When the signal voltage becomes equal to the reference voltage, a discrete output level is obtained. If the time-varying (signal) voltage approaches the reference voltage from a more negative level the output voltage is of one polarity; if it approaches the reference from a more positive value the output is of the opposite polarity.
A very high-gain operational amplifier whose output is inverting with respect to one input terminal and noninverting with respect to the other and whose output voltage is limited at upper and lower levels (usually at voltages near the supply voltage levels) may be used as a voltage comparator. The high-gain operational-amplifier comparator used in the open-loop mode is designated as a nonregenerative comparator because there is no positive feedback path from the output back to the input.
An operational-amplifier comparator connected in a positive-feedback mode is referred to as a regenerative comparator. If the voltage gain is very high, then there is a difference between the input levels which will cause the output to switch.
This difference in input levels is referred to as the hysteresis of the circuit. Such regenerative comparators are generically referred to as Schmitt triggers. Historically, they were first implemented as discrete two-vacuum-tube devices, which were later replaced by transistors and then by the operational amplifier feedback circuit. See also
The term digital comparator has historically been used when the comparator circuit is specifically designed to respond to a combination of discrete level (digital) signals, for example, when one or more such input signals simultaneously reach the reference level which causes the change of state of the output. Among other applications, such comparators perform the function of the logic gate such as the AND, OR, NOR, and NAND functions. More often, the term digital comparator describes an array of logic gates designed specifically to determine whether one binary number is less than or greater than another binary number. Such digital comparators are sometimes called magnitude or binary comparators.
| Computer Desktop Encyclopedia: comparator |
A device that compares two quantities and determines their equality.
Download Computer Desktop Encyclopedia to your iPhone/iTouch
| Wikipedia: Comparator |
In electronics, a comparator is a device which compares two voltages or currents and switches its output to indicate which is larger.
Contents |
The input voltages must not exceed the power voltage range:

In the case of TTL/CMOS logic output comparators, negative inputs are not allowed:

An operational amplifier has a well balanced difference input and a very high gain. The parallels in the characteristics allows the op-amps to serve as comparators in some functions.[1]
A standard op-amp operating in open loop configuration (without negative feedback) can be used as a comparator. When the non-inverting input (V+) is at a higher voltage than the inverting input (V-), the high gain of the op-amp causes it to output the most positive voltage it can. When the non-inverting input (V+) drops below the inverting input (V-), the op-amp outputs the most negative voltage it can. Since the output voltage is limited by the supply voltage, for an op-amp that uses a balanced, split supply, (powered by ± VS) this action can be written:

where sgn(x) is the sign function. Generally, the positive and negative supplies VS will not match absolute value:
when
else
when 
In practice, using an operational amplifier as a comparator presents several disadvantages as compared to using a dedicated comparator:[2]
A dedicated voltage comparator will generally be faster than a general-purpose operational amplifier (op-amp) pressed into service as a comparator. A dedicated voltage comparator may also contain additional features such as an accurate, internal voltage reference, an adjustable hysteresis and a clock gated input.
A dedicated voltage comparator chip such as LM339 is designed to interface with a digital logic interface (to a TTL or a CMOS). The output is a binary state often used to interface real world signals to digital circuitry (see analog to digital converter). If there is a fixed voltage source from, for example, a DC adjustable device in the signal path, a comparator is just the equivalent of a cascade of amplifiers. When the voltages are nearly equal, the output voltage will not fall into one of the logic levels, thus analog signals will enter the digital domain with unpredictable results. To make this range as small as possible, the amplifier cascade is high gain. The circuit consists of mainly Bipolar transistors except perhaps in the beginning stage which will likely be field effect transistors. For very high frequencies, the input impedance of the stages is low. This reduces the saturation of the slow, large P-N junction bipolar transistors that would otherwise lead to long recovery times. Fast small Schottky diodes, like those found in binary logic designs, improve the performance significanly though the performance still lags that of circuits with amplifiers using analog signals. Slew rate has no meaning for these devices. For applications in flash ADCs the distributed signal across 8 ports matches the voltage and current gain after each amplifier, and resistors then behave as level-shifters.
The LM339 accomplishes this with an open collector output. When the inverting input is at a higher voltage than the non inverting input, the output of the comparator connects to the negative power supply. When the non inverting input is higher than the inverting input, the output is 'floating' (has a very high impedance to ground).
| Inputs | Output |
|---|---|
| − > + | Negative |
| + > − | Floating |
With a pull-up resistor and a 0 to +5V power supply, the output takes on the voltages 0 or +5 and can interface with TTL logic:
when
else 0.While it is easy to understand the basic task of a comparator, that is, comparing two voltages or currents, several parameters must be considered while selecting a suitable comparator:
While in general comparators are “fast”, their circuits are not immune to the classic speed-power tradeoff. High speed comparators use transistors with larger aspect ratios and hence also consume more power.[3] Depending on the application, select either a comparator with high speed or one that saves power. For example, nano-powered comparators in space-saving chip-scale packages (UCSP), DFN or SC70 packages such as MAX9027, LTC1540, LPV7215, MAX9060 and MCP6541 are ideal for ultra-low-power, portable applications. Likewise if a comparator is needed to implement a relaxation oscillator circuit to create a high speed clock signal then comparators having few nano seconds of propagation delay may be suitable. ADCMP572 (CML output), LMH7220 (LVDS Output), MAX999 (CMOS output / TTL output), LT1719 (CMOS output / TTL output), MAX9010 (TTL output), and MAX9601 (PECL output) are examples of some good high speed comparators.
A comparator normally changes its output state when the voltage between its inputs crosses through approximately zero volts. Small voltage fluctuations due to noise, always present on the inputs, can cause undesirable rapid changes between the two output states when the input voltage difference is near zero volts. To prevent this output oscillation, a small hysteresis of a few millivolts is integrated into many modern comparators.[4] For example, the LTC6702, MAX9021 and MAX9031 have internal hysteresis desensitizing them from input noise. In place of one switching point, hysteresis introduces two: one for rising voltages, and one for falling voltages. The difference between the higher-level trip value (VTRIP+) and the lower-level trip value (VTRIP-) equals the hysteresis voltage (VHYST).
If the comparator does not have internal hysteresis or if the input noise is greater than the internal hysteresis then an external hysteresis network can be built using positive feedback from the output to the non-inverting input of the comparator. The resulting Schmitt trigger circuit gives additional noise immunity and a cleaner output signal. Some comparators such as LMP7300, LTC1540, MAX931, MAX971and ADCMP341 also provide the hysteresis control through a separate hysteresis pin. These comparators make it possible to add a programmable hysteresis without feedback or complicated equations. Using a dedicated hysteresis pin is also convenient if the source impedance is high since the inputs are isolated from the hysteresis network.[5] When hysteresis is added then a comparator cannot resolve signals within the hysteresis band.
Because comparators have only two output states, their outputs are near zero or near the supply voltage. Bipolar rail-to-rail comparators have a common-emitter output that produces a small voltage drop between the output and each rail. That drop is equal to the collector-to-emitter voltage of a saturated transistor. When output currents are light, output voltages of CMOS rail-to-rail comparators, which rely on a saturated MOSFET, range closer to the rails than their bipolar counterparts.[6]
On the basis of outputs, comparators can also be classified as open drain or push–pull. Comparators with an open-drain output stage use a pull up resistor to a positive supply that defines the logic high level. Open drain comparators are more suitable for mixed-voltage system design. Since the output is high impedance for logic level high, open drain comparators can also be used to connect multiple comparators on to a single bus. Push pull output does not need a pull up resistor and can also source current unlike an open drain output.
The most frequent application for comparators is the comparison between a voltage and a stable reference. Most comparator manufacturers also offer comparators in which a reference voltage is integrated on to the chip. Combining the reference and comparator in one chip not only saves space, but also draws less supply current than a comparator with an external reference.[6] ICs with wide range of references are available such as MAX9062(200 mV reference), LT6700(400 mV reference), ADCMP350(600mV reference), MAX9025(1.236V reference), MAX9040(2.048V reference), TLV3012(1.24V reference) and TSM109(2.5V reference).
A null detector is one that functions to identify when a given value is zero. Comparators can be a type of amplifier distinctively for null comparison measurements. It is the equivalent to a very high gain amplifier with well-balanced inputs and controlled output limits. The circuit compares the two input voltages, determining the larger. The inputs are an unknown voltage and a reference voltage, usually referred to as vu and vr. A reference voltage is generally on the non-inverting input (+), while vu is usually on the inverting input (-). (A circuit diagram would display the inputs according to their sign with respect to the output when a particular input is greater than the other.) The output is either positive negative, for example +/-12V. In this case, the idea is to detect when there is no difference between in the input voltages. This gives the identity of the unknown voltage since the reference voltage is known.
When using a comparator as a null detector, there are limits as to the accuracy of the zero value measurable. Zero output is given when the magnitude of the difference in the voltages multiplied by the gain of the amplifier is less than the voltage limits. For example, if the gain of the amplifier is 106, and the voltage limits are +/-6V, then no output will be given if the difference in the voltages is less than 6μV. One could refer to this as a sort of uncertainty in the measurement.[7]
For this type of detector, a comparator detects each time an ac pulse changes polarity. The output of the comparator changes state each time the pulse changes its polarity, that is, the output is HI (high) for a positive pulse and LO (low) for a negative pulse. The comparator also amplifies and squares the input signal.[8]
A comparator can be used to build a relaxation oscillator. It uses both positive and negative feedback. The positive feedback is a Schmitt trigger configuration. Alone, the trigger is a bistable multivibrator. However, the slow negative feedback added to the trigger by the RC circuit causes the circuit to oscillate automatically. That is, the addition of the RC circuit turns the hysteretic bistable multivibrator into an astable multivibrator.[9]
This circuit requires only a single comparator with an open-drain output as in the LM393, TLV3011 or MAX9028. The circuit provides great flexibility in choosing the voltages to be translated by using a suitable pull up voltage. It also allows the translation of bipolar ±5V logic to unipolar 3V logic by using a comparator like the MAX972.[6]
When a comparator performs the function of telling if an input voltage is above or below a given threshold, it is essentially performing a 1-bit quantization. This function is used in nearly all analog to digital converters (such as Flash, Pipeline, SAR, Delta Sigma, Folding, Interpolating, Dual-slope and others) in combination with other devices to achieve a multi-bit quantization. [10]
This article incorporates public domain material from the General Services Administration document "Federal Standard 1037C".
| Look up comparator in Wiktionary, the free dictionary. |
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)
| blink microscope (optics) | |
| digital comparator (electronics) | |
| linear comparator (electronics) |
| What are comparing integers? Read answer... | |
| What is comparative of new? Read answer... | |
| What are Comparative Relationships? Read answer... |
| Why comparator circuit is called comparator? | |
| Is sigma comparator is electrical comparator? | |
| What is the difference between compared to and compared with? |
Copyrights:
![]() | Dictionary. The American Heritage® Dictionary of the English Language, Fourth Edition Copyright © 2007, 2000 by Houghton Mifflin Company. Updated in 2009. Published by Houghton Mifflin Company. All rights reserved. Read more | |
![]() | Britannica Concise Encyclopedia. Britannica Concise Encyclopedia. © 2006 Encyclopædia Britannica, Inc. All rights reserved. Read more | |
![]() | Sci-Tech Encyclopedia. McGraw-Hill Encyclopedia of Science and Technology. Copyright © 2005 by The McGraw-Hill Companies, Inc. All rights reserved. Read more | |
![]() | Computer Desktop Encyclopedia. THIS COPYRIGHTED DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher. © 1981-2009 Computer Language Company Inc. All rights reserved. Read more | |
![]() | Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Comparator". Read more |
Mentioned in