hw solution#4 - shanghaitechsist.shanghaitech.edu.cn/faculty/zhoupq/teaching/fall15/hw4...Β Β·...

13
Electric Circuits Fall 2015 Homework #4 1 HW Solution#4 4.1 [8%] The op amp in Fig. 1 has = 100kΞ©, = 100Ξ©, = 100,000. Find the differential voltage and the output voltage . Fig. 1 Solution [2] At node 1, V s βˆ’V 1 10k = V 1 100k + V 1 βˆ’V 0 100k (1) [2] At node 2, V 1 βˆ’V 0 100k = V 0 βˆ’(βˆ’AV d ) 100 (2) [2] Since V d =V 1 , A = 100,000,V s = 1mV, From (1) and (2), V d β‰ˆ 100nV [1] V 0 β‰ˆ βˆ’10mV [1]

Upload: lamdang

Post on 11-Apr-2018

217 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: HW Solution#4 - ShanghaiTechsist.shanghaitech.edu.cn/faculty/zhoupq/Teaching/Fall15/HW4...Β Β· Solution A summing amplifier shown below will achieve the objective. An inverter is inserted

Electric Circuits Fall 2015 Homework #4

1

HW Solution#4

4.1 [8%]

The op amp in Fig. 1 has 𝑅𝑖 = 100kΞ©, π‘…π‘œ = 100Ξ©, 𝐴 = 100,000. Find the differential

voltage 𝑣𝑑 and the output voltage π‘£π‘œ.

Fig. 1

Solution

[2]

At node 1, Vsβˆ’V1

10k=

V1

100k+

V1βˆ’V0

100k (1) [2]

At node 2, V1βˆ’V0

100k=

V0βˆ’(βˆ’AVd)

100 (2) [2]

Since Vd = V1, A = 100,000,Vs = 1mV, From (1) and (2),

Vd β‰ˆ 100nV [1]

V0 β‰ˆ βˆ’10mV [1]

Page 2: HW Solution#4 - ShanghaiTechsist.shanghaitech.edu.cn/faculty/zhoupq/Teaching/Fall15/HW4...Β Β· Solution A summing amplifier shown below will achieve the objective. An inverter is inserted

Electric Circuits Fall 2015 Homework #4

2

4.2 [6%]

Determine the output voltage π‘£π‘œ in the circuit of Fig. 2.

Fig. 2

Solution

Transform the current source as shown below. At node 1,

10βˆ’V1

5k=

V1βˆ’V2

20k+

V1βˆ’V0

10k (1) [2]

At node 2,

V1βˆ’V2

20k=

V2βˆ’V0

10k (2) [2]

Since V2 = 0, From (1) and (2), V0 = βˆ’2.5V [2]

Page 3: HW Solution#4 - ShanghaiTechsist.shanghaitech.edu.cn/faculty/zhoupq/Teaching/Fall15/HW4...Β Β· Solution A summing amplifier shown below will achieve the objective. An inverter is inserted

Electric Circuits Fall 2015 Homework #4

3

4.3 [9%]

In the circuit shown in Fig. 3, find π‘˜ in the voltage transfer function π‘£π‘œ = π‘˜π‘£π‘ .

Fig. 3

Solution

We notice that v1 = v2. Applying KCL at node 1 gives

v1

R1+

v1βˆ’vs

R2+

v1βˆ’v0

Rf= 0 (1) [2]

Applying KCL at node 2 gives

v1

R3+

v1βˆ’vs

R4= 0 (2) [2]

From (1) and (2),

v0 = Rf [(1

R1+

1

R2+

1

Rf) (

R3

R3+R4) βˆ’

1

R2] vs [4]

i.e.

k = Rf [(1

R1+

1

R2+

1

Rf) (

R3

R3+R4) βˆ’

1

R2] [1]

Page 4: HW Solution#4 - ShanghaiTechsist.shanghaitech.edu.cn/faculty/zhoupq/Teaching/Fall15/HW4...Β Β· Solution A summing amplifier shown below will achieve the objective. An inverter is inserted

Electric Circuits Fall 2015 Homework #4

4

4.4 [11%]

It is common in electronics to convert a current signal into a voltage signal. One case where

