summaryrefslogtreecommitdiff
path: root/Electronic_Principles_/Chapter_17_New.ipynb
diff options
context:
space:
mode:
authordebashisdeb2014-06-20 15:42:42 +0530
committerdebashisdeb2014-06-20 15:42:42 +0530
commit83c1bfceb1b681b4bb7253b47491be2d8b2014a1 (patch)
treef54eab21dd3d725d64a495fcd47c00d37abed004 /Electronic_Principles_/Chapter_17_New.ipynb
parenta78126bbe4443e9526a64df9d8245c4af8843044 (diff)
downloadPython-Textbook-Companions-83c1bfceb1b681b4bb7253b47491be2d8b2014a1.tar.gz
Python-Textbook-Companions-83c1bfceb1b681b4bb7253b47491be2d8b2014a1.tar.bz2
Python-Textbook-Companions-83c1bfceb1b681b4bb7253b47491be2d8b2014a1.zip
removing problem statements
Diffstat (limited to 'Electronic_Principles_/Chapter_17_New.ipynb')
-rw-r--r--Electronic_Principles_/Chapter_17_New.ipynb75
1 files changed, 0 insertions, 75 deletions
diff --git a/Electronic_Principles_/Chapter_17_New.ipynb b/Electronic_Principles_/Chapter_17_New.ipynb
index 3de7e129..a6647813 100644
--- a/Electronic_Principles_/Chapter_17_New.ipynb
+++ b/Electronic_Principles_/Chapter_17_New.ipynb
@@ -27,18 +27,13 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 17.1.py\n",
- "#What are the ideal currents & voltages in figure 17-6a?\n",
"\n",
- "#Variable declaration\n",
"VCC=15 #supply voltage(V)\n",
"RE=7.5 #Emitter resistance(KOhm)\n",
"\n",
- "#Calculation\n",
"IT=VCC/RE #tail current (mA)\n",
"IE=IT/2 #emitter current (mA)\n",
"\n",
- "#Result\n",
"print 'tail current = ',IT,'mA'\n",
"print 'emitter current = ',IE,'mA'"
],
@@ -68,21 +63,16 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 17.2.py\n",
- "#Recalculate the currents and voltages for figure 17-6a using second approximation.\n",
"\n",
- "#Variable declaration\n",
"VCC=15 #supply voltage(V)\n",
"RE=7.5 #Emitter resistance(KOhm)\n",
"VBE=0.7 #base-emitter voltage(V)\n",
"RC=5 #collector resistance(KOhm)\n",
"\n",
- "#Calculation\n",
"IT=(VCC-VBE)/RE #tail current (mA)\n",
"IE=IT/2 #emitter current (mA)\n",
"VC=VCC-(IE*RC) #collector quiescent voltage(V) \n",
"\n",
- "#Result\n",
"print 'tail current = ',round(IT,2),'mA'\n",
"print 'emitter current = ',round(IE,2),'mA'\n",
"print 'collector quiescent voltage VC = ',round(VC,2),'V'"
@@ -114,24 +104,18 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 17.3.py\n",
- "#What are the ideal currents & voltages in figure 17-7a?\n",
"\n",
- "#Variable declaration\n",
"VCC=12.0 #supply voltage(V)\n",
"RE=5.0 #Emitter resistance(KOhm)\n",
"RC=3.0 #collector resistance(KOhm)\n",
"\n",
- "#Calculation\n",
"IT=VCC/RE #tail current (mA)\n",
"IE=IT/2 #emitter current (mA)\n",
"VC=VCC-(IE*RC) #collector quiescent voltage(V) \n",
- "#with second approximation,\n",
"IT1=(VCC-VBE)/RE #tail current (mA)\n",
"IE1=IT1/2 #emitter current (mA)\n",
"VC1=VCC-(IE1*RC) #collector quiescent voltage(V) \n",
"\n",
- "#Result\n",
"print 'tail current = ',IT,'mA'\n",
"print 'emitter current = ',IE,'mA'\n",
"print 'collector quiescent voltage VC = ',VC,'V'\n",
@@ -171,10 +155,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 17.4.py\n",
- "#In figure 17-11, what is the ac output voltage? If B = 300, what is input impedance?\n",
"\n",
- "#Variable declaration\n",
"VCC=12.0 #supply voltage(V)\n",
"RE=7.5 #Emitter resistance(KOhm)\n",
"RC=5.0 #collector resistance(KOhm)\n",
@@ -182,13 +163,11 @@
"Vin=1 #input ac voltage(mV)\n",
"B=300 #current gain\n",
"\n",
- "#Calculation\n",
"re=25/IE #ac emitter resistance(Ohm)\n",
"Av=1000*RC/re #voltage gain\n",
"Vout=Av*Vin #Output voltage(mV)\n",
"Zinb=2*B*re #input impedance of diff amp(Ohm)\n",
"\n",
- "#Result\n",
"print 'voltage gain Av = ',Av\n",
"print 'Output voltage Vout = ',Vout,'mV'\n",
"print 'input impedance of diff amplifier, Zin(base) = ',Zinb/1000,'KOhm'"
@@ -220,10 +199,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 17.5.py\n",
- "#Repeat preceding example using second approximation to calculate ICQ.\n",
"\n",
- "#Variable declaration\n",
"VCC=12.0 #supply voltage(V)\n",
"RE=7.5 #Emitter resistance(KOhm)\n",
"RC=5.0 #collector resistance(KOhm)\n",
@@ -231,13 +207,11 @@
"Vin=1 #input ac voltage(mV)\n",
"B=300 #current gain\n",
"\n",
- "#Calculation\n",
"re=25/IE #ac emitter resistance(Ohm)\n",
"Av=1000*RC/re #voltage gain\n",
"Vout=Av*Vin #Output voltage(mV)\n",
"Zinb=2*B*re #input impedance of diff amp(Ohm)\n",
"\n",
- "#Result\n",
"print 'voltage gain Av = ',Av\n",
"print 'Output voltage Vout = ',Vout,'mV'\n",
"print 'input impedance of diff amplifier, Zin(base) = ',round((Zinb/1000),2),'KOhm'"
@@ -269,10 +243,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 17.6.py\n",
- "#Repeat example 17-4 for v2=1mV & v1=0.\n",
"\n",
- "#Variable declaration\n",
"VCC=12.0 #supply voltage(V)\n",
"RE=7.5 #Emitter resistance(KOhm)\n",
"RC=5.0 #collector resistance(KOhm)\n",
@@ -280,13 +251,11 @@
"V2=1 #input ac voltage(mV)\n",
"B=300 #current gain\n",
"\n",
- "#Calculation\n",
"re=25/IE #ac emitter resistance(Ohm)\n",
"Av=1000*RC/re #voltage gain\n",
"Vout=Av*V2 #Output voltage(mV)\n",
"Zinb=2*B*re #input impedance of diff amp(Ohm)\n",
"\n",
- "#Result\n",
"print 'V2 input is at inverting input, So, ideally same as previous case.'\n",
"print 'Voltage gain Av = ',Av\n",
"print 'Output voltage Vout = ',Vout,'mV'\n",
@@ -320,10 +289,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 17.7.py\n",
- "#What is ac output voltage in figure 17-12? if B=300, what is input impedance?\n",
"\n",
- "#Variable declaration\n",
"VCC=15.0 #supply voltage(V)\n",
"RC=1.0**10**6 #collector resistance(Ohm)\n",
"RE=1.0**10**6 #emitter resistance(Ohm)\n",
@@ -331,7 +297,6 @@
"Vin=7 #input ac voltage(mV)\n",
"B=300 #current gain\n",
"\n",
- "#Calculation\n",
"IT=VCC/RE #tail current (uA)\n",
"IE=IT/2 #emitter current (uA)\n",
"re=25/IE/1000 #ac emitter resistance(Ohm)\n",
@@ -339,7 +304,6 @@
"Vout=Av*Vin #Output voltage(V)\n",
"Zinb=2*B*re #input impedance of diff amp(MOhm)\n",
"\n",
- "#Result\n",
"print 'Voltage gain Av = ',Av\n",
"print 'Output voltage Vout = ',Vout/1000,'V'\n",
"print 'input impedance of diff amplifier, Zin(base) = ',Zinb,'MOhm'"
@@ -371,11 +335,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 17.8.py\n",
- "#The diff amp of figure 17-17 has Av=200, Iin(bias)=3uA, Iin(off) =0.5 uA. and Vin(off)= 1mV. What is output error voltage?\n",
- "#what is output error voltage?\n",
"\n",
- "#Variable declaration\n",
"VCC=15.0 #supply voltage(V)\n",
"RC=5.0*10**3 #collector resistance(Ohm)\n",
"RE=7.5*10**3 #emitter resistance(Ohm)\n",
@@ -386,18 +346,15 @@
"Iino =0.5*10**-6 #Iin(off) (A) \n",
"Vino=1.0 #Vin(off) (mV)\n",
"\n",
- "#Calculation\n",
"V1err=RB*Iinb*1000 #dc error input1 (mV)\n",
"V2err=RB*(Iino/2)*1000 #dc error input2 (mV)\n",
"V3err=Vino #dc error input3 (mV)\n",
"Verror=Av*(V1err+V2err+V3err) #output error voltage(mV)\n",
- "#if matching base resistor is used,\n",
"V1err1=0 #dc error input1 (mV)\n",
"V2err1=RB*Iino*1000 #dc error input2 (mV)\n",
"V3err1=Vino #dc error input3 (mV)\n",
"Verror1=Av*(V1err1+V2err1+V3err1) #output error voltage(mV)\n",
"\n",
- "#Result\n",
"print 'output error voltage Verror = ',Verror,'mV'\n",
"print 'output error voltage Verror = ',Verror1,'mV'"
],
@@ -427,10 +384,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 17.9.py\n",
- "#The diff amp of figure 17-18 has Av=300, Iin(bias)=80nA, Iin(off) =20 nA. and Vin(off)= 5mV. What is output error voltage?\n",
"\n",
- "#Variable declaration\n",
"VCC=15.0 #supply voltage(V)\n",
"RC=1.0*10**6 #collector resistance(Ohm)\n",
"RE=1.0*10**6 #emitter resistance(Ohm)\n",
@@ -441,13 +395,11 @@
"Iino=20*10**-9 #Iin(off) (A) \n",
"Vino=5.0 #Vin(off) (mV)\n",
"\n",
- "#Calculation\n",
"V1err=0 #dc error input1 (mV)\n",
"V2err=RB*(Iino/2)*1000 #dc error input2 (mV)\n",
"V3err=Vino #dc error input3 (mV)\n",
"Verror=Av*(V1err+V2err+V3err) #output error voltage(mV)\n",
"\n",
- "#Result\n",
"print 'output error voltage Verror = ',Verror/1000,'V'"
],
"language": "python",
@@ -475,20 +427,15 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 17.10.py\n",
- "#In figure 17-2, what is common-node voltage gain & output voltage?\n",
"\n",
- "#Variable declaration\n",
"VCC=15.0 #supply voltage(V)\n",
"RC=1.0*10**6 #collector resistance(Ohm)\n",
"RE=1.0*10**6 #emitter resistance(Ohm)\n",
"Vin=1 #input ac voltage(mV)\n",
"\n",
- "#Calculation\n",
"Av_CM=RC/(2*RE) #common mode voltage gain\n",
"Vout=Av_CM*Vin #output voltage(mV) \n",
"\n",
- "#Result \n",
"print 'common mode voltage gain : Av(CM) = ',Av_CM\n",
"print 'Output voltage Vout = ',Vout,'mV'"
],
@@ -518,21 +465,15 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 17.11.py\n",
- "#In figure 17-22 has Av=150, Av(CM)=0.5, Vin =1 mV. \n",
- "#If base leads are picking up a common-mode signal of 1mV, what is the output voltage?\n",
"\n",
- "#Variable declaration\n",
"Vin=1 #input ac voltage(mV)\n",
"Av=150 #voltage gain\n",
"Av_CM=0.5 #common mode voltage gain\n",
"\n",
- "#Calculation\n",
"Vout1=Av*Vin #output voltage1(mV)\n",
"Vout2=Av_CM*Vin #output voltage2(mV)\n",
"Vout=Vout1+Vout2 #output volatge(mV)\n",
"\n",
- "#Result\n",
"print 'output voltage Vout1 = ',Vout1,'mV'\n",
"print 'output voltage Vout2 = ',Vout2,'mV'\n",
"print 'output voltage Vout = ',Vout,'mV'"
@@ -564,22 +505,16 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 17.12.py\n",
- "#OP-AMP with Av=2,00,000 & CMRR(dB)=90dB. what is the common mode voltage gain? \n",
- "#If desired & common-mode signal is of 1uV, what is the output voltage?\n",
"\n",
- "#Variable declaration\n",
"CMRR_dB=90 #CMRR(dB)\n",
"Av=200000 #voltage gain\n",
"Vin=1*10**-6 #input voltage(V)\n",
"\n",
- "#Calculation\n",
"CMRR=10**(CMRR_dB/20.0) #CMRR \n",
"Av_CM=Av/CMRR #common mode voltage gain \n",
"Vout1=Av*Vin #desired output: voltage1(V)\n",
"Vout2=Av_CM*Vin #common mode output: voltage2(V)\n",
"\n",
- "#Result\n",
"print 'output voltage Vout1 = ',Vout1,'V'\n",
"print 'output voltage Vout2 = ',round((Vout2*10**6),2),'uV'\n",
"print 'see, desired output is much larger than common mode output.'"
@@ -611,10 +546,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 17.13.py\n",
- "#What is load voltage in figure 17-32a when RL=15KOhm?\n",
"\n",
- "#Variable declaration\n",
"VCC=15.0 #supply voltage(V)\n",
"RC=7.5*10**3 #collector resistance(Ohm)\n",
"RE=7.5*10**3 #emitter resistance(Ohm)\n",
@@ -622,13 +554,11 @@
"re=25 #as per example 17-4 (Ohm) \n",
"RL=15*10**3 #load resistance(KOhm)\n",
"\n",
- "#Calculation\n",
"Av=RC/re #voltage gain\n",
"Vout=Av*V1/1000 #output voltage(V) \n",
"RTH=2*RC #Thevenin resistance(Ohm)\n",
"VL=(RL/(RL+RTH))*Vout #load voltage(V)\n",
"\n",
- "#Result \n",
"print 'Load voltage VL = ',VL,'V'"
],
"language": "python",
@@ -656,17 +586,12 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 17.14.py\n",
- "#An ammeter is used for load resistance. find current through the ammeter?\n",
"\n",
- "#Variable declaration\n",
"RL=15.0 #load resistance as per previous example(Ohm)\n",
"VL=3 #load voltage as per previous example(V)\n",
"\n",
- "#Calculation\n",
"iL=VL/RL #load current(mA)\n",
"\n",
- "#Result\n",
"print 'Load current iL = ',iL,'mA'"
],
"language": "python",