EEE311 Lab Manual 2 Comparator
EEE311 Lab Manual 2 Comparator
Objectives:
1. Study the basics of op-amp.
2. Study the use of op-amp as a comparator.
3. Study the op-amp voltage transfer characteristics.
Theory:
The operational amplifier (abbreviated as OP-AMP) is a direct-coupled high-gain amplifier to
which feedback is added to control its overall response characteristic. It has very high (ideally
∞) input impedance and very low (ideally 0) output impedance. It offers all advantages of
monolithic integrated circuits, such as small size, high reliability, reduced cost, and low offset
voltage and current. For these reasons, it has gained wide acceptance as a versatile, predictable
and economic system building block. The pin diagram of dual in-line package IC-741 is shown
in Figure 1 along with the op-amp circuit symbol and connections to the pins.
Figure 1: Op-amp (IC-741) pin diagram for dual in-line package (DIP or DIL)
Figure 2. Op-amp open-loop comparator circuits, comparing (a) 2 DC input signals, (b, c) an AC signal with
ground reference, (d, e) an AC signal with a positive DC reference. Vs+ and Vs- refer to the positive and negative
power supply voltages.
Figure 2b shows a typical open loop comparator. The inverting input in this example is
connected to a ground reference voltage, while the non-inverting input is connected to the input
signal voltage. If vin is less than the reference voltage level of 0 V, the output remains at Vlow
(near 𝑉𝑠− = −10 𝑉). When the vin rises just above 0 V, the output quickly switches to Vhigh
level (near 𝑉𝑠+ = +10 𝑉). This type of circuit configuration is known as the non-inverting
open-loop comparator. In an inverting open-loop comparator (Figure 2c), the input signal is
connected to the inverting input terminal, whereas the reference voltage is connected to the
non-inverting input terminal. When we compare a signal with a 0 V reference, we also call
these circuits zero crossing detectors (Figure 2b, c). When we compare a signal with a positive
DC voltage reference, we call these circuits positive level indicators. Figures 2d and 2e show
non-inverting and inverting positive level indicators, respectively. Similarly, negative level
indicators can be constructed by connecting negative DC voltage sources at the reference input
terminals.
The internal circuit of an op-amp contains differential and push-pull amplifier stages resulting
in a high AOL. Hence, input signals of any shape (sinusoidal, triangular, or others) in the V, mV,
or even hundreds of µV range leads to saturation in the output signal. Figure 3a and 3b show
saturated rectangular output signals for the non-inverting and inverting zero-crossing detectors
for the sinusoidal input signal. With reference input (at pin 2) set to 0 V, a sinusoidal signal
applied to the non-inverting input (pin 3) will cause the output of the non-inverting comparator
to switch between its two output states without any phase difference, as shown in Figure 3a.
For the inverting configuration of the open-loop comparator, on the other hand, a similar output
is obtained with a 180° phase difference, as show in Figure 3b.
Figure 3: The input signal (vin), reference voltage (Vref), and resulting output signal (vout) of open-loop zero crossing
detector comparator circuits with (a) non-inverting configuration, (b) inverting configuration.
For the non-inverting configuration, when input vin goes even a fraction of a millivolt above
the 0 V reference level, the voltage difference will be amplified by the very AOL so that the
output rises to its positive output saturation level and remains there while the input stays above
Vref = 0 V. When the input drops just below the 0 V reference level, the output is driven to its
lower saturation level and stays there while the input remains below Vref = 0 V. Figure 4a and
4b show the transfer characteristic, vo vs. vin, for the non-inverting and inverting zero-crossing
detectors, respectively. In the narrow linear regions, the vo follows vin with a constant slope of
+AOL (non-inverting) and -AOL (inverting). In the saturation regions, the vo is at 𝑉𝑠+ when vin is
positive and at 𝑉𝑠− when vin is negative for the non-inverting configuration. This is opposite for
the inverting configuration.
Figure 4. Transfer characteristic of open-loop comparator of (a) non-inverting and (b) inverting configurations.
Equipment List:
Circuit Diagrams:
U1
7
5
1
3
6
2
V3
1Vpk 741
4
1kHz
0°
V2
15V
Procedure:
Circuit 1
• Connect the circuit shown in circuit 1.
• Set the biasing voltage VCC = 12 V at pin 7 and VEE = -12 V at pin 4.
• Set input DC voltage to 0 V. Check the response of LED (on/off).
• Now increase the input voltage until the state of LED change. Take readings.
Circuit 2
• Connect the circuit shown in circuit 2.
• Set the biasing voltage VCC = 12 V at pin 7 and VEE = -12 V at pin 4.
• Set input DC voltage to 0 V. Check the response of LED (on/off).
• Now increase the input voltage until the state of LED change. Take readings.
Vref V1 State of LED
0V
1V
2V
3V
4V
5V
6V
7V
8V
Graphs:
MULTISIM based lab work:
V1 V1
10V 10V
XMM1 XMM1
U1 U1
OPAMP_5T_VIRTUAL
V3
V3 V4 2V OPAMP_5T_VIRTUAL
10uV 15uV
V2
10V V2
10V
Circuit – 4 Circuit – 5
Procedure:
Circuit 4
• Construct the circuit in MULTISIM.
• Set input offset voltage (VOS) to 0 V and input offset current (IOS) to 0 A.
• Set to open loop gain (A) to 1 M V/V
• Set V3 and V4 and complete the following table.
V3 V4 Vd VO Liner / Saturation
-15 V -10 V
+15 V -10 V
1.000000 V 1.000001 V
+6 mV +2 mV
0 +1mV
Circuit 5
• Construct the circuit in MULTISIM.
• Set input offset voltage (VOS) to 0 V and input offset current (IOS) to 0 A.
• Set to open loop gain (A) to 100,000 V/V
• Take parameter sweep (or DC sweep) for V3
• Start from -1 mV and stop at 1 mV. For better accuracy, take at least 1000 data points.
• Using the output plot, determine the open loop gain.
Questions:
Resources:
Check the following web link for further information on comparators. You can also find
information on the window comparator here:
https://www.electronics-tutorials.ws/opamp/op-amp-comparator.html