this is necessary, is when converting the photocurrent generated by a photodiode into a

voltage signal for downstream processing electronics. A photodiode acts similar to a normal

diode except it converts input optical power into a photocurrent. A photodiode must also be

reverse biased for optimal operation.

As shown below, we can model a photodiode as an ideal current source with photocurrent

given by πΌπ‘β„Ž = π‘…π‘–π‘ƒπ‘œπ‘π‘‘ where π‘ƒπ‘œπ‘π‘‘ is the aborbed optical power [W] and 𝑅𝑖 is the current

responsivity assumed to be 0.9 [Amps/Watt]. Note that πΌπ‘β„Ž flows from the cathode to the

anode since the diode is reverse biased. For this problem, we can ignore the diode leakage

current.

Fig. 4(a)

(a) One way to both reverse bias the photodiode and convert the current into a voltage is with

the circuit below in which the photocurrent is sent into a resistor. For this configuration

calculate:

i) The voltage responsivity, 𝑅𝑣 =π‘‰π‘œπ‘’π‘‘

π‘ƒπ‘œπ‘π‘‘

ii) A drawback of this configuration is that the diode bias is not constant. Find the input

optical power at which the diode is no longer reverse biased.

Fig. 4(b)

(b) A good way to convert the diode photocurrent into a voltage is with the following

transimpedance amplifier (TIA). For this problem calculate:

i) The voltage across the diode. Does it depend on π‘ƒπ‘œπ‘π‘‘?

Page 5: HW Solution#4 - ShanghaiTechsist.shanghaitech.edu.cn/faculty/zhoupq/Teaching/Fall15/HW4...Β Β· Solution A summing amplifier shown below will achieve the objective. An inverter is inserted

Electric Circuits Fall 2015 Homework #4

5

ii) The transimpedance gain, 𝐺 =π‘‰π‘œπ‘’π‘‘

πΌπ‘β„Ž and,

iii) The voltage responsivity, 𝑅𝑣 =π‘‰π‘œπ‘’π‘‘

π‘ƒπ‘œπ‘π‘‘

Fig. 4(c)

Solution

a) Employing the model for the photodiode as a current source gives the figure below:

i) From ohms law:

π‘‰π‘œπ‘’π‘‘ = πΌπ‘β„Žπ‘…πΏ = π‘…π‘–π‘ƒπ‘œπ‘π‘‘π‘…πΏ [1]

𝑅𝑣 =π‘‰π‘œπ‘’π‘‘

π‘ƒπ‘œπ‘π‘‘= 𝑅𝑖𝑅𝐿 = 0.9 Γ— 500 = 450[𝑉/π‘Š] [1]

ii) From KVL:

𝑉𝑑 = π‘‰π‘œπ‘’π‘‘ βˆ’ 11V [1]

The diode will become forward biased when 𝑉𝑑 > 0. Which occurs when π‘‰π‘œπ‘’π‘‘ > 11𝑉. Setting

π‘‰π‘œπ‘’π‘‘ = 11𝑉 gives the point at which the diode is no longer reverse biased. [1]

So,

π‘‰π‘œπ‘’π‘‘ = π‘…π‘–π‘ƒπ‘œπ‘π‘‘π‘…πΏ = 11V [1]

π‘ƒπ‘œπ‘π‘‘ =11

0.9Γ—500β‰ˆ 24π‘šπ‘Š [1]

(b)We have the following for the TIA circuit with the current source model for the photodiode

employed:

Page 6: HW Solution#4 - ShanghaiTechsist.shanghaitech.edu.cn/faculty/zhoupq/Teaching/Fall15/HW4...Β Β· Solution A summing amplifier shown below will achieve the objective. An inverter is inserted

Electric Circuits Fall 2015 Homework #4

6

i) We have 𝑉𝑝 = 0 = 𝑉𝑛. Now the anode is at a virtual ground. The diode voltage is still

defined as the voltage from the anode to the cathode. KVL gives:

𝑉𝑑 = βˆ’11 [1]

ii) Note that 𝐼2 = 0 because the voltage on both sides of the 100Ω is the same. KCL at Vn with

𝑉𝑛 = 0 gives:

πΌπ‘β„Ž = βˆ’π‘‰π‘œπ‘’π‘‘/500 [1]

