summaryrefslogtreecommitdiff
path: root/Electronic_Principles_/Chapter_19_New.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'Electronic_Principles_/Chapter_19_New.ipynb')
-rw-r--r--Electronic_Principles_/Chapter_19_New.ipynb71
1 files changed, 0 insertions, 71 deletions
diff --git a/Electronic_Principles_/Chapter_19_New.ipynb b/Electronic_Principles_/Chapter_19_New.ipynb
index 6edb4ee9..2cb36ac1 100644
--- a/Electronic_Principles_/Chapter_19_New.ipynb
+++ b/Electronic_Principles_/Chapter_19_New.ipynb
@@ -27,24 +27,18 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 19.1.py\n",
- "#Calculate feedback fraction, the ideal closed-loop voltage gain, the percent error & exact closed loop voltage gain. \n",
- "#AVOL= 100,000 for 741C. \n",
"\n",
- "#Variable declaration\n",
"Vin=50 #input voltage(mV)\n",
"Rf=3.9 #feedback path resistance Rf (KOhm)\n",
"R1=0.1 #inverting input resistance R1(KOhm)\n",
"AVOL=100000 #open loop voltage gain\n",
"\n",
- "#Calculation\n",
"B=R1/(Rf+R1) #feedback fraction\n",
"Av=B**-1 #closed loop voltage gain\n",
"Err=100/(1+AVOL*B) #percent error (%)\n",
"Av1=Av-((Av/100)*Err) #closed loop voltage gain1\n",
"Av2=AVOL/(1+AVOL*B) #closed loop voltage gain2\n",
"\n",
- "#Result\n",
"print 'closed loop voltage gain by approach 1 = ',round(Av1,2)\n",
"print 'closed loop voltage gain by approach 2 = ',round(Av2,2)"
],
@@ -74,10 +68,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 19.2.py\n",
- "#741C has an Rin of 2MOhm and an RCM of 200MOhm. What is closed loop input impedance?\n",
"\n",
- "#Variable declaration\n",
"Vin=50 #input voltage(mV)\n",
"Rf=3.9*10**3 #feedback path resistance Rf (Ohm)\n",
"R1=100 #inverting input resistance R1(Ohm)\n",
@@ -86,12 +77,9 @@
"Rin=2*10**6 #open loop input resistance(Ohm)\n",
"RCM=200*10**6 #common mode input resistance(Ohm)\n",
"\n",
- "#Calculation\n",
"Zin_CL=(1+(AVOL*B))*Rin #closed loop input impedance(Ohm)\n",
- "#for answer>100MOHM use equation 19-8\n",
"Zin_CL1=RCM*Zin_CL/(RCM+Zin_CL) #closed loop input impedance(Ohm)\n",
"\n",
- "#Result\n",
"print 'closed loop input impedance Zin(CL) = ',round((Zin_CL1/10**6),2),'MOhm'"
],
"language": "python",
@@ -119,19 +107,13 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 19.3.py\n",
- "#calculate the closed loop output impedance in figure 19-6.\n",
- "#AVOL of 100,000 and Rout of 75 Ohm.\n",
"\n",
- "#Variable declaration \n",
"Rout=75 #open loop output resistance(Ohm)\n",
"AVOL=100000 #open loop voltage gain\n",
"B=0.025 #feedback fraction\n",
"\n",
- "#Calculation\n",
"Zout_CL=Rout/(1+AVOL*B) #closed loop input impedance(Ohm)\n",
"\n",
- "#Result\n",
"print 'closed loop output impedance Zout(CL) = ',round(Zout_CL,2),'Ohm'"
],
"language": "python",
@@ -159,19 +141,13 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 19.4.py\n",
- "#Amplifier has an open loop total harmonic distortion of 7.5%. \n",
- "#what is the closed loop total harmonic distribution?\n",
"\n",
- "#Variable declaration\n",
"THD=7.5 #open loop total harmonic distortion (%)\n",
"AVOL=100000 #open loop voltage gain\n",
"B=0.025 #feedback fraction\n",
"\n",
- "#Calculation\n",
"THD_CL=THD/(1+AVOL*B) #closed loop total harmonic distortion (%)\n",
"\n",
- "#Result\n",
"print 'Closed loop total harmonic distortion THD(CL) = ',round(THD_CL,3),'%'"
],
"language": "python",
@@ -199,17 +175,12 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 19.5.py\n",
- "#In figure 19-9, what is output voltage for input frequency 1 KHz?\n",
"\n",
- "#Variable declaration\n",
"Iin=1 #input current(mA)\n",
"Rf=5 #feedback path resistance Rf (KOhm)\n",
"\n",
- "#Calculation\n",
"Vout=-(Iin*Rf) #Output voltage at 1KHz (Vpp) \n",
"\n",
- "#Result\n",
"print 'Output ac voltage at 1KHz Vout = ',Vout,'Vpp'"
],
"language": "python",
@@ -237,19 +208,14 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 19.6.py\n",
- "#What are the closed loop input & output impedances in figure 19-9?\n",
"\n",
- "#Variable declaration \n",
"Rout=75.0 #open loop output resistance(Ohm)\n",
"AVOL=100000 #open loop voltage gain\n",
"Rf=5.0*10**3 #feedback path resistance(Ohm)\n",
"\n",
- "#Calculation \n",
"Zin_CL=Rf/(1+AVOL) #closed loop input impedance(Ohm)\n",
"Zout_CL=Rout/(1+AVOL) #closed loop input impedance(Ohm)\n",
"\n",
- "#Result\n",
"print 'closed loop input impedance Zin(CL) = ',round(Zin_CL,2),'Ohm'\n",
"print 'closed loop output impedance Zout(CL) = ',round(Zout_CL,5),'Ohm'"
],
@@ -279,21 +245,16 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 19.7.py\n",
- "#what is IL & PL ? What happens if RL = 4 Ohm?\n",
"\n",
- "#Variable declaration\n",
"Vin=2 #input voltage(Vrms)\n",
"RL1=2 #load resistance (KOhm)\n",
"R1=1 #inverting input resistance R1(KOhm)\n",
"RL2=4 #load resistance(KOhm)\n",
"\n",
- "#Calculation\n",
"iout=Vin/R1 #output current (mA)\n",
"PL1=(iout**2)*RL1 #load power for 2 Ohm (W) \n",
"PL2=(iout**2)*RL2 #load power for 4 Ohm (W) \n",
"\n",
- "#Result\n",
"print 'load power for 2 Ohm = ',PL1,'W'\n",
"print 'load power for 4 Ohm = ',PL2,'W'"
],
@@ -323,25 +284,20 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 19.8.py\n",
- "#what is IL & PL? What happens if RL = 2 Ohm?\n",
"\n",
"import math\n",
"\n",
- "#Variable declaration\n",
"Iin=1.5*10**-3 #input current(mA)\n",
"RL1=1 #load resistance (KOhm)\n",
"R1=1 #inverting input resistance R1(KOhm)\n",
"RL2=2 #load resistance (KOhm)\n",
"Rf=1*10**3 #feedback path resistance(Ohm)\n",
"\n",
- "#Calculation\n",
"Ai=math.ceil(1+(Rf/R1)) #current gain\n",
"iout=Iin*Ai #output current (mA)\n",
"PL1=(iout**2)*RL1 #load power for 1 Ohm (W) \n",
"PL2=(iout**2)*RL2 #load power for 2 Ohm (W) \n",
"\n",
- "#Result\n",
"print 'load power for 2 Ohm = ',round(PL1,2),'W'\n",
"print 'load power for 4 Ohm = ',round(PL2,2),'W'"
],
@@ -371,17 +327,12 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 19.9.py\n",
- "#LF411A with (1+AvolB)=1000 and f2(OL)=160 Hz, what is closed loop bandwidth?\n",
"\n",
- "#Variable declaration\n",
"AB=1000 #(1+AvolB) term \n",
"f2_OL=160 #open loop bandwidth(Hz)\n",
"\n",
- "#Calculation\n",
"f2_CL=f2_OL*AB/1000 #closed loop bandwidth(KHz)\n",
"\n",
- "#Result\n",
"print 'closed loop bandwidth f2(CL)= ',f2_CL,'KHZ'"
],
"language": "python",
@@ -409,19 +360,13 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 19.10.py\n",
- "#LF308 with AVOL=250,000 and f2(OL)=1.2 Hz, \n",
- "#what is closed loop bandwidth for Av(CL)=50?\n",
"\n",
- "#Variable declaration\n",
"AVOL=250000 #open loop voltage gain\n",
"f2_OL=1.2 #open loop bandwidth(Hz)\n",
"Av_CL=50 #closed loop voltage gain\n",
"\n",
- "#Calculation\n",
"f2_CL=f2_OL*AVOL/Av_CL/1000 #closed loop bandwidth(KHz)\n",
"\n",
- "#Result\n",
"print 'closed loop bandwidth for Av(CL) = 50, f2(CL)= ',f2_CL,'KHZ'"
],
"language": "python",
@@ -449,17 +394,12 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 19.11.py\n",
- "#LM12 with AVOL =50000 and f2(OL)=14 Hz, what is closed loop bandwidth?\n",
"\n",
- "#Variable declaration\n",
"AVOL=50000 #open loop voltage gain\n",
"f2_OL=14 #open loop bandwidth(Hz)\n",
"\n",
- "#Calculation\n",
"f2_CL=f2_OL*(1+AVOL)/1000 #closed loop bandwidth(KHz)\n",
"\n",
- "#Result\n",
"print 'closed loop bandwidth f2(CL)= ',f2_CL,'KHZ'"
],
"language": "python",
@@ -487,17 +427,12 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 19.12.py\n",
- "#OP-07A with (1+AvolB)=2500 and f2(OL)=20 Hz, what is closed loop bandwidth?\n",
"\n",
- "#Variable declaration\n",
"AB=2500 #(1+AvolB) term \n",
"f2_OL=20 #open loop bandwidth(Hz)\n",
"\n",
- "#Calculation\n",
"f2_CL=f2_OL*AB/1000 #closed loop bandwidth(KHz)\n",
"\n",
- "#Result\n",
"print 'closed loop bandwidth f2(CL)= ',f2_CL,'KHZ'"
],
"language": "python",
@@ -525,22 +460,16 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 19.13.py\n",
- "#LM741C with Funity 1MHz, Sr=0.5 V/us. \n",
- "#Av(CL) =10. Find closed loop bandwidth & largest peak output voltage at f2(CL)?\n",
"\n",
"import math\n",
"\n",
- "#Variable declaration\n",
"Av_CL=10.0 #voltage gain\n",
"Funity=1*10**6 #unity frequency (Hz) \n",
"Sr=0.5 #slew rate (V/us)\n",
"\n",
- "#Calculation\n",
"f2_CL=Funity/Av_CL/1000 #closed loop bandwidth(KHz)\n",
"Vp_max=1000*Sr/(2*math.pi*f2_CL) #largest peak output voltage(V)\n",
"\n",
- "#Result \n",
"print 'closed loop bandwidth f2(CL)= ',f2_CL,'KHZ'\n",
"print 'largest peak output voltage Vp(max)= ',round(Vp_max,3),'V'"
],