红包扫雷苹果下载地址while both operational amplifiers and voltage comparators have been with us since before 1970, the similarities and differences tend to be vague. this discussion will help in understanding this important issue.
i well remember the first time that i saw an operational amplifier; it was 1965 at cambridge electron accelerator –it was a mysterious box containing numerous transistors that could be connected in various ways for various functions. both analog and digital integrated circuits (rtl –resistor transistor logic) would soon be introduced, but i never could have guessed what the future would hold. now some 50years later having used both op amps and comparators, i have good understanding of these devices and wish to pass some practical information along.
红包扫雷苹果下载地址perhaps the most popular operational amplifiers are the venerable lm741 and the more recent lm324. the most popular comparators include the lm311 and the lm339. these were developed by national semiconductor, soon became industry standards and subsequently licensed and enhanced by numerous manufacturers including ti, motorola etc.
a cursory glance may suggest that the two schematics are very similar with both having identical differential inputs, but observe the differences in the output structure. the lm324 has a complementary output while the lm339 is open collector. in the complementary output, current can flow in either direction as required (either source or sink) while the open collector output can only sink current. this basic difference is typical of all op amps and comparators (although a few comparators have complementary outputs).
红包扫雷苹果下载地址another more subtle difference is the presence of a compensation capacitor in the op amp –this is typical of perhaps 99% of all op amps. an operational amplifier is slowed down by the compensation capacitor in order to make it stable (prevent oscillation), while a comparator is intended to be as fast as possible in order to minimize propagation delay and to provide fast transition time at the output. however, both op amps and comparators often share this common problem: unwanted oscillation.
红包扫雷苹果下载地址the operational amplifier is intended for linear operation where the output may be at any voltage within the limits of the power supply rails. the voltage comparator is simply a 1bit analog to digital converter where the output is always in positive or negative saturation.
Power supplies (or rails)
the ground rail is generally logic common. in a single supply comparator, it is also generally the negative rail or the most negative voltage in the circuit. some comparators like the lm311 cannot compare voltages at ground potential due to limitations in the common mode input voltage range so they require a negative rail to power the analog section. these devices offer a separate logic ground pin that is tied to logic common. so in the lm311 class of comparators there are (3) rails: common, analog positive and analog negative. a possible 4th rail would be the logic positive rail that is equal or lower in voltage than the analog positive power supply rail –this is what powers the output pull-up resistor. the analog positive and negative rails are often ±12v, but can actually be whatever is desired or required such as ±5v –also, they need not be equal in voltage.
note that some comparators (perhaps 10%) have a complementary rather than open collector output –with such, the analog positive rail must be equal in voltage to the logic positive rail.
Open collector output
the open collector output is the usual means of interfacing the comparator output to the logic input. such requires an external pull-up resistor. it allows the logic positive rail to be lower in voltage than the analog positive rail. open collector outputs also provide the means of a “wired or” connection where multiple open collector outputs are tied together –all open collector outputs must be high (off) in order for the output to go high.
Op amps as comparators
红包扫雷苹果下载地址op amps are frequently used as comparators –i do this commonly. this is practical where high speed is not a requirement and where single supply operation is feasible. note also that op amps and comparators have incompatible pin-outs and cannot easily be substituted.
Comparators as op amps
very, very seldom are comparators used as op amps, but never say never. here is an application note that shows how to make it work. the addition of the output capacitor slows the device so that it can operate without oscillation in the linear output voltage range. the only time this might be practical is when a low performance op amp function is required, but the only device available is one section of an lm339 quad comparator. now, i have never done this, but it would make a great experiment.
Use the LP311 instead of the LM311
红包扫雷苹果下载地址while the lm311 will probably never go away, it is a power hog with a supply current of 5ma. the lp311 runs about 300ua –much better for battery and experimental applications. “lp” indicates “low power.”
For the future
applying a comparator as an op amp, an experiment