Comparator: Differential Voltage
Comparator: Differential Voltage
Comparator
In electronics, a comparator is a device that compares two voltages or currents and switches its output to indicate which is larger. They are commonly used in devices such as analog-to-digital converters (ADCs).
Differential Voltage
The differential voltages must stay within the limits specified by the manufacturer. Early integrated comparators, like the LM111 family, and certain high-speed comparators like the LM119 family, require differential voltage ranges substantially lower than the power supply voltages (15V vs. 36V).[1] Rail-to-rail comparators allow any differential voltages within the power supply range. When powered from a bipolar (dual rail) supply,
Specific rail-to-rail comparators with p-n-p input transistors, like the LM139 family, allow input potential to drop 0.3volts below the negative supply rail, but do not allow it to rise above the positive rail.[2] Specific ultra-fast comparators, like the LMH7322, allow input signal to swing below the negative rail and above the positive rail, although by a narrow margin of only 0.2V.[3] Differential input voltage (the voltage between two inputs) of a modern rail-to-rail comparator is usually limited only by the full swing of power supply.
Comparator 4. A comparator is designed to produce well limited output voltages that easily interface with digital logic. Compatibility with digital logic must be verified while using an op-amp as a comparator. 5. Some multiple-section opamps may exhibit extreme channel-channel interaction when used as comparators. 6. Many opamps have back to back diodes between their inputs. Opamp inputs usually follow each other so this is fine. But comparator inputs are not usually the same. The diodes can cause unexpected current through inputs.
Working
A dedicated voltage comparator will generally be faster than a general-purpose operational amplifier 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 Several voltage comparator ICs 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. 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 significantly 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 eight 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 Grounded 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 .
Comparator
Key specifications
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:
Hysteresis
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.[18] For example, the LTC6702 [19] , MAX9021 [20] and MAX9031 [21] 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 [22], LTC1540 [23], MAX931 [24], MAX971 [25] and ADCMP341 [26] 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.[27] When hysteresis is added then a comparator cannot resolve signals within the hysteresis band.
Comparator
Output type
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.[28] On the basis of outputs, comparators can also be classified as open drain or A Low Power CMOS Clocked Comparator pushpull. Comparators with an open-drain output stage use an external 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.
Internal reference
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.[28] ICs with wide range of references are available such as MAX9062 [29] (200 mV reference), LT6700 [30](400 mV reference), ADCMP350 [31] (600mV reference), MAX9025 [32] (1.236V reference), MAX9040 [33] (2.048V reference), TLV3012 [34] (1.24V reference) and TSM109 [35] (2.5V reference).
Comparator
Applications
Null detectors
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 or 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 6V. One could refer to this as a sort of uncertainty in the measurement.[37]
Zero-crossing detectors
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 squares the input signal.[38]
Relaxation oscillator
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.[39]
Level shifter
This circuit requires only a single comparator with an open-drain output as in the LM393 [40], TLV3011 [41] or MAX9028 [32]. 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 [42].[28]
Analog-to-digital converters
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, successive approximation, delta-sigma modulation, folding, interpolating, dual-slope and others) in combination with other devices to achieve a multi-bit quantization.[43]
Comparator
References
[1] LM111/LM211/LM311 datasheet (http:/ / www. national. com/ ds/ LM/ LM111. pdf). National Semiconductor. January 2001. Retrieved 2010-08-05. [2] LM139/LM239/LM339/LM2901/LM3302 datasheet (http:/ / www. national. com/ ds/ LM/ LM139. pdf). National Semiconductor. March 2004. Retrieved 2010-08-05. [3] LMH7322 datasheet (http:/ / www. national. com/ ds/ LM/ LMH7322. pdf). National Semiconductor. January 2010. Retrieved 2010-08-05. [4] Malmstadt, Enke and Crouch, Electronics and Instrumentation for Scientists, The Benjamin/Cummings Publishing Company, Inc., 1981, ISBN 0-8053-6917-1, Chapter 5. [5] Ron Mancini, " Designing with comparators (http:/ / www. edn. com/ article/ CA69100. html)," EDN, March 29, 2001. [6] Rogenmoser, R.; Kaeslin, H, "The impact of transistor sizing on power efficiency in submicron CMOS circuits," Solid-State Circuits, IEEE Journal of Volume 32, Issue 7, Jul 1997 Page(s):11421145. [7] http:/ / www. maxim-ic. com/ quick_view2. cfm/ qv_pk/ 4268 [8] http:/ / www. linear. com/ pc/ productDetail. jsp?navId=H0,C1,C1154,C1002,C1463,P1593 [9] http:/ / www. national. com/ pf/ LP/ LPV7215. html [10] http:/ / www. maxim-ic. com/ quick_view2. cfm/ qv_pk/ 5823 [11] http:/ / www. microchip. com/ wwwproducts/ Devices. aspx?dDocName=en010414 [12] http:/ / www. analog. com/ en/ amplifiers-and-comparators/ comparators/ adcmp572/ products/ product. html [13] http:/ / www. national. com/ pf/ LM/ LMH7220. html [14] http:/ / www. maxim-ic. com/ quick_view2. cfm/ qv_pk/ 1481 [15] http:/ / www. linear. com/ pc/ productDetail. jsp?navId=H0,C1,C1154,C1004,C1012,P1817 [16] http:/ / www. maxim-ic. com/ quick_view2. cfm/ qv_pk/ 2490/ t/ al [17] http:/ / www. maxim-ic. com/ quick_view2. cfm/ qv_pk/ 3400/ t/ al [18] Ron Mancini, " Adding Hysteresis to comparators (http:/ / www. edn. com/ article/ CA84881. html)," EDN, May 3, 2001. [19] http:/ / www. linear. com/ pc/ productDetail. jsp?navId=H0,C1,C1154,C1004,C1012,P38930 [20] http:/ / www. maxim-ic. com/ quick_view2. cfm/ qv_pk/ 2411/ t/ al [21] http:/ / www. maxim-ic. com/ quick_view2. cfm/ qv_pk/ 2363/ t/ al [22] http:/ / www. national. com/ pf/ LM/ LMP7300. html [23] http:/ / www. linear. com/ pc/ productDetail. jsp?navId=H0,C1,C1154,C1004,C1013,P1593 [24] http:/ / www. maxim-ic. com/ quick_view2. cfm/ qv_pk/ 1219 [25] http:/ / www. maxim-ic. com/ quick_view2. cfm/ qv_pk/ 1279/ t/ al [26] http:/ / www. analog. com/ en/ power-management/ battery-management/ adcmp341/ products/ product. html [27] AN3616, Maxim Integrated Products, Adding Extra Hysteresis to Comparators (http:/ / www. maxim-ic. com/ appnotes. cfm/ an_pk/ 886/ ). [28] AN886, Maxim Integrated Products, Selecting the Right Comparator (http:/ / www. maxim-ic. com/ appnotes. cfm/ an_pk/ 886/ ). [29] http:/ / www. maxim-ic. com/ quick_view2. cfm/ qv_pk/ 5823/ t/ al [30] http:/ / www. linear. com/ pc/ productDetail. jsp?navId=H0,C1,C1154,C1004,C1013,P2340 [31] http:/ / www. analog. com/ en/ power-management/ battery-management/ adcmp350/ products/ product. html [32] http:/ / www. maxim-ic. com/ quick_view2. cfm/ qv_pk/ 4268/ t/ al [33] http:/ / www. maxim-ic. com/ quick_view2. cfm/ qv_pk/ 2122/ t/ al [34] http:/ / focus. ti. com/ docs/ prod/ folders/ print/ tlv3012. html [35] http:/ / www. datasheetcatalog. org/ datasheet/ stmicroelectronics/ 9208. pdf [37] Electronics and Instrumentation for Scientists. Malmstadt, Enke, and Crouch, The Benjamin/Cummings Publishing Co., In., 1981, pp.108110. [38] Electronics and Instrumentation for Scientists. Malmstadt, Enke, and Crouch, The Benjamin/Cummings Publishing Co., In., 1981, p.230. [39] Paul Horowitz and Winfield Hill: The Art of Electronics, Cambridge University Press, Second edition, Cambridge 1989, pp.284285. [40] http:/ / www. national. com/ mpf/ LM/ LM393. html [41] http:/ / focus. ti. com/ docs/ prod/ folders/ print/ tlv3011. html [42] http:/ / www. maxim-ic. com/ quick_view2. cfm/ qv_pk/ 1279 [43] Phillip Allen and Douglas Holberg: CMOS Analog Circuit Design, Oxford University Press, Second edition, Oxford 2002.
Comparator
External links
IC Comparator reference page at home.cogeco.ca (http://home.cogeco.ca/~rpaisley4/Comparators.html) Comparator tutorial video with example circuits (http://www.afrotechmods.com/videos/op_amp_comparator. htm)
License
Creative Commons Attribution-Share Alike 3.0 Unported //creativecommons.org/licenses/by-sa/3.0/