17
CHAPTER 5 Operational Amplifiers In this chapter, we learn how to use a new circuit element called op amp to build circuits that can perform various kinds of mathematical op- erations. Op amp is a building block of modern electronic instrumentation. Therefore, mastery of operational amplifier fundamentals is paramount to any practical application of electronic circuits. They are popular in practi- cal circuit degigns because they are versatile, inexpensive, easy to use, and fun to work with. 5.1. Introduction to Op Amp 5.1.1. Operational amplifiers (or Op Amp) is an active circuit element that can perform mathematical operations (e.g., amplification, summation, subtraction, multiplication, division, integration, differentiation) between signals . The ability of the op amp to perform these mathematical operations is the reason it is called an operational amplifier. It is also the reason for the widespread use of op amps in analog design. 5.1.2. An op amp consisting of a complex arrangement of resistors, transistors, capacitors, and diodes. Here, we ignore the details. 59

Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between

  • Upload
    others

  • View
    10

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between

CHAPTER 5

Operational Amplifiers

In this chapter, we learn how to use a new circuit element called opamp to build circuits that can perform various kinds of mathematical op-erations. Op amp is a building block of modern electronic instrumentation.Therefore, mastery of operational amplifier fundamentals is paramount toany practical application of electronic circuits. They are popular in practi-cal circuit degigns because they are versatile, inexpensive, easy to use, andfun to work with.

5.1. Introduction to Op Amp

5.1.1. Operational amplifiers (or Op Amp) is an active circuit elementthat can perform mathematical operations (e.g., amplification, summation,subtraction, multiplication, division, integration, differentiation) betweensignals .

• The ability of the op amp to perform these mathematical operationsis the reason it is called an operational amplifier. It is also the reasonfor the widespread use of op amps in analog design.

5.1.2. An op amp consisting of a complex arrangement of resistors,transistors, capacitors, and diodes. Here, we ignore the details.

59

Page 2: Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between

60 5. OPERATIONAL AMPLIFIERS

5.1.3. The circuit symbol for the op amp is shown below.

6 OutputNoninverting input 3

4 1 5-VCC

Offset Null

Inverting input 2

VCC

7

+

• It has two inputs and one output.• The inputs are marked with minus (-) and plus (+) to specify in-

verting and noninverting1 inputs, respectively.

5.1.4. As an active element, the op amp must be powered by a voltagesupply:

63

4

27

VCC+

VCC+

ioi-

i+

+

i4

i7

Although, in this class, the power supplies are often ignored in op ampcircuit diagrams for the sake of simplicity, the power supply currents mustnot be overlooked:

io = i7 + i4 + i+ + i−.

Caution: Even when pins 7 and 4 are not shown explicitly, they arealways there and the corresponding currents are also there.

1An input applied to the noninverting terminal will appear with the same polarity at the output,while an input applied to the inverting terminal will appear inverted at the output.

Page 3: Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between

5.1. INTRODUCTION TO OP AMP 61

5.1.5. The equivalent circuit of non-ideal op amp is shown below. Notethat the output section consists of a voltage-controlled source in series withthe output resistance Ro.

Ro

v-

Ri vo+ – Avd

vd+

v+

Input-output relations:

vo = Avd = A(v+ − v−)

where

vo = voltage between the output terminal and ground

v− = voltage between the inverting terminal and ground

v+ = voltage between the noninverting terminal and ground

vd = v+ − v− = differential input voltage

A = open-loop voltage gain

• In words, the op amp senses the difference between the two inputs,multiplies it by the gain A, and causes the resulting voltage to ap-pear at the output.

A is called the open-loop voltage gain because it is the gain of the opamp without any external feedback from output to input.

5.1.6. The concept of feedback is crucial to our understanding of opamp circuits. A negative feedback is achieved when the output is fedback to the inverting terminal of the op amp.

Page 4: Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between

62 5. OPERATIONAL AMPLIFIERS

