cuhkredceng4480 lecture 02: operational amplifier 1byu/ceng4480/2018fall/slides/l02-opamp.pdf ·...

44
CENG4480 Lecture 02: Operational Amplifier – 1 Bei Yu [email protected] (Latest update: September 19, 2018) Fall 2018 1 / 36

Upload: others

Post on 22-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

CENG4480Lecture 02: Operational Amplifier – 1

Bei Yu

[email protected](Latest update: September 19, 2018)

Fall 2018

1 / 36

Page 2: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Overview

Introduction

Op-Amp Preliminaries

Op-Amp List

2 / 36

Page 3: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Overview

Introduction

Op-Amp Preliminaries

Op-Amp List

3 / 36

Page 4: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Computer interfacing Introduction

To Learn:I how to connect the computer to various physical devices.I Overall interfacing schemesI Analog interface circuits, active filters

Some diagrams are taken from references:I [1] S.E. Derenzo, “Interfacing– A laboratory approach using the microcomputer for instrumentation, data

analysis and control”, Prentice Hall, 1990.I [2] Giorgio Rizzoni, “Principles and Applications of Electrical Engineering”, McGraw-Hill, 2005.

3 / 36

Page 5: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Amplifier in Audio System

Converting low-voltage sensor signal to a level suitable for driving speaksers.

4 / 36

Page 6: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Typical Data Acquisition and Control System

Sensor filter A/D

Computer

D/APowercircuit

Mechanicaldevice

Timer

Sample&

Hold

Digital controlcircuit

Op-amp

5 / 36

Page 7: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Analog Interface Example 1

Audio recording systemsI Audio recording systemsI Audio signal is 20–20KHzI Sampling at 40KHz, 16-bit is Hi-FiI Stereo ADC requires to sample at 80KHz.I Calculate storage requirement for one hour?I Audio recording standards: Audio CD; Mini-disk MD; MP3

6 / 36

Page 8: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Analog Interface Example 2

Analog hand held controller

(a) PS5 (b) Wii (c) Driving wheel

7 / 36

Page 9: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Operational Amplifier (Op-Amp)

I Why use op amp?

I What kinds of inputs/outputs do you want?

I What frequency responses do you want?

8 / 36

Page 10: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Direct Current (DC) amplifier

I Example: use power op amp (or transistor) to control the DC motor operation.I Need to maintain the output voltage at a certain level for a long time.I All DC (biased) levels must be designed accurately .I Circuit design is more difficult.

Op-

amp

DC

Source

Load:

DC motor

9 / 36

Page 11: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Alternating Current (AC) amplifier

I Example: Microphone amplifier, signal is AC and is changing at a certain frequencyrange.

I Current is alternating not stable.I Use capacitors to connect different stagesI So no need to consider biasing problems.

Op-

amp

AC

Source

Load

10 / 36

Page 12: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Overview

Introduction

Op-Amp Preliminaries

Op-Amp List

11 / 36

Page 13: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Amplifier

A circuit where the output signal power is greater than the input signal power.

Otherwise is referred as an attenuator.

11 / 36

Page 14: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Black-Box to Consider Circuit Effect

I Without examining actual operation (thousands of elements)I Zin: input impedance (a.k.a. Rin)

12 / 36

Page 15: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Voltage gain A

A =Vout

Vin

I Usually voltage gain may be either very large or very smallI Invonvenient to express as a simple ratioI Therefore, decibel (dB):

Voltage gain in dB

A = 20 · log10Vout

Vin

13 / 36

Page 16: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Question: Voltage Gain

Vin = 20mV, Vout = 500mV. Calculate the voltage gain in dB.

A = 20 · log10Vout

Vin

= 20 · log1050020

= 28.0

14 / 36

Page 17: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Question: Voltage Gain

Vin = 20mV, Vout = 500mV. Calculate the voltage gain in dB.

A = 20 · log10Vout

Vin

= 20 · log1050020

= 28.0

14 / 36

Page 18: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Operational amplifier circuit diagram

15 / 36

Page 19: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Simplified circuit symbol

V0=A(V+-V-)V-

V+ +

_2

3

6LM741

I Ideal difference amplifierI (+): noninverting inputI (-): inverting inputI A: open-loop voltage gain (order of 105 to 107)

16 / 36

Page 20: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Rin & Rout

V0=A(V+-V-)V-

V+ +

_2

3

6LM741

I Rin: input impedance (High)I Rout: output impedance (Low)

17 / 36

Page 21: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Why prefer High Rin, Low Rout?

Stage1(sensor)Vout1Rout1

Stage 2Rin2Vin2

Is equivelent to:

Rout1Vout1Rin2

Vin2

To maximize Vin2

Vin2 = Vout1 ·Rin2

Rout1 + Rin2

18 / 36

Page 22: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Why prefer High Rin, Low Rout?

Stage1(sensor)Vout1Rout1

Stage 2Rin2Vin2

Is equivelent to:

Rout1Vout1Rin2

Vin2

To maximize Vin2

Vin2 = Vout1 ·Rin2

Rout1 + Rin2

18 / 36

Page 23: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Open-loop & Closed-loop

I Open-loop gainI Closed-loop gain

Feedback connectionThe effect of the feedback connection from output to inverting input is to force the voltage atthe inverting input to be equal to that at the noninverting input.