𝐺 =π‘‰π‘œπ‘’π‘‘

πΌπ‘β„Ž= βˆ’500Ξ© [1]

iii)

βˆ’500 =π‘‰π‘œπ‘’π‘‘

πΌπ‘β„Ž=

π‘‰π‘œπ‘’π‘‘

π‘…π‘–π‘ƒπ‘œπ‘π‘‘ [1]

𝑅𝑣 =π‘‰π‘œπ‘’π‘‘

π‘ƒπ‘œπ‘π‘‘= βˆ’π‘…π‘– βˆ™ 500 = βˆ’450[V/W] [1]

4.5 [10%]

For the circuit shown in Fig. 5, find the Thevenin equivalent at terminals a-b. (Hint: To find

π‘…π‘‡β„Ž, apply a current source π‘–π‘œ and calculate π‘£π‘œ.)

Fig. 5

Solution

π‘‰π‘‡β„Ž = π‘‰π‘Žπ‘ (1) [1]

Apply KCL we find

Page 7: HW Solution#4 - ShanghaiTechsist.shanghaitech.edu.cn/faculty/zhoupq/Teaching/Fall15/HW4...Β Β· Solution A summing amplifier shown below will achieve the objective. An inverter is inserted

Electric Circuits Fall 2015 Homework #4

7

𝑉𝑠 =𝑅1

𝑅1+𝑅2π‘‰π‘Žπ‘ (2) [2]

From (1) and (2),

π‘‰π‘‡β„Ž = (1 +𝑅2

𝑅1)𝑉𝑠 [2]

To get RTh, apply a current source Io at terminals a-b as shown below.

Since the noninverting terminal is connected to ground, v1 = v2 = 0, i.e. no current passes

through R1 and consequently R2 . Thus, vo = 0 and

π‘…π‘‡β„Ž =𝑣0

𝑖0= 0 [5]

4.6 [10%]

Design an op amp circuit such that

π‘£π‘œ = 4𝑣1 + 6𝑣2 βˆ’ 3𝑣3 βˆ’ 5𝑣4

Let all the resistors be in the range of 100Ξ© to 1kΞ©.

Solution

A summing amplifier shown below will achieve the objective. An inverter is inserted to invert

v2. Since the smallest resistance must be at least 100 Ξ©, then let R/6 = 100Ξ© therefore let R =

600 Ξ©. (Other reasonable answers will be ok.)

Page 8: HW Solution#4 - ShanghaiTechsist.shanghaitech.edu.cn/faculty/zhoupq/Teaching/Fall15/HW4...Β Β· Solution A summing amplifier shown below will achieve the objective. An inverter is inserted

Electric Circuits Fall 2015 Homework #4

8

4.7 [11%]

Determine π‘£π‘œ in the op amp circuit of Fig. 7.

Fig. 7

Solution

The output of amplifier A is

vA = βˆ’30k

10kΓ— 1 βˆ’

30k

10kΓ— 2 = βˆ’9V [3]

The output of amplifier B is

vA = βˆ’20k

10kΓ— 3 βˆ’

20k

10kΓ— 4 = βˆ’14V [3]

va = vb =10k

60k+10kΓ— (βˆ’14) = βˆ’2V [2]

At node a, vAβˆ’va

20k=

vaβˆ’v0

40k [2]

Therefore, v0 = 12V [1]

Page 9: HW Solution#4 - ShanghaiTechsist.shanghaitech.edu.cn/faculty/zhoupq/Teaching/Fall15/HW4...Β Β· Solution A summing amplifier shown below will achieve the objective. An inverter is inserted

Electric Circuits Fall 2015 Homework #4

9

4.8 [12%]

(a) For the following schematic, determine a constraint on 𝑅1, 𝑅2, 𝑅3 and 𝑅4 such

that the circuit behaves as a difference amplifier, i.e. π‘£π‘œ = K(𝑣2 βˆ’ 𝑣1).

(b) Suppose that the resistors values chosen for part (a) are real resistors with 1% precision.

What is the common-mode gain? In other words, if the inputs contain a common-mode signal

𝑣1 = 𝑉𝑐 +𝑣𝑑

2

