diff options
Diffstat (limited to 'Electronic_Principles_/Chapter_18_New.ipynb')
-rw-r--r-- | Electronic_Principles_/Chapter_18_New.ipynb | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/Electronic_Principles_/Chapter_18_New.ipynb b/Electronic_Principles_/Chapter_18_New.ipynb index 1fbf3765..a06bb044 100644 --- a/Electronic_Principles_/Chapter_18_New.ipynb +++ b/Electronic_Principles_/Chapter_18_New.ipynb @@ -27,17 +27,12 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "#Example 18.1.py\n",
- "#How much inverting input voltage required to drive the 741C of figure 18-11a into negative saturation?\n",
"\n",
- "#Variable declaration\n",
"Vout=13.5 #As per figure 18-7b(V)\n",
"Aov=100000 #open loop voltage gain\n",
"\n",
- "#Calculation\n",
"V2=Vout/Aov #required input voltage(V)\n",
"\n",
- "#Result\n",
"print 'Required input voltage V2 = ',V2*10**6,'uV'"
],
"language": "python",
@@ -65,16 +60,11 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "#Example 18.2.py\n",
- "#What is the CMRR of a 741C when the input frequency is 100KHz?\n",
"\n",
- "#Variable declaration\n",
"CMRR_dB=40 #As per figure 18-7a at 100KHz(dB)\n",
"\n",
- "#Calculation\n",
"CMRR=10**(CMRR_dB/20)\n",
"\n",
- "#Result\n",
"print 'Common-mode rejection ratio = ',CMRR"
],
"language": "python",
@@ -102,16 +92,12 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "#Example 18.3.py\n",
- "#what is the open loop voltage gain of 741C when input frequency is 1KHz? 10KHZ? 100KHz?\n",
"\n",
- "#Variable declaration / Calculation\n",
"\n",
"Av1=1000 #Voltage gain as per figure 18-7c for 1KHZ\n",
"Av10=100 #Voltage gain as per figure 18-7c for 10KHZ\n",
"Av100=10 #Voltage gain as per figure 18-7c for 100KHZ\n",
"\n",
- "#Result\n",
"print 'Voltage gain for 1KHZ = ',Av1\n",
"print 'Voltage gain for 1KHZ = ',Av10\n",
"print 'Voltage gain for 1KHZ = ',Av100"
@@ -143,17 +129,12 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "#Example 18.4.py\n",
- "#the output changes to 0.25 V in 0.1us. What is te slew rate of the op amp?\n",
"\n",
- "#Variable declaration\n",
"Vout=0.25 #output changes in 0.1us (V)\n",
"t=0.1 #time for output change(us) \n",
"\n",
- "#Calculation\n",
"SR=Vout/t #slew rate(V/us)\n",
"\n",
- "#Result\n",
"print 'Slew rate SR = ',SR,'V/us'"
],
"language": "python",
@@ -181,17 +162,12 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "#Example 18.5.py\n",
- "#The LF411A has a slew ratwe of 15 V/us. what is power bandwidth for peak output voltage of 10V?\n",
"import math\n",
- "#Variable declaration\n",
"SR=15 #slew rate(V/us)\n",
"Vp=10 #Peak output voltage(V)\n",
"\n",
- "#Calculation\n",
"fmax=1000*SR/(2*math.pi*Vp) #power bandwidth (KHz) \n",
"\n",
- "#Result\n",
"print 'Power bandwidth = ',round(fmax),'KHz'"
],
"language": "python",
@@ -219,23 +195,18 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "#Example 18.6.py\n",
- "#What is the power bandwidth for each of following?\n",
"\n",
"import math\n",
"\n",
- "#Variable declaration\n",
"SR1=0.5 #Slew rate1(V/us)\n",
"SR2=5 #Slew rate2(V/us)\n",
"SR3=50 #Slew rate3(V/us)\n",
"Vp=8 #peak voltage(V)\n",
"\n",
- "#Calculation\n",
"fmax1=1000*SR1/(2*math.pi*Vp) #power bandwidth1 (KHz) \n",
"fmax2=1000*SR2/(2*math.pi*Vp) #power bandwidth2 (KHz) \n",
"fmax3=SR3/(2*3*math.pi*Vp) #power bandwidth3 (MHz) \n",
"\n",
- "#Result\n",
"print 'Power bandwidth1 = ',math.ceil(fmax1),'KHz'\n",
"print 'Power bandwidth2 = ',math.ceil(fmax2),'KHz'\n",
"print 'Power bandwidth3 = ',math.ceil(fmax3),'MHz'"
@@ -267,22 +238,17 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "#Example 18.7.py\n",
- "#What are closed-loop voltage gain and bandwidth? what is output voltage at 1KHz & 1MHz?\n",
"\n",
- "#Variable declaration\n",
"Vin=10 #input voltage(mV)\n",
"Rf=75 #feedback path resistance Rf (KOhm)\n",
"R1=1.5 #inverting input resistance R1(KOhm)\n",
"Funity=1 #Funity (MHz)\n",
"\n",
- "#Calculation\n",
"Av_CL=-Rf/R1 #closed loop voltage gain\n",
"f2_CL1=Funity/-Av_CL #closed loop bandwidth1(KHz)\n",
"Vout1=Av_CL*Vin #output voltage1(mV)\n",
"Vout2=-Vin #output voltage2(mV)\n",
"\n",
- "#Result\n",
"print 'Output voltage for 1KHz = ',Vout1,'mVpp'\n",
"print 'Output voltage for 1MHz = ',Vout2,'mVpp'"
],
@@ -312,10 +278,7 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "#Example 18.8.py\n",
- "#What is output voltage in figure 18-17 when Vin=0?\n",
"\n",
- "#Variable declaration\n",
"Vin=10 #input voltage(mV)\n",
"Rf=75 #feedback path resistance Rf (KOhm)\n",
"R1=1.5 #inverting input resistance R1(KOhm)\n",
@@ -325,14 +288,12 @@ "Av=50 #voltage gain \n",
"RB1=0 #resistance at noninverting input(KOhm) \n",
"\n",
- "#Calculation\n",
"RB2=R1*Rf/(Rf+R1) #thevenin resistance at inverting input(KOhm) \n",
"V1err=(RB1-RB2)*Iinb*10**6 #dc error input1 (mV)\n",
"V2err=(RB1+RB2)*(Iino/2)*10**6 #dc error input2 (mV)\n",
"V3err=Vino #dc error input3 (mV)\n",
"Verror=Av*(abs(V1err)+V2err+V3err) #output error voltage(mV)\n",
"\n",
- "#Result\n",
"print 'output error voltage Verror = ',round(Verror,2),'mV'"
],
"language": "python",
@@ -360,11 +321,7 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "#Example 18.9.py\n",
- "#Iin(bias)=500nA, Iin(off) =200 nA. and Vin(off)= 6mV. \n",
- "#Calculate output voltage for Vin=0.\n",
"\n",
- "#Variable declaration\n",
"Vin=10 #input voltage(mV)\n",
"Rf=75 #feedback path resistance Rf (KOhm)\n",
"R1=1.5 #inverting input resistance R1(KOhm)\n",
@@ -374,14 +331,12 @@ "Av=50 #voltage gain \n",
"RB1=0 #resistance at noninverting input(KOhm) \n",
"\n",
- "#Calculation\n",
"RB2=R1*Rf/(Rf+R1) #thevenin resistance at inverting input(KOhm) \n",
"V1err=(RB1-RB2)*Iinb*10**6 #dc error input1 (mV)\n",
"V2err=(RB1+RB2)*(Iino/2)*10**6 #dc error input2 (mV)\n",
"V3err=Vino #dc error input3 (mV)\n",
"Verror=Av*(abs(V1err)+V2err+V3err) #output error voltage(mV)\n",
"\n",
- "#Result\n",
"print 'output error voltage Verror = ',round(Verror,2),'mV'"
],
"language": "python",
@@ -409,24 +364,19 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "#Example 18.10.py\n",
- "#In figure 18-22a, What is closed-loop voltage gain, bandwidth and output voltage at 250KHz?\n",
"\n",
"import math\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",
"Funity=1*10**6 #Funity (Hz)\n",
"\n",
- "#Calculation\n",
"Av_CL=1+(Rf/R1) #closed loop voltage gain\n",
"f2_CL1=Funity/Av_CL #closed loop bandwidth1(KHz)\n",
"Av_CL1=math.ceil(10**(12/20.0)) #Av for 12 dB at 250 KHz \n",
"Vout=Av_CL1*Vin #output voltage(mV)\n",
"\n",
- "#Result\n",
"print 'Output voltage for 250KHz = ',Vout,'mVpp'"
],
"language": "python",
@@ -454,11 +404,7 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "#Example 18.11.py\n",
- "#Iin(bias)=500nA, Iin(off) =200 nA. and Vin(off)= 6mV. \n",
- "#What is the output voltage?\n",
"\n",
- "#Variable declaration\n",
"Vin=10 #input voltage(mV)\n",
"Rf=3.9*10**3 #feedback path resistance Rf (Ohm)\n",
"R1=100 #inverting input resistance R1(Ohm)\n",
@@ -468,14 +414,12 @@ "Av=40 #voltage gain \n",
"RB1=0 #resistance at noninverting input(KOhm) \n",
"\n",
- "#Calculation\n",
"RB2=R1*Rf/(Rf+R1) #thevenin resistance at inverting input(KOhm) \n",
"V1err=(RB1-RB2)*Iinb #dc error input1 (mV)\n",
"V2err=(RB1+RB2)*(Iino/2) #dc error input2 (mV)\n",
"V3err=Vino #dc error input3 (mV)\n",
"Verror=Av*(abs(V1err)+V2err+V3err) #output error voltage(mV)\n",
"\n",
- "#Result\n",
"print 'output error voltage Verror = ',Verror*1000,'mV'"
],
"language": "python",
@@ -503,10 +447,7 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "#Example 18.12.py\n",
- "#Three audio signals drive the summing amplifier of figure 18-25. What is the ac output voltage?\n",
"\n",
- "#Variable declaration\n",
"Vin1=100*10**-3 #input voltage1(V)\n",
"Vin2=200*10**-3 #input voltage2(V)\n",
"Vin3=300*10**-3 #input voltage3(V)\n",
@@ -515,14 +456,12 @@ "R2=10.0 #inverting input resistance R2(KOhm)\n",
"R3=50.0 #inverting input resistance R3(KOhm)\n",
"\n",
- "#Calculation\n",
"Av1_CL=-Rf/R1 #closed loop voltage gain\n",
"Av2_CL=-Rf/R1 #closed loop voltage gain\n",
"Av3_CL=-Rf/R1 #closed loop voltage gain\n",
"Vout=Av1_CL*Vin1+Av2_CL*Vin2+Av3_CL*Vin3 #output voltage1(mV)\n",
"RB2=(R1**-1+R2**-1+R3**-1+Rf**-1)**-1 #thevenin resistance at inverting input(KOhm) \n",
"\n",
- "#Result\n",
"print 'Output voltage = ',Vout,'Vpp'\n",
"print 'thevenin resistance at inverting input RB2 = ',round(RB2,2),'KOhm'"
],
@@ -552,20 +491,14 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "#Example 18.13.py\n",
- "#An ac voltage source of 10 mVpp with an internal resistance of 100 KOhm drives voltage follower. \n",
- "#RL is 1 Ohm. Find output voltage & bandwidth.\n",
"\n",
- "#Variable declaration\n",
"Vin=10 #ac voltage source (mVpp)\n",
"Av=1 #voltage gain\n",
"Funity=1 #unity frequency (MHz) \n",
"\n",
- "#Calculation\n",
"Vout=Av*Vin #output voltage(V) \n",
"f2_CL=Funity #bandwidth(MHz) \n",
"\n",
- "#Result \n",
"print 'Output voltage = ',Vout,'mVpp'\n",
"print 'Bandwidth f2(CL) = ',f2_CL,'MHz'"
],
@@ -595,20 +528,14 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "#Example 18.14.py\n",
- "#In voltage follower of figure 18-26a, the output voltage across the 1 Ohm load is 9.99 mV. \n",
- "#calculate closed loop output impedance.\n",
"\n",
- "#Variable declaration\n",
"RL=1.0 #load resistance(Ohm)\n",
"Vout=9.99 #load voltage(mV)\n",
"Vz=0.01 #voltage across Zout(CL) (mV)\n",
"\n",
- "#Calculation\n",
"iout=Vout/RL #load current(mA)\n",
"Zout_CL=Vz/iout #output impedance(Ohm)\n",
"\n",
- "#Result\n",
"print 'Load current iout = ',iout,'mA'\n",
"print 'closed loop output impedance Zout(CL) = ',round(Zout_CL,3),'Ohm'"
],
|