Example 5.1.7. Consider the circuit below. There is a feedback pathfrom output to input. The ratio of the output voltage to the input voltageis called the closed-loop gain.

+

vo

+

vi

R1

Rf

RoRi

+ – Avd

vd+

vo

+

vi

R1

Rf

5.1.8. Typical ranges for op amp parameters are shown in the followingtable Working with a nonideal op amp is tedious because it involves dealing

Parameter Typical range Ideal valuesOpen-loop gain, A 105 to 108 ∞Input resistance, Ri 105 to 1013 Ω ∞ ΩOutput resistance, Ro 10 to 100 Ω 0 ΩSupply voltage, VCC 5 to 24 V

with very large numbers.

Example 5.1.9. Consider, again, the circuit in Example 5.1.7. SupposeR1 = 10 kΩ and Rf = 20 kΩ. Assume that the op amp has an open-loopvoltage gain of 2× 105, input resistance Ri of 2 MΩ, and output resistanceRo of 50 Ω. Find the closed-loop gain vo/vi.

It can be shown that the closed-loop gain is almost insensitive to theopen-loop gain A of the op amp. For this reason, op amps are used incircuits with feedback paths.

Page 5: Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between

5.2. IDEAL OP-AMP 63

5.2. Ideal Op-Amp

To facilitate understanding, we assume ideal op amps with the idealvalues above.

Definition 5.2.1. An ideal op amp is an amplifier with infinite open-loop gain, infinite input resistance, and zero output resistance.

Unless stated otherwise,we will assume from now on that every op amp is ideal.

5.2.2. Two important characteristics of the ideal op-amp:

(a) The current into both input terminals are zero.

i− = 0 and i+ = 0.

(b) The voltage across the input terminals is negligibly small.

vd = v+ − v− ≈ 0

orv+ ≈ v−.

vd

+

vo

+

i- = 0

v-

+

v+ = v-

+

i+ = 0+

– io

5.2.3. Caution:

Page 6: Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between

64 5. OPERATIONAL AMPLIFIERS

Example 5.2.4. An ideal op amp is used in the circuit below. Find theclosed-loop gain2 vo/vs. Determine current io when vs = 1 V.

vs

+

vo+

i0

20 kΩ

40 kΩ

5 kΩ

2closed-loop gain = ratio of the output voltage to the input voltage.

Page 7: Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between

5.3. INVERTING AMPLIFIER 65

5.3. Inverting Amplifier

Op amp can be used in circuits as modules for creating more complexcircuits. The first of such op-amp circuits is the inverting amplifier whichreverses the polarity of the input signal while amplifying it. Akey feature of the inverting amplifier is that both the input signal and thefeedback are applied at the inverting terminal of the op amp.

+

vo

+

i1

vi

R1

Rfif

Page 8: Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between

66 5. OPERATIONAL AMPLIFIERS

The equivalent circuit for the inverting amplifier is:

RfR1 voR1vi

+

vi+

+

The voltage gain is Av = vo/vi = −Rf/R1.

5.4. Noninverting Amplifier

A noninverting amplifier amplifies a signal by a constant positive gain(no inversion of polarity). The circuit for a noninverting amplifier is

+ –

vo

+

if

R1

Rf

i1

vi

Page 9: Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between

5.4. NONINVERTING AMPLIFIER 67

The voltage gain is Av = vovi

= 1 +RfR1

, which does not have a negativesign. Thus the output has the same polarity as the input.

Special case: If Rf = 0 or R1 =∞, or both, the gain becomes 1. Un-der this conditions, the circuit becomes a voltage follower (The outputfollows the input).

+ –

vo = vi

+

vi

A voltage follower is used to isolate two cascaded stages of a circuit.

+ –

vo

+

viFirst

stage

Second

stage

+

Page 10: Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between

68 5. OPERATIONAL AMPLIFIERS

Example 5.4.1. Calculate the output voltage vo for the op amp circuitbelow.

+ –

vo

+

6 V4 V