𝑣2 = 𝑉𝑐 βˆ’π‘£π‘‘

2

how much of 𝑉𝑐 appears at the output?

Fig. 8

Solution

(a)

Now we write two nodal equations at v1 and v2.

V1

R1=

Vxβˆ’V1

R2 [1]

V2βˆ’Vx

R3=

V0βˆ’V2

R4 [1]

Solving for these equations gives us the following relationship:

Page 10: HW Solution#4 - ShanghaiTechsist.shanghaitech.edu.cn/faculty/zhoupq/Teaching/Fall15/HW4...Β Β· Solution A summing amplifier shown below will achieve the objective. An inverter is inserted

Electric Circuits Fall 2015 Homework #4

10

v0 =R3+R4

R3v2 βˆ’

R4

R1R3(R1 + R2)v1[1]

In order for this expression to be in the form vo = K(v2 βˆ’ v1), we must have the following

constraint:

R3+R4

R3=

R4

R1R3(R1 + R2) [1]

This simplifies to

R1R3 = R2R4 [1]

(b) If the resistors have 1% precision, then any resistor Ri can have a resistance as high as

1.01Ri or as low as 0.99Ri. Let’s assume that each resistor takes on a value R = Rnom(1 + βˆ†)

where Rnom is the nominal value, and |βˆ†| < 0.01 is the tolerance (positive or negative). Now

re-write the expression for the gain as

v0 = π‘Ž2v2 βˆ’ π‘Ž1v1[1]

The a2 coefficient is expanded and then simplified assuming βˆ† are small

π‘Ž2 = 1 +Rβ€²4

Rβ€²3= 1 +

R4(1+βˆ†4)

R3(1+βˆ†3)β‰ˆ 1 +

R4

R3(1 + βˆ†4)(1 βˆ’ βˆ†3) β‰ˆ 1 +

R4

R3(1 + βˆ†4 βˆ’ βˆ†3) [1]

Notice that a2 can be written in terms of the ideal gain G = 1 +R4

R3

π‘Ž2 = G + (G βˆ’ 1)(βˆ†4 βˆ’ βˆ†3) = G [1 +Gβˆ’1

G(βˆ†4 βˆ’ βˆ†3)][2]

Likewise, since

R1

R3=

R4

R3

we can expand the coefficient a1

π‘Ž1 β‰ˆ G + (G βˆ’ 1)(βˆ†4 βˆ’ βˆ†3) = G(1 + βˆ†4 βˆ’ βˆ†3 +βˆ†2βˆ’βˆ†1

G) [2]

For a common-mode input Vc we have

v0 = π‘Ž2Vc βˆ’ π‘Ž1Vc = VcG (Gβˆ’1

G(βˆ†4 βˆ’ βˆ†3) + βˆ†3 βˆ’ βˆ†4 βˆ’

βˆ†2βˆ’βˆ†1

G) = Vc(βˆ†1 βˆ’ βˆ†2 + βˆ†3 βˆ’ βˆ†4)[1]

|βˆ†| < 0.01

or

Ac = βˆ†1 βˆ’ βˆ†2 + βˆ†3 βˆ’ βˆ†4

|βˆ†| < 0.01

Page 11: HW Solution#4 - ShanghaiTechsist.shanghaitech.edu.cn/faculty/zhoupq/Teaching/Fall15/HW4...Β Β· Solution A summing amplifier shown below will achieve the objective. An inverter is inserted

Electric Circuits Fall 2015 Homework #4

11

4.9 [11%]

In the schematic below, the voltage source 𝑣𝑠 is separated from the load resistor 𝑅𝐿

by three amplifier stages. We have three different amplifier configurations as shown

below.

Fig. 9

(a) Suppose we go with the sequence BAC. If 𝑅1 = 2kΞ©, 𝑅2 = 6kΞ©, 𝑅3 = 4kΞ©, and 𝑅4 =

8kΞ©, calculate the overall voltage gain for the above circuit. What is the load resistance as

seen by the voltage source?

(b) Repeat the above calculations for the sequence ABC. Which of the two is better?

(c) What is the voltage gain in both cases if we omit the third stage (C)? What is its

purpose of having it in the circuit?

Solution

(a) For the sequence BAC, we first have a noninverting amplifier, followed by an inverting

