Lecture 3 Basic Op-Amp Circuits
Lecture 3 Basic Op-Amp Circuits
• Summing amplifiers
𝑹𝟐
𝑽𝑹𝑬𝑭 = 𝑽𝑩𝒂𝒕𝒕𝒆𝒓𝒚 𝑽𝑹𝑬𝑭 = +𝑽 𝑽𝑹𝑬𝑭 = 𝑽𝒁
𝑹𝟏 + 𝑹𝟐
• Hysteresis means that there is a higher reference level when the input voltage goes from
a lower to higher value than when it goes from a higher to a lower value.
• Comparator with positive feedback for hysteresis uses two reference levels in order to
trigger the actual input voltage and reduce or remove the effect of the noise.
• The two reference levels are referred to as the upper trigger point (UTP) and the lower
trigger point (LTP)
Can you think of an application example of the Hysteresis?
Dr. ESAM ZAFAR
Comparator
Reducing Noise Effects with Hysteresis:
𝑹𝟐 𝟏𝟎𝟎 𝒌
• 𝑽𝑼𝑻𝑷 = (+𝑽𝒐𝒖𝒕(𝒎𝒂𝒙) ) = (+𝟓) = +𝟐. 𝟓 𝑽
𝑹𝟏 +𝑹𝟐 𝟐𝟎𝟎 𝒌
• 𝑽𝑳𝑻𝑷 = −𝟐. 𝟓 𝑽
𝑽𝑹𝟏 ±𝟓. 𝟒 𝑽
𝑰𝑹𝟏 = = = ±𝟓𝟒 𝝁𝑨
𝑹𝟏 𝟏𝟎𝟎𝒌
• Since the noninverting input current is negligible:
𝑰𝑹𝟏 = 𝑰𝑹𝟐 = ±𝟓𝟒 𝝁𝑨 and 𝑽𝑹𝟐 = 𝑰𝑹𝟐 𝑹𝟐 = 𝟒𝟕𝒌 ±𝟓𝟒 𝝁𝑨 = ±𝟐. 𝟓𝟒 𝑽
• Thus:
𝑽𝒐𝒖𝒕 = 𝑽𝑹𝟏 + 𝑽𝑹𝟐 = ±𝟕. 𝟗𝟒 𝑽
• Now, we can find the UTP and the LTP:
𝑹𝟐 𝟒𝟕 𝒌
𝑽𝑼𝑻𝑷 = (+𝑽𝒐𝒖𝒕(𝒎𝒂𝒙) ) = (+𝟕. 𝟗𝟒) = +𝟐. 𝟓𝟒 𝑽 𝐚𝐧𝐝 𝑽𝑳𝑻𝑷 = −𝟐. 𝟓𝟒 𝑽
𝑹𝟏 + 𝑹𝟐 𝟏𝟒𝟕 𝒌 Dr. ESAM ZAFAR
Comparator
Example 3 solution:
• The output waveform for the given input voltage is:
Bonus mark!
Determine the output voltage, and
the upper and lower trigger points if
the Zener diodes are 3.3 V devices
and R1 = 150 kΩ, R2 = 68 kΩ. And
draw the input and output
waveforms with all respected
values.
• For example, 6- or 8-bit flash converters are readily available. These ADCs are
useful in applications that require the fastest possible conversion times, such
as video processing.
𝑽𝑰𝑵𝟏 𝑽𝑰𝑵𝟐
𝑽𝑶𝒖𝒕 =− + 𝑹 = −(𝑽𝑰𝑵𝟏 + 𝑽𝑰𝑵𝟐 )
𝑹 𝑹
And this is called a unity-gain summing amplifier
• With n inputs:
𝑹𝒇
𝑽𝑶𝒖𝒕 = − (𝑽𝑰𝑵𝟏 + 𝑽𝑰𝑵𝟐 + 𝑽𝑰𝑵𝟑 + ⋯ + 𝑽𝑰𝑵𝒏 )
𝑹
• This is Averaging amplifier since the ratio of the feedback resistor to the input
resistors is 1/n = 0.25, The output voltage is:
𝑅𝑓 25 𝑘
𝑉𝑂𝑢𝑡 =− 𝑉𝐼𝑁1 + 𝑉𝐼𝑁2 + 𝑉𝐼𝑁3 + 𝑉𝐼𝑁4 = − 10 = −2.5 𝑉
𝑅 100 𝑘
• This is a scaling adder, since the resistor values are different, so we calculate
the weight for each input then calculate the output voltage:
• Weight of input 1: 10k/47k = 0.213
• Weight of input 2: 10k/100k = 0.1
• Weight of input 3: 10k/10k = 1.0
𝑉𝑂𝑢𝑡 = − 0.213𝑉𝐼𝑁1 + 0.1𝑉𝐼𝑁2 + 1.0𝑉𝐼𝑁3 = − 0.213 3 + 0.1 2 + 1 8 = −8.84 𝑉
Dr. ESAM ZAFAR
Summing amplifiers
Scaling adder application:
The resistors are inversely proportional
• An application of a scaling adder is the D/A
to the binary column weights
converter circuit shown here. D/A conversion is an
important interface process for converting digital
signals to analog (linear) signals.
𝟓
𝑰𝟏 = = 0.05 mA
𝟏𝟎𝟎𝒌
𝟓
𝑰𝟐 = = 𝟎. 𝟏 𝒎𝑨
𝟓𝟎𝒌
𝟓
𝑰𝟑 = = 𝟎. 𝟐 𝒎𝑨
𝟐𝟓𝒌
Dr. ESAM ZAFAR
Summing amplifiers
Example 5 solution:
• The output voltage is proportional to the current through the feedback resistor Rf,
therefore:
𝑽𝑶𝑼𝑻(𝑫𝟎) = −𝑹𝒇 𝑰𝟎 = −𝟎. 𝟎𝟐𝟓 𝒎𝑨 𝟏𝟎𝐤 = −𝟎. 𝟐𝟓 𝐕
∆𝑽𝒐𝒖𝒕 𝑽𝒊𝒏
=−
∆𝒕 𝑹𝒊 𝑪
Or
𝟏
𝑽𝒐𝒖𝒕 =− න 𝑽𝒊𝒏 𝒕 𝒅𝒕
𝑹𝒊 𝑪
• Integrators are especially useful in triangular-wave oscillators as we will see
next in course.
Dr. ESAM ZAFAR
The Op-Amp Integrator
Example 6: Determine the rate of change of the output voltage in
response to the input square wave, as shown for the ideal
integrator in the figure. The output voltage is initially zero, and
the pulse width is 100 µS. Describe the output and draw the
waveform.
∆𝑽𝒐𝒖𝒕 𝑽𝒊𝒏 𝟐. 𝟓 𝒌𝑽
=− =− = −𝟐𝟓 = −𝟐𝟓 𝒎𝑽/𝝁𝒔
∆𝒕 𝑹𝒊 𝑪 𝟏𝟎𝒌 𝟎. 𝟎𝟏𝝁 𝒔
The output is a negative-
going ramp
• The rate of change of the output voltage during the time that the input is at -
2.5 V (capacitor discharging) is: The output is a positive-
going ramp
∆𝑽𝒐𝒖𝒕 𝑽𝒊𝒏 𝟐. 𝟓 𝒌𝑽
=+ =+ = +𝟐𝟓 = +𝟐𝟓 𝒎𝑽/𝝁𝒔
∆𝒕 𝑹𝒊 𝑪 𝟏𝟎𝒌 𝟎. 𝟎𝟏𝝁 𝒔
Dr. ESAM ZAFAR
The Op-Amp Integrator
Example 6 solution:
• During the time the input is at +2.5 V, the output will go from 0 to -5 V.
• During the time the input is at -2.5 V, the output will go from -5 V to 0.
• Therefore, the output is a triangular wave with peaks at 0 V and -5 V:
𝒎𝑽
∆𝑽𝒐𝒖𝒕 = +𝟓𝟎 𝟏𝟎𝟎 𝝁𝒔 = 𝟓 𝑽
𝝁𝒔
Bonus mark!
Modify the integrator to
make the output change
100 µs 100 µs 100 µs
from 0 to -5 V in 1𝟎𝟎 𝝁𝒔
with the same input.
𝑽𝑪 𝟏𝟎 𝑽
= = 𝟐 𝑽/µ𝒔
𝒕 𝟓µ
𝑽𝑪 𝑽
𝑽𝒐𝒖𝒕 =− 𝑹𝒇 𝑪 = −𝟐 𝟐. 𝟐𝒌 𝟎. 𝟎𝟎𝟏µ = −𝟒. 𝟒 𝑽
𝒕 µ𝒔
• Therefore, the output voltage for the negative-going
ramp is +4.4 V