10 kΩ

4 kΩ

Page 11: Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between

5.5. SUMMING AMPLIFIER 69

5.5. Summing Amplifier

A summing amplifier is an op-amp circuit that combines several inputsand produces an output that is the weighted sum of the inputs. For thisreason, the circuit is called a summer.

+

vo

+

if

a

R1 Rf

iR2

R3

i1

i2

i3

v1

v2

v3

vo = −(Rf

R1v1 +

Rf

R2v2 +

Rf

R3v3

).

Needless to say, the summer can have more that three inputs.

Page 12: Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between

70 5. OPERATIONAL AMPLIFIERS

5.6. Difference Amplifier

A difference amplifier is a device that amplifies the difference betweentwo inputs but rejects any signals common to the two inputs.

+

vo

+

va

v1

vb

v2

R1 0

0R3

R2

R4

vo =(1 +R2/R1)

(1 +R3/R4)v2 −

R2

R1v1 =

R2(1 +R1/R2)

R1(1 +R3/R4)v2 −

R2

R1v1

Since a difference amplifier must reject a signal common to the twoinputs, the amplifier must have the property that vo = 0 when v1 = v2.This property exists when

R1

R2=R3

R4.

Page 13: Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between

5.6. DIFFERENCE AMPLIFIER 71

Thus,

vo =R2

R1(v2 − v1) .

If R2 = R1 and R3 = R4, the difference amplifier becomes a subtractor,with the output

vo = v2 − v1.

Example 5.6.1. Design an op amp circuit with inputs v1 and v2 suchthat

vo = −5v1 + 3v2.

Page 14: Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between
Page 15: Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between

72 5. OPERATIONAL AMPLIFIERS

5.7. Cascaded of Op Amp Circuits

In practice, we can connect op amp circuits in cascade (i.e., head totail) to achieve a large overall gain. Each circuit in the cascade is calledstage. The output of one stage is the input to the next stage.

Op amp circuits have the advantage that they can be cascaded withoutchanging their input-output relationships. This is due to the fact thateach (ideal) op amp circuit has infinite input resistance and zero outputresistance.

vo = A3v3

+

v1Stage 2

A2

Stage 3

A3

+

Stage 1

A1v2 = A1v1

+

v3 = A2v2

+

5.8. Application: Digital-to-Analog Converter (DAC)

The digital-to-analog converter (DAC) transforms digital signals intoanalog form. A typical example of a four-bit DAC is shown in (a) below.

+ –

Vo

R4Rf

MSB

R3R2R1

V1 V2 V3 V4

LSB

(b)

Four-bit

DAC

Digital

Input

(0000–1111)

Analog

output

(a)

Page 16: Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between

5.9. APPLICATION: INSTRUMENTATION(AL) AMPLIFIERS (IA) 73

5.9. Application: Instrumentation(al) Amplifiers (IA)

One of the most useful and versatile op amp circuits for precision mea-surement and process control. IA amplifies the difference between the inputsignals.

+ –

vo

v1Inverting input

Output

(a)

R

+ –

+ –

RG R

R R

R

R

Gain set

Noninverting input

Gain set

v2

1

3

2

+

(b)

vo =

(1 +

2R

RG

)(v2 − v1) .

Page 17: Operational Ampli ers 5.1. Introduction to Op Amp Op Amp ... 2014 ch 5 u4.pdf · = di erential input voltage A= open-loop voltage gain In words, the op amp senses the di erence between

74 5. OPERATIONAL AMPLIFIERS

The instrumentation amplifier amplifies small differential signal voltagessuperimposed on larger common-mode voltages. Since the common-modevoltages are equal, they cancel each other.

The IA has three major characteristics:

(a) The voltage gain is adjusted by one external resistor RG.(b) The input impedance of both inputs is very high and does not vary

as the gain is adjusted.(c) The output vo depends on the difference between the inputs, not on

the voltage common to them.

Typical example of IA has gain from 1 to 1000.