42
CENG 4480 Embedded System Development & Applications Lecture 02: Operational Amplifier – 1 Bei Yu CSE Department, CUHK [email protected] (Latest update: October 27, 2021) Fall 2021

Lecture 02: Operational Amplifier 1

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Lecture 02: Operational Amplifier 1

CENG 4480Embedded System Development & Applications

Lecture 02: Operational Amplifier – 1

Bei YuCSE Department, [email protected]

(Latest update: October 27, 2021)

Fall 2021

Page 2: Lecture 02: Operational Amplifier 1

Introduction

Page 3: Lecture 02: Operational Amplifier 1

To Learn:• how to connect the computer to various physical devices.

• Overall interfacing schemes

• Analog interface circuits, active filters

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

data analysis and control”, Prentice Hall, 1990.

• [2] Giorgio Rizzoni, “Principles and Applications of Electrical Engineering”, McGraw-Hill, 2005.

Computer interfacing Introduction

3/39

Page 4: Lecture 02: Operational Amplifier 1

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

Amplifier in Audio System

4/39

Page 5: Lecture 02: Operational Amplifier 1

Sensor filter A/D

Computer

D/APowercircuit

Mechanicaldevice

Timer

Sample&

Hold

Digital controlcircuit

Op-amp

Typical Data Acquisition and Control System

5/39

Page 6: Lecture 02: Operational Amplifier 1

Audio recording systems• Audio recording systems

• Audio signal is 20–20KHz

• Sampling at 40KHz, 16-bit is Hi-Fi

• Stereo ADC requires to sample at 80KHz.

• Calculate storage requirement for one hour?

• Audio recording standards: Audio CD; Mini-disk MD; MP3

Analog Interface Example 1

6/39

Page 7: Lecture 02: Operational Amplifier 1

Analog hand held controller

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

Analog Interface Example 2

7/39

Page 8: Lecture 02: Operational Amplifier 1

• Why use op amp?

• What kinds of inputs/outputs do you want?

• What frequency responses do you want?

Operational Amplifier (Op-Amp)

8/39

Page 9: Lecture 02: Operational Amplifier 1

• Example: use power op amp (or transistor) to control the DC motor operation.

• Need to maintain the output voltage at a certain level for a long time.

• All DC (biased) levels must be designed accurately .

• Circuit design is more difficult.

Op-

amp

DC

Source

Load:

DC motor

Direct Current (DC) amplifier

9/39

Page 10: Lecture 02: Operational Amplifier 1

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

Biasing

10/39

Page 11: Lecture 02: Operational Amplifier 1

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

• Current is alternating not stable.

• Use capacitors to connect different stages

• So no need to consider biasing problems.

Op-

amp

AC

Source

Load

Alternating Current (AC) amplifier

11/39

Page 12: Lecture 02: Operational Amplifier 1

Op-Amp Preliminaries

Page 13: Lecture 02: Operational Amplifier 1

Amplifier

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

Otherwise is referred as an attenuator.

13/39

Page 14: Lecture 02: Operational Amplifier 1

• Without examining actual operation (thousands of elements)

• Zin: input impedance (a.k.a. Rin)

Black-Box to Consider Circuit Effect

14/39

Page 15: Lecture 02: Operational Amplifier 1

Voltage gain A

A =Vout

Vin

• Usually voltage gain may be either very large or very small

• Invonvenient to express as a simple ratio

• Therefore, decibel (dB):

Voltage gain in dB

A = 20 · log10Vout

Vin

15/39

Page 16: Lecture 02: Operational Amplifier 1

Question: Voltage Gain

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

16/39

Page 17: Lecture 02: Operational Amplifier 1

Operational amplifier circuit diagram

17/39

Page 18: Lecture 02: Operational Amplifier 1

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

V+ +

_2

3

6LM741

• Ideal difference amplifier

• (+): noninverting input

• (-): inverting input

• A: open-loop voltage gain (order of 105 to 107)

Simplified circuit symbol

18/39

Page 19: Lecture 02: Operational Amplifier 1

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

V+ +

_2

3

6LM741

• Rin: input impedance (High)

• Rout: output impedance (Low)

Rin & Rout

19/39

Page 20: Lecture 02: Operational Amplifier 1

Stage1(sensor)Vout1Rout1

Stage 2Rin2Vin2

Is equivelent to:

Rout1Vout1Rin2

Vin2

To maximize Vin2

Vin2 = Vout1 ·Rin2

Rout1 + Rin2

Why prefer High Rin, Low Rout?

20/39

