Homework solutions EE3143 Resistive circuits Problem 1 Use KVL and Ohms law to compute voltages va and vb . - v1 + From Ohms law: v1=8kW*i1=8[V] v2=2kW*i2=-2[V] - v2 + + + - - Form KVL: va=5[V]-v2=7[V] vb=15[V]-v1-va=0[V] Resistive circuits Problem 2 Write equations to compute voltages v1 and v2 , next find the current value of i1 i1 v1 v2 40W 50 mA 40W 80W 100 mA From KCL: 50 mA=v1/40+(v1-v2)/40 and 100 mA=v2/80+(v2-v1)/40 Multiply first equation by 40: 2=v1+v1-v2=2v1-v2 From second equation: 8=v2+2(v2-v1)=3v2-2v1 add both sides: 10=2v2 => v2=5 [V], v1=1+v2 /2=3.5[V] i1= (v1-v2)/40=-1.5/40=37.5 [mA] Thevenin & Norton Problem 3: Find Thevenin and Norton equivalent circuit for the network shown. I N1 1 N2 I2 vt From KVL Thevenin & Norton N1 I1 N2 I2 Isc From KVL Thevenin & Norton RTh=vt/Isc=-1.33Ω Note: Negative vt indicates that the polarity is reversed and as a result this circuit has a negative resistance. RTh=-1.33Ω Vt=-6 V A A + _ In=4.5 A RTh=-1.33Ω B B Thevenin Equivalent Norton Equivalent Problem 4: Find the current i and the voltage v across LED diode in the circuit shown on Fig. a) assuming that the diode characteristic is shown on Fig. b). Draw load line. Intersection of load line and diode characteristic is the i and v across LED diode: v ≈ 1.02 V and i ≈ 7.5 mA. Problem 5: Sketch i versus v to scale for each of the circuits shown below. Assume that the diodes are ideal and allow v to range from -10 V to +10 V. (a) i + v _ 2kΩ 5 Diode is on for v > 0 and R=2kΩ. i (mA) 4 3 2 1 0 -10 -5 0 5 10 v (V) In a series connection voltages are added for each constant current Problem 5: Sketch i versus v to scale for each of the circuits shown below. Assume that the diodes are ideal and allow v to range from -10 V to +10 V. (b) + v _ i 1kΩ + _ 5V Due to the presence of the 5V supply the diode conducts only for v > 5, R = 1kΩ 5 i (mA) 4 3 2 1 0 -10 -5 0 5 10 v (V) First combine diode and resistance then add the voltage source Problem 5: Sketch i versus v to scale for each of the circuits shown below. Assume that the diodes are ideal and allow v to range from -10 V to +10 V. i (c) + 2kΩ 1kΩ v A B _ 10 Diode B is on for v > 0 and R=1kΩ. Diode A is on for v < 0 and R=2kΩ. i (mA) 5 0 -5 -10 -5 0 v (V) 5 10 Problem 5: Sketch i versus v to scale for each of the circuits shown below. Assume that the diodes are ideal and allow v to range from -10 V to +10 V. i (d) + D v _ C 1kΩ 10 Diode D is on for v > 0 and R=1kΩ. Diode C is on for v < 0 and R=0Ω. i (mA) 5 0 -5 -10 -5 0 v (V) 5 10 Modeling a piecewise characteristic of a device Problem 6 Sketch the transfer characteristic (vo versus vin) for the circuit shown in the figure below. Assume that the diode is ideal. + v - i i 1kΩ vx v In a parallel connection currents are added for each constant voltage Modeling a piecewise characteristic of a device Problem 6 Sketch the transfer characteristic (vo versus vin) for the circuit shown in the figure below. Assume that the diode is ideal. + v - i i 1kΩ vx v In a parallel connection currents are added for each constant voltage Modeling a piecewise characteristic of a device Problem 6 Add the voltage source. + v - i i + + Vin - 1kΩ vo _ v vin In a series connection voltages are added for each constant current Modeling a piecewise characteristic of a device Problem 6 Add the voltage source. + v - i i + + Vin - 1kΩ 2kΩ vo _ v vin In a parallel connection currents are added for each constant voltage Modeling a piecewise characteristic of a device Problem 6 Add the voltage source. + v - i i + + Vin - 1kΩ 2kΩ vo _ v vin In a parallel connection currents are added for each constant voltage D (a) + G 5V - + 4V Ia - S (b) + Ib 3V - S G + 1V - D (c) + Ic 5V - S G 4V + D D (d) Id + G 1V - + 3V - S Problem 8: Consider the amplifier shown below. a) Find vGS(t). Assume that the coupling capacitor is a short circuit for the ac signal and an open circuit for the dc. Soln (a): In loop 1 the 1.8 MΩ and 200 kΩ resistors act as voltage divider. The voltage drop across 200 kΩ resistor is the dc voltage VGSQ VGSQ = 20*0.2/2=2 V +20 V 2 kΩ 1.8 MΩ Zin + _ sin(200πt) G 0.2 MΩ D Loop 1 S Treating the capacitor as short for ac signals, we have VGS =2 + sin(200πt) b) If the FET has Vt0 = 1V and K = 0.5 mA/V2, sketch its drain characteristics to scale for VGS = 1, 2, 3, and 4 V. c) Draw the load line for the amplifier on the characteristics. d) Find the values of VDSQ, VDSmin, and VDSmax. To obtain the drain characteristics apply the following equations b) Plot shows the drain characteristics for VGS = 1, 2, 3, and 4 V. c) To get the load line apply KVL to loop 2: 20 – 2 kΩ*iD(t) = VDS(t) The red line in the plot is the load line. Drain Characteristics 5 VGS = 4V +20 V iD (mA) 4 3 ο¬ Load Line VGS = 3V 2 1 0 0 2 kΩ 1.8 MΩ VGS = 2V 5 10 VDS (V) 15 VGS = 1V 20 Zin + _ sin(200πt) G 0.2 MΩ D Loop 2 S d) Find the values of VDSQ , VDSmin, and VDSmax. d) VDSQ, VDSmin, and VDSmax are the points at which the load line intersects the drain characteristics for VGS = 2 V, 3 V and 1 V respectively. 5 VGS = 4V 4 iD (mA) VDSQ = 19 V VDSmin = 16 V VDSmax = 20 V Drain Characteristics 3 ο¬ Load Line VGS = 3V 2 1 0 0 VGS = 2V 5 10 VDS (V) 15 VGS = 1V 20 Problem 9: Consider the common source amplifier shown below. Assume NMOS transistor has the following parameters: πΎπ=60 ππ΄βπ2, πΏ=5 ππ, π=100 ππ, ππ=∞, and ππ‘π=1.5 π. a) Find the values of πΌπ·π, ππ·ππand ππ The 72 kΩ and 28 kΩ resistors act as a voltage divider. The voltage drop across 28 kΩ resistor is the dc voltage VGSQ is equal to VGSG ο½ VDD Kο½ +10 V R1 = 72 kΩ C1 + vin _ RD = 5 kΩ C2 R2 = 28 kΩ + vo _ RL= 1 kΩ R2 28 ο½ 10 ο½ 2.8V R1 ο« R2 72 ο« 28 1 ο¦W KPο§ 2 ο¨L οΆ 2 ο· ο½ 0.6mA / V οΈ I DQ ο½ K ο¨VGSQ ο Vto ο© ο½ 1.014mA 2 VDSQ ο½ ο¨VDD ο RD I DQ ο© ο½ 4.93V g m ο½ 2 KI DQ ο½ 1.56mS Problem 9 b): - Assuming that the coupling capacitors are short circuits for the ac signal, determine the following: voltage gain, input resistance and output resistance. +10 V RL ο½ 1 ' 1 RD ο« 1 ο½ 833.3W C1 RL Av ο½ ο g m RL ο½ ο1.3 ' Rin ο½ 1 1 R1 ο« 1 R1 = 72 kΩ ο½ 20.16kW R2 Ro ο½ RD ο½ 5kW + vin _ RD = 5 kΩ C2 R2 = 28 kΩ + vo _ RL= 1 kΩ Problem 10: - Consider the common source amplifier shown below. Assume NMOS transistor has the following parameters: πΎπ=75 ππ΄βπ2 , πΏ=10 ππ, π=400 ππ, ππ=∞, and ππ‘π=1 π. a) If Rin = 250 kΩ, find the values for R1 and R2 to achieve πΌπ·π=2 ππ΄. +15 V Rin R1 C1 R C2 + + v(t) _ RD = 2 kΩ + R2 vin(t) _ RS = 0.5 kΩ vo _ RL = 5 kΩ +15 V Rin R1 C1 R C2 + + v(t) _ vin(t) RS = 0.5 kΩ Kο½ 1 ο¦W KPο§ 2 ο¨L I DQ ο½ K ο¨VGSQ ο Vto ο© ο½ 2mA 2 VS ο½ RS I DQ ο½ 1V • + R2 _ • We have: • Given: RD = 2 kΩ vo _ RL = 5 kΩ οΆ 2 ο· ο½ 1.5mA / V οΈ VGSQ ο½ Vto ο« I DQ K ο½ 2.155V VG ο½ VGSQ ο« VS ο½ 3.155V R2 1 VG ο½ VDD ο½ VDD Rin R1 ο« R2 R1 1 1 3 R ο½ V R ο½ 15 * * 250 * 10 ο½ 1.19 MW Solve for R1: 1 DD in VG 3.155 • We have Rin = 250 kΩ and R1 = 1.19 M Ω Rin ο½ ο¨R1 || R2 ο© ο½ • Solve for R2: R1 * R2 R1 ο« R2 250k ο½ 1.19 M * R2 ο R2 ο½ 316.5kW 1.19 M ο« R2 b) Determine the voltage gain RL ο½ ' 1 ο½ 454.54W 1 ο« 1 ο« 1 Rd RL RS g m ο½ 2 KI DQ ο½ 3.46mS v0 Av ο½ ο½ ο g m RL' ο½ ο1.572 vin Problem BJT P1: It has been found that in the circuit below VE = 1V. If VBE = -0.6V, determine: VB, IB, IE, IC, β, and α. Soln (a): From KVL: 4V ο½ IE * 5000 From KVL: Ohm’s law: 5V ο½ I E * RE ο« 1V I E ο½ 0.8mA IE VB ο½ VE ο VEB ο½ 1 ο 0.6 ο½ 0.4V VB ο½ I B * RB VBE = -0.6V 0.4V ο½ I B * 20kW I B ο½ 20οA I C ο½ I E ο I B ο½ 0.78mA IC ο’ο½ ο½ 39 IB IC ο‘ο½ ο½ 0.975 IE VB IB IC VE = 1V Problem BJT P2: - For the circuit below assume both transistors are silicon-based with β = 100. Determine: a) IC1, VC1, VCE1. b) IC2, VC2, VCE2. • Soln: Assume VBE= VBE1 =VBE2 = 0.7V • Part (a): - Apply KVL along the path (red line). ο 30 ο« I B1 * RB1 ο« VBE1 ο½ 0 30 ο 0.7 I B1 ο½ ο½ 39.07 οA 3 750 *10 I C1 ο½ ο’ * I B1 ο½ 3.907mA IB1 RB1 RC1 IC1 + IB2 VC1 VBE1 IC2 RC2 IB2 IC1 VCE1 VBE2 IE2 VCE2 RE2 • Part (a) contd.: - Apply KVL along the path (red line). 30 ο ο¨I C1 ο« I B 2 ο©RC1 ο VBE 2 ο I E 2 RE 2 ο½ 0 We know that I E ο½ ο¨ο’ ο« 1ο©I B substituting we get 30 ο 24.2234 ο I B 2 RC1 ο 0.7 ο ο¨ο’ ο« 1ο©I B 2 RE 2 ο½ 0 5.0766 ο I B 2 ο¨RC1 ο« 101 * RE 2 ο© ο½ 0 I B 2 ο½ 10.559οA VC1 ο½ 30 ο ο¨I C1 ο« I B 2 ο©* RC1 VC1 ο½ 30 ο ο¨3.907 ο« 0.010559 ο© * 6.2 ο½ 5.7111 [V ] IB1 RB1 R IC1 + IB2C1 VC1 VCE1 ο½ VC1 ο½ 5.7111V VBE1 IC2 RC2 IB2 IC1 VCE1 VBE2 IE2 VCE2 RE2 • Part (b): - Apply KVL along the path (red line). I E 2 ο½ (1 ο« ο’ ) I B 2 ο½ 101*10.559οA ο½ 1.0662mA I C 2 ο½ I B 2 ο’ ο½ 1.0556mA VC 2 ο½ 30 ο I C 2 RC 2 VC 2 ο½ 30 ο 1.0556 * 20 ο½ 8.888V VE 2 ο½ I E 2 RE 2 ο½ 5.0111V VCE 2 ο½ VC 2 ο VE 2 ο½ 3.8769V IB1 RB1 R IC2 IC1 + IB2 C1 IB2 VC1 IC1 V BE2 VBE1 VCE1 IE2 RC2 VC2 VCE2 VE2 RE2 Problem BJT P3: - Design the bias circuit (find RC and RB) to give a Qpoint of IC = 20µA and VCE = 0.9V if the transistor current gain βF = 50 and VBE = 0.65V. What is the Q-point if the current gain of the transistor is 125? • Soln: Apply KVL along the path (red line). ο¨I C ο« I B ο©RC ο« VCE ο½ 1.5 ο¦ IC οΆ ο§ο§ I C ο« ο·ο· RC ο« 0.9 ο½ 1.5 ο’ οΈ ο¨ ο¦ 1οΆ I C ο§ο§1 ο« ο·ο· RC ο½ 0.6 ο¨ ο’οΈ 1 οΆ ο6 ο¦ 20 *10 ο§1 ο« ο· RC ο½ 0.6 ο¨ 50 οΈ 0.6 RC ο½ ο½ 29.4117 kW ο6 20.4 *10 IB IC = 20µA VCE = 0.9V VBE = 0.65V • Soln contd.: (find RC and RB) to give a Q-point of IC = 20µA and VCE = 0.9V. • Apply KVL along the path (red line). ο¨I C ο« I B ο©RC ο« I B RB ο« VBE ο½ 1.5 ο¦ IC οΆ IC ο§ο§ I C ο« ο·ο· RC ο« RB ο« 0.65 ο½ 1.5 ο’ οΈ ο’ ο¨ ο¦ 20 *10ο6 οΆ ο·ο· RB ο« 0.65 ο½ 1.5 0.6 ο« ο§ο§ ο¨ 50 οΈ 0.4 *10ο6 * RB ο½ 0.25 RB ο½ 0.25 ο½ 625kW ο6 0.4 *10 IB IC = 20µA VCE = 0.9V VBE = 0.65V • Soln contd.: Find the Q-point if the current gain, βF = 125. We have RC=29.41kΩ, and RB=625kΩ, from previous calculations. • Apply KVL along the path (red line). ο¨I C ο« I B ο©RC ο« I B RB ο« VBE ο½ 1.5 ο¨ο’I B ο« I B ο© 29.41k ο« I B * 625k ο½ 0.85 ο¨126 * 29.41 k ο« 625k ο©I B ο½ 0.85 0.85 IB ο½ ο½ 0.196οA 6 4.331*10 I C ο½ ο’I B ο½ 125 * 0.196 *10 ο½ 24.53οA ο6 IC + I B IB IC VCE VBE = 0.65V • Soln contd.: Apply KVL along the path (red line). ο¨I C ο« I B ο©RC ο« VCE ο½ 1.5 ο¨24.53 ο« 0.196ο© *10ο6 * 29.41 k ο« VCE ο½ 1.5 VCE ο½ 1.5 ο 0.727 ο½ 0.773V IC + I B IB IC VCE • The Q-Point is: ο¨I C ,VCE ο© ο½ ο¨24.53οA, 0.773V ο© VBE = 0.65V Problem OP-AMP P1: - Consider the op-amp circuit shown below. If π£ππ (π‘) = 6 + 9πππ (500ππ‘), calculate the value of R2 required to generate a output, vo(t), with zero DC component. What is the resulting output voltage? R2 • Soln: The circuit shown is that of a differential amplifier. We can use superposition theorem to solve for the output voltage: connect inputs to ground (0 V), one at a time, and solve for output voltage. • • • • 5 kΩ + vin(t) _ 5kW Vb iin KVL1 From summing point constraints: Va = Vb From KVL2 v0 ο½ 5 ο iin (t ) R2 vin ο 5 From KVL1 and Ohms law iin ο½ 5kW Therefore ο¨6 ο« 9 cosο¨500ο°t ο©ο© ο 5 vo ο½ 5 ο Va * R2 + 5V _ + KVL2 + vo(t) _ vo R2 ο¨ 6 ο« 9 cosο¨500ο°t ο©ο© ο 5 ο½ 5ο *R 5kW • If DC component of vo is zero, 0 ο½ 5ο 6ο5 * R2 5kW 5 kΩ 2 Va - + vin(t) _ Vb + + 5V _ • Multiplying by 5kW on both sides and solving for R2, R2 = 25 kΩ • Then the output is π£o = - 45πππ (500ππ‘), + vo(t) _ Problem OP-AMP P2: - Consider the op-amp circuit shown below. Assume the maximum output voltage of the op-amp ranges from – 12 V to + 12 V; the maximum output current magnitude is 25 mA; and the slew-rate limit is 1.5 V/µs. If π£ππ (π‘)=π£ππ ππ(ππ‘), R1 = 5 kΩ, and R2 = 25 kΩ. a) Find the full-power bandwidth of the op-amp. • Soln: The full-power bandwidth of the op-amp is given by SR f FP ο½ 2ο°Vom • Slew-rate, SR = 1.5 V/µs; maximum output amplitude,Vom = 12 V. f FP 1.5 *106 ο½ ο» 19.9kHz 2ο° (12) R2 R1 + vin(t) _ + + vo(t) _ RL b) Find the peak output voltage possible without distortion for the following cases: • Case a: Frequency of 5 kHz and RL = 20 Ω – Soln.: The current limit of the op-amp limits the peak output voltage. Since RL is very small compared to R2 the current through R2 can be neglected. Thus the peak output voltage is given by Vom ο½ 25mA* RL ο½ 0.5V • Case b: Frequency of 5 kHz and RL = 2.5 kΩ – Soln.: Vom = 12 V (The maximum voltage that the op-amp can achieve.) • Case c: Frequency of 50 kHz and RL = 2.5 kΩ – Soln.: The slew-rate limit of the op-amp limits the peak output voltage. 6 SR 1.5 *10 Vom ο½ ο½ ο» 4.7V 3 2ο°f 2ο° (50 *10 ) Problem Logic Gates P1: - Express the following functions in canonical SOP form. (Hint: Draw the truth table for each one first.). • Soln:a) F(A, B, C) = (A + B’)C’ + A’C F(A, B, C) = AC’ + B’C’ + A’C= A’B’C’+A’B’C+A’BC+AB’C’+ABC’ A B C F 0 0 0 1 0 0 1 1 0 1 0 0 0 1 1 1 X Y Z F 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 1 0 1 0 0 1 1 1 0 0 1 1 0 1 0 0 1 0 1 1 1 0 1 1 1 b) F(X, Y, Z) = (X + Y’)(X’ + Z) + ZY’ F(X, Y, Z) = XX’ + XZ + X’Y’ + Y’Z + ZY’ 0 F(X, Y, Z) = XZ + X’Y’ + Y’Z 1 = =X’Y’Z’+X’Y’Z+XY’Z+XYZ 0 1 c) F(A, B, C, D) = AB’C + A’BC’D + A’BCD’ + B’D’ F(A, B, C, D) =AB’CD+AB’CD’+ A’BC’D + A’BCD’ + +AB’C’D’+A’B’CD’+A’B’C’D’ d) F(W, X, Y, Z) = WX’ + Z’(Y’ + W’) + W’Z’Y’ F(W, X, Y, Z) = WX’ + Y’Z’ + W’Z’ + W’Z’Y’ F(W, X, Y, Z) = W’X’YZ’+W’X’YZ’+WX’YZ’+WX’Y’Z’+ +WX’YZ+WX’Y’Z+WXY’Z’+W’XY’Z’+W’XYZ’ Karnaugh Map instead of truth table: C Y D A 1 1 1 1 Z 1 W B X 1 1 1 1 1 1 1 1 1 1 1 Problem Logic Gates P2: - Realize AND, OR and NOT functions using: a) NOR, b) NAND • Soln. a:- Using NOR Gates • Soln. b:- Using NAND Gates Problem Logic Gates P3: - a) Use Karnaugh-map to find the SOP form of the following function: F = BC’D’ + BC’D + A’C’D’ + BCD’ + A’B’CD’ • Soln:F = BC’D’ + BC’D + A’C’D’ + BCD’ + A’B’CD’ C 1 1 1 1 1 1 1 1 A D SOP: F = BD’ + BC’ + A’D’ B Problem Logic Gates P3: - b) Find the minimum POS form of the function above and draw a logic circuit representing the same. • Soln:ο§ For minimum POS – Minimize the logic function F’ and take inverse. That is consider locations with zero (0) and then invert the result. C A 1 1 0 0 0 0 0 0 1 1 0 1 1 1 0 1 D POS: F = (B + D’) . (A’ + B) . (C’ + D’) B