“Note that closing the feedback loop turns a generally useless amplifier (the gain is toohigh!) into a very useful one (the gain is just right)!”

19 / 36

Page 24: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Ideal Op-Amp Rules

Rule 1No current flows in or out of the inputs

Rule 2The Op-Amp tries to keep the inputs the same voltage

* Rule 2 is only for negtive feedback op-amp

20 / 36

Page 25: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Ideal Op-Amp v.s. Real Op-Amp

Open-Loop Gain A

Ideal: Infinite, thus V+ = V−

Real: Typical range (20,000, 200,000), thus Vout = A(V+ − V−)

Input Impedance

Ideal: Infinite. Since Zin =Vin

Iin, zero input current

Real: No such rule.

BandwidthIdeal: Infinite BandwidthReal: Gain-Bandwidth product (GB).

21 / 36

Page 26: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Gain-Bandwidth Product

I Fixed gain-bandwidth product for any given amplifierI Define bandwidth as the frequency range over which the voltage gain of the amplifier is

above 70.7% or -3dB of its maximum output value

22 / 36

Page 27: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Slew Rate Limit

Slew Rate

Slew rate = |dv(t)

dt|

23 / 36

Page 28: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Overview

Introduction

Op-Amp Preliminaries

Op-Amp List

24 / 36

Page 29: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Voltage follower

_V0

V1 +A

I Unit voltage gainI Output V0 = V1

I high current gain, high input impedance

In real op-amp

V0 = A(V1 − V0)⇒ V0 =V1A

1 + A≈ V1

24 / 36

Page 30: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Non-inverting Amplifier

_V0

V1

R1R2

+

V2

AInput Output

I Rin: High input impedance

In real op-amp

V0 = A(V1 − V2) andV2

V0=

R1

R1 + R2

⇒V0

V1=

R1 + R2

R1 + (R1 + R2)/A≈

R1 + R2

R1

25 / 36

Page 31: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Question: Non-inverting Amplifier Gain

_V0

V1

R1R2

+

V2

AInput Output

CalculateV0

V1=

1 +R2

R1

26 / 36

Page 32: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Question: Non-inverting Amplifier Gain

_V0

V1

R1R2

+

V2

AInput Output

CalculateV0

V1=

1 +R2

R1

26 / 36

Page 33: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Current to Voltage Converter

_V0

IR

+A

V0 = -I · R

27 / 36

Page 34: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Inverting Amplifier

+

_R2

R1V0

V1

Virtual-ground,V2

AInput

Output

Because of Kirchhoff’s circuit laws, i1 + i2 = i− = 0

In real op-amp

V0 = A(0− V2) andV2 − V1

R1=

V0 − V2

R2

⇒ R1(V0 +V0

A) = −R2(

V0

A+ V1)⇒

V0

V1≈ −

R2

R1

28 / 36

Page 35: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Inverting Amplifier

+

_R2

R1V0

V1

Virtual-ground,V2

AInput

Output

I Rin = R1

I Gain (G) = −R2

R1

Question: How to increase input impedance?

29 / 36

Page 36: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Inverting Amplifier

+

_R2

R1V0

V1

Virtual-ground,V2

AInput

Output

I Rin = R1

I Gain (G) = −R2

R1

Question: How to increase input impedance?

29 / 36

Page 37: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Biasing

Biasing in electronics

The method of establishing predetermined voltages or currents at various points of anelectronic circuit for the purpose of establishing proper operating conditions in electroniccomponents

https://en.wikipedia.org/wiki/Biasing

30 / 36

Page 38: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Summing Amplifier

_V0

R

+

R1

R2

R3I1+I2+I3

V1

V2

V3Inputs

Output

V0 = −R · {V1R1

+V2R2

+V3R3}

31 / 36

Page 39: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Differential Amplifier

_V0

R2

+

R1V1

R1V2

R2

AInputOutput

I Calculate the difference between V1 and V2

I Can control gain

32 / 36

Page 40: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Question: Differential Amplifier Gain

_V0

R2

+

R1V1

R1V2

R2

AInputOutput

Calculate V0 =

R2R1· (V2 − V1)

33 / 36

Page 41: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Question: Differential Amplifier Gain

_V0

R2

+

R1V1

R1V2

R2

AInputOutput

Calculate V0 =R2R1· (V2 − V1)

33 / 36

Page 42: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Instrumental Amplifier

I To make a better DC amplifier from op-ampsI combine 2 noninverting amplifier & 1 differential amplifier

34 / 36

Page 43: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Instrumental Amplifier (cont.)

I For each non-inverting amplifier: A = 1 +2R2

R1I Connecting to differential amplifier:

Vout =RF

R(Av1 − Av2)

=RF

R(1 +

2R2R1

)(v1 − v2)

35 / 36

Page 44: CUHKredCENG4480 Lecture 02: Operational Amplifier 1byu/CENG4480/2018Fall/slides/L02-opamp.pdf · CUHKredCENG4480 Lecture 02: Operational Amplifier 1 Author: Bei Yu Created Date: 9/19/2018

Comparing Amplifiers

Op Amp Inv. Amp Noninv. Amp Diff. Amp Instr. AmpHigh Rin X X X X XDiff Input X X X X X

Define Gain X X X X X

36 / 36