Page 21: Lecture 02: Operational Amplifier 1

Stage1(sensor)Vout1Rout1

Stage 2Rin2Vin2

Is equivelent to:

Rout1Vout1Rin2

Vin2

To maximize Vin2

Vin2 = Vout1 ·Rin2

Rout1 + Rin2

Why prefer High Rin, Low Rout?

20/39

Page 22: Lecture 02: Operational Amplifier 1

• Open-loop gain

• Closed-loop gain

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

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

Open-loop & Closed-loop

21/39

Page 23: Lecture 02: Operational Amplifier 1

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

Ideal Op-Amp Rules

22/39

Page 24: Lecture 02: Operational Amplifier 1

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).

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

23/39

Page 25: Lecture 02: Operational Amplifier 1

• Fixed gain-bandwidth product for any given amplifier

• Define bandwidth as the frequency range over which the voltage gain of theamplifier is above 70.7% or -3dB of its maximum output value

Gain-Bandwidth Product

24/39

Page 26: Lecture 02: Operational Amplifier 1

Slew Rate

Slew rate = |dv(t)

dt|

Slew Rate Limit

25/39

Page 27: Lecture 02: Operational Amplifier 1

Op-Amp List

Page 28: Lecture 02: Operational Amplifier 1

_V0

V1 +A

• Unit voltage gain

• Output V0 = V1

• high current gain, high input impedance

In real op-amp

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

1 + A≈ V1

Voltage follower

27/39

Page 29: Lecture 02: Operational Amplifier 1

_V0

V1

R1R2

+

V2

AInput Output

• 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

Non-inverting Amplifier

28/39

Page 30: Lecture 02: Operational Amplifier 1

Question: Non-inverting Amplifier Gain

_V0

V1

R1R2

+

V2

AInput Output

CalculateV0

V1=

29/39

Page 31: Lecture 02: Operational Amplifier 1

_V0

IR

+A

V0 = -I · R

Current to Voltage Converter

30/39

Page 32: Lecture 02: Operational Amplifier 1

+

_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

Inverting Amplifier

31/39

Page 33: Lecture 02: Operational Amplifier 1

+

_R2

R1V0

V1

Virtual-ground,V2

AInput

Output

• Rin = R1

• Gain (G) = −R2

R1

Question: How to increase input impedance?

Inverting Amplifier

32/39

Page 34: Lecture 02: Operational Amplifier 1

+

_R2

R1V0

V1

Virtual-ground,V2

AInput

Output

• Rin = R1

• Gain (G) = −R2

R1

Question: How to increase input impedance?

Inverting Amplifier

32/39

Page 35: Lecture 02: Operational Amplifier 1

_V0

R

+

R1

R2

R3I1+I2+I3

V1

V2

V3Inputs

Output

V0 = −R · {V1

R1+

V2

R2+

V3

R3}

Summing Amplifier

33/39

Page 36: Lecture 02: Operational Amplifier 1

_V0

R2

+

R1V1

R1V2

R2

AInputOutput

• Calculate the difference between V1 and V2

• Can control gain

Differential Amplifier

34/39

Page 37: Lecture 02: Operational Amplifier 1

Question: Differential Amplifier Gain

_V0

R2

+

R1V1

R1V2

R2

AInputOutput

Calculate V0 =

35/39

Page 38: Lecture 02: Operational Amplifier 1

Question: Differential Amplifier Gain

_V0

R2

+

R1V1

R1V2

R2

AInputOutput

Calculate V0 =

35/39

Page 39: Lecture 02: Operational Amplifier 1

• To make a better DC amplifier from op-amps

• combine 2 noninverting amplifier & 1 differential amplifier

Instrumental Amplifier

36/39

Page 40: Lecture 02: Operational Amplifier 1

Solution 1:

v1’

v2’

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

R1

• Connecting to differential amplifier:

Vout =RF

R(v′2 − v′1)

=RF

R(1 +

2R2

R1)(v2 − v1)

Instrumental Amplifier (cont.)

37/39

Page 41: Lecture 02: Operational Amplifier 1

Solution 2:

v1’

v2’

• By rule 2, two input voltages are the same, thus we look at the line w. R2, R1, and R2:

v2 − v1

R1=

v′2 − v′12R2 + R1

• Therefore: v′2 − v′1 = (1 +2R2

R1)(v2 − v1)

Instrumental Amplifier (cont.)

38/39

Page 42: Lecture 02: Operational Amplifier 1

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

Diff Input X X X X XDefine Gain X X X X X

Comparing Amplifiers

39/39