amplifier, and finally a voltage follower. The gain is thus

G = (1 +R4

R3) (βˆ’

R2

R1) = (1 +

8k

4k) (βˆ’

6k

2k) = βˆ’9 [3]

The load resistance seen by the voltage input is infinite, since no current flows into the

noninverting input of op amp B.

(b) The gain here is the same, since it is order-independent (multiplication is commutative).

[2]

However, the input resistance is 2 kΞ© higher in this case, since the source sees the inverting

amplifier first. So in terms of overall gain, both orderings are equally good.

[1]

However, the ABC former is better for voltage amplification, as its input resistance is much

higher. [1]

(c) The voltage gain remains the same in both cases, since the third stage does not affect it.[2]

C is a voltage follower which has high input resistance. It is usually useful to prevent loading

effects at either the input or output of an op amp, like A and B, especially if it is non-ideal

(although it doesn’t play any role here since all the op amps are ideal).[2]

Page 12: HW Solution#4 - ShanghaiTechsist.shanghaitech.edu.cn/faculty/zhoupq/Teaching/Fall15/HW4...Β Β· Solution A summing amplifier shown below will achieve the objective. An inverter is inserted

Electric Circuits Fall 2015 Homework #4

12

4.10 [12%]

a) For the circuit shown in Fig. 10, show that if Ξ”R β‰ͺ R, the output voltage of the op amp is

approximately

π‘£π‘œ β‰ˆπ‘…π‘“

𝑅2

(𝑅 + 𝑅𝑓)

(𝑅 + 2𝑅𝑓)(βˆ’βˆ†π‘…)𝑣𝑖𝑛

b) Find π‘£π‘œ if 𝑅𝑓 = 470kΞ©, 𝑅 = 10kΞ©, Δ𝑅 = 95Ξ©, and 𝑣𝑖𝑛= 15 V.

c) Find the actual value of π‘£π‘œ in (b).

Fig. 10

d)If percent error is defined as

% error = [approximate value

true valueβˆ’ 1] Γ— 100

show that the percent error in the approximation of π‘£π‘œ above is

% error = [βˆ†π‘…

𝑅

(𝑅 + 𝑅𝑓)

(𝑅 + 2𝑅𝑓)] Γ— 100

e) Calculate the percent error in π‘£π‘œ.

Solution

Let R1 = R + βˆ†R

Apply KCL,

Vp

Rf+

Vp

R+

Vpβˆ’Vin

R1= 0 (1) [2]

Vn

R+

Vnβˆ’Vin

R+

Vnβˆ’V0

Rf= 0 (2) [2]

Page 13: HW Solution#4 - ShanghaiTechsist.shanghaitech.edu.cn/faculty/zhoupq/Teaching/Fall15/HW4...Β Β· Solution A summing amplifier shown below will achieve the objective. An inverter is inserted

Electric Circuits Fall 2015 Homework #4

13

From (1) and (2),

π‘£π‘œ =(𝑅+𝑅𝑓)𝑅𝑓

𝑅[(R+βˆ†R)(𝑅+𝑅𝑓)+𝑅𝑅𝑓](βˆ’βˆ†π‘…)𝑣𝑖𝑛 [1]

if R ≫ βˆ†R

π‘£π‘œ β‰ˆπ‘…π‘“

𝑅2

(𝑅+𝑅𝑓)

(𝑅+2𝑅𝑓)(βˆ’βˆ†π‘…)𝑣𝑖𝑛 [2]

(b) π‘£π‘œ β‰ˆ βˆ’3.384𝑉 [1]

(c) π‘£π‘œ β‰ˆ βˆ’3.368𝑉 [1]

(d) % error = 𝑅𝑓

𝑅2

(𝑅+𝑅𝑓)

(𝑅+2𝑅𝑓)

𝑅[(R+βˆ†R)(𝑅+𝑅𝑓)+𝑅𝑅𝑓]

(𝑅+𝑅𝑓)𝑅𝑓 βˆ’ 1 Γ— 100 [2]

=βˆ†R(𝑅+𝑅𝑓)

𝑅(𝑅+2𝑅𝑓)Γ— 100 [1]

(e) % error = 0.48 [2]