EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

22
1 1 SM EECE 251, Set 5 EECE251 Circuit Analysis I Set 5: Operational Amplifiers Shahriar Mirabbasi Department of Electrical and Computer Engineering University of British Columbia [email protected] 2 SM EECE 251, Set 5 Amplifiers There are various types of amplifiers. Perhaps the most common type is a voltage amplifier (usually referred to simply as an amplfier!) where both input and output of the amplifier are voltages: A bit more realistic schematic: V in V out V in V out Supply + - + - Common Ground

Transcript of EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

Page 1: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

1

1SMEECE 251, Set 5

EECE251

Circuit Analysis I

Set 5: Operational Amplifiers

Shahriar MirabbasiDepartment of Electrical and Computer Engineering

University of British [email protected]

2SMEECE 251, Set 5

Amplifiers

• There are various types of amplifiers.

• Perhaps the most common type is a voltage amplifier (usuallyreferred to simply as an amplfier!) where both input and outputof the amplifier are voltages:

• A bit more realistic schematic:

Vin Vout

Vin Vout

Supply

+

-

+

- Common Ground

Page 2: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

2

3SM

Amplifiers

• Typically, amplifiers have two supplies: One is positive (+Vcc)and one is negative (–Vcc).

EECE 251, Set 5

Vin Vout

+Vcc

+

-

+

-

Common Reference (Ground)

–Vcc

4SM

Saturation

• A practical limitation for amplifiers (at least the ones that we willsee in this course) is that the magnitude of their output voltagecannot exceed the supply, that is:

–Vcc ≤ Vout ≤ +Vcc

• If the output wants to go beyond the supplies (for example whenthe input is positive and large) then it will be clipped at +Vcc :

Vout = +Vcc

• If the output is so negative then it will be limited by –Vcc:

Vout = –Vcc

• In these cases we say that the amplifier is saturated

EECE 251, Set 5

Page 3: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

3

5SM

Saturation

• Often for simplifying the drawings, the supplies and groundconnections of the amplifiers will not be explicitly shown

EECE 251, Set 5

Vin Vout

+Vcc

+

-

+

-

Common Reference (Ground)

–Vcc

Vin Vout

+

-

+

-

+Vcc

–Vcc

+Vcc

–Vcc

6SM

Equivalent Model of a (Voltage) Amplifier

• A voltage amplifier can be modeled with voltage-controlledvoltage source:

EECE 251, Set 5

Vout = AVin

Page 4: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

4

7SMEECE 251, Set 5

Ideal Amplifier

• What do you think the input and output resistance of an idealamplifier should be?

• Let’s look at a example:

• Let’s assume you have a signal source with a 50Ω resistance(its Thevenin equivalent is the signal voltage source in serieswith a 50Ω) and a load of 4Ω.

• What happens if we naively connect the output of the signalsource to the load?

8SMEECE 251, Set 5

Ideal Amplifier

• What if we insert an amplifier between the source and the load.

• In order to maximize the signal at the output can you guess whatshould be the values for Rin and Rout?

Page 5: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

5

9SMEECE 251, Set 5

Ideal Amplifier

Rin → ∞ and Rout → 0

10SM

Buffer

• An amplifier with the gain of one is typically referred to as“buffer”.

• Buffers are very useful when one wants to “drive” a lowresistance with a signal source that has a large seriesresistance.

EECE 251, Set 5

Page 6: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

6

11SM

Differential Amplifier

• An amplifier that has two inputs and amplifies the potentialdifference between its input nodes (that is, it amplifies thedifference between the voltages of its two inputs)

EECE 251, Set 5

+Vout=A(V1-V2)

+

-

+

-

V2

+

-V1

inverting input

non-inverting input

12SMEECE 251, Set 5

Equivalent Model for a Differential Amplifier

vd = v2 – v1 and vo = Avd = A(v2 –v1)

Page 7: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

7

13SMEECE 251, Set 5

Differential Amplifier

For ideal differential amplifier

Ri → ∞ and Ro→ 0

14SMEECE 251, Set 5

Operational Amplifier

• Operational amplifier (or op amp for short) is a differentialamplifier whose gain is very large.

• Ideal op amp is an ideal differential amplifier with infinite gain!

With Ri → ∞ and Ro→ 0

and A → ∞

Page 8: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

8

15SM

Operational Amplifiers

EECE 251, Set 5

16SM

Operational Amplifiers

EECE 251, Set 5

Page 9: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

9

17SMEECE 251, Set 5

Operational Amplifiers (Op Amps)

• In light of their large gain, op amps are usually used in anegative feedback configuration where their output is somehow(usually through a passive component) is connected to theirnegative (inverting) input.

• If there is no feedback, what do you expect the output will be?

• In practice, If Vp > Vn then the output will be saturated to thepositive supply. Why?

• And, if Vp < Vn then the output will be saturated to the negativesupply

18SMEECE 251, Set 5

Op Amp

• What is the relationship between Vp and Vn in an op amp withnegative feedback?

Page 10: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

10

19SM

Op Amp

• What is the relationship between Vp and Vn in an op amp withnegative feedback?

EECE 251, Set 5

20SM

Op Amps

• Op amps were designed to performed mathematical operationssuch as subtraction, addition, multiplication, division, integration,and differentiation (therefore the name operational amplifier!).

• So let’s have a look at how we can perform these operationsusing op amps.

• Note that in all these cases we should make sure that we have anegative feedback. Why?

EECE 251, Set 5

Page 11: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

11

21SM

Op Amps

• Strategy to analyze op-amp circuits (assuming ideal op amps):

– Check to see if there is a negative feedback• If so, then use: Vp=Vn. If there is no negative feedback then we

can’t assume anything about Vp and Vn.

– Input currents In and Ip are both zero.

– Apply nodal analysis

– Solve nodal equations to express output voltage in terms ofinput signals.

EECE 251, Set 5

22SM

Inverting Amplifier

EECE 251, Set 5

Page 12: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

12

23SM

Example

• What is the gain of this circuit, that is, what is vo/vi?

• If vi=0.5V what is the output voltage? What is the current in the10kΩ resistor?

EECE 251, Set 5

24SM

Non-inverting Amplifier

• Find the gain (vo/vi) of the following circuit?

EECE 251, Set 5

Page 13: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

13

25SM

Buffer

• Also known as voltage follower or unity gain amplifier

• What is the use of such amplifier?

EECE 251, Set 5

26SM

Example

• In the following circuit, find the output voltage.

EECE 251, Set 5

Page 14: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

14

27SM

Summing Amplifier

EECE 251, Set 5

28SM

Difference Amplifier

EECE 251, Set 5

Page 15: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

15

29SM

Example

• Design an op amp circuit with inputs v1 and v2 such that

vo= – 2v1+1.5v2

EECE 251, Set 5

30SM

Differentiator

EECE 251, Set 5

Page 16: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

16

31SM

Integrator

EECE 251, Set 5

32SM

Logarithm!

• Let’s assume that for a diode (a component that we will seelater) we have

• In the following circuit, find the relationship between vo and vi .

EECE 251, Set 5

TV

Dv

es

ID

i ≈

Page 17: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

17

33SM

Exponential

• In the following circuit, find the relationship between vo and vi .

EECE 251, Set 5

34SM

Multiplication and Division

• Can you think of a circuit that can be used to multiply twovoltages?

• How about a circuit that can be used to divide two voltages?

EECE 251, Set 5

Page 18: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

18

35SM

Example

EECE 251, Set 5

• The following circuit is an electronic ammeter. It operates asfollows: the unknown current, I, through RI produces a voltage,VI. VI is amplified by the op-amp to produce a voltage, Vo, whichis proportional to I. The output voltage is measured with asimple voltmeter. We want to find the value of R2 such that 10 Vappears at Vo for each milliamp of unknown current.

36SM

Example

EECE 251, Set 5

• There is a requirement to design a noninverting op-ampconfiguration with two resistors under the following conditions:the gain must be +10, the input range is ±2 V, and the totalpower consumed by the resistors must be less than 100 mW.

Page 19: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

19

37SM

Comparators

EECE 251, Set 5

• A comparator, a variant of the op-amp, is designed to comparethe non-inverting and inverting input voltages. When the non-inverting input voltage is greater, the output goes as high aspossible, at or near VCC. On the other hand, if the inverting inputvoltage is greater, the output goes as low as possible, at or nearVEE.

38SM

Comparators

• A common comparator application is the zero-crossing detector,as shown here:

EECE 251, Set 5

Page 20: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

20

39SM

Design Example

• We wish to design a weighted-summer circuit that will producethe output The design specifications call for use of one op-ampand no more than three resistors. Furthermore, we wish tominimize power while using resistors no larger than 10 kΩ.

EECE 251, Set 5

40SM

Summary

• Inverting amplifier

• Non-inverting amplifier

• Buffer (voltage follower)

EECE 251, Set 5

io vR

Rv

1

2−=

io vR

Rv

+=

1

21

io vv =

Page 21: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

21

41SM

Summary

• Summer (adder)

• Difference Amplifier

EECE 251, Set 5

++−= 3

32

21

1

vR

Rv

R

Rv

R

Rv fff

o

( )121

2 vvR

Rvo −=

42SM

Summary

• Differentiator

• Integrator

EECE 251, Set 5

dt

dvRCv i

o −=

∫−= dtvRC

v io

1

Page 22: EECE251 Circuit Analysis I Set 5: Operational Amplifiers Amplifiers

22

43SM

Summary

• Taking natural logarithm

• Raising to the power of e

EECE 251, Set 5

⋅−=

s

iTo IR

vlnVv

T

i

V

v

so eIRv ⋅−=

44SM

Instrumentation Amplifier

EECE 251, Set 5