summaryrefslogtreecommitdiff
path: root/Electronic_Principles_/Chapter_21_New.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'Electronic_Principles_/Chapter_21_New.ipynb')
-rw-r--r--Electronic_Principles_/Chapter_21_New.ipynb66
1 files changed, 0 insertions, 66 deletions
diff --git a/Electronic_Principles_/Chapter_21_New.ipynb b/Electronic_Principles_/Chapter_21_New.ipynb
index 23c2ea5f..93fb24ec 100644
--- a/Electronic_Principles_/Chapter_21_New.ipynb
+++ b/Electronic_Principles_/Chapter_21_New.ipynb
@@ -27,22 +27,17 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 21.1.py\n",
- "#what is the voltage gain, cutoff frequency & the frequency response?\n",
"\n",
"import math\n",
"\n",
- "#Variable declaration\n",
"Rf=39.0 #feedback path resistance Rf (KOhm)\n",
"R1=1.0 #inverting input resistance R1(KOhm)\n",
"R2=12.0*10**3 #non-inverting input resistance R2(Ohm)\n",
"C=680*10**-12 #capacitance at non-inverting input(F)\n",
"\n",
- "#Calculation\n",
"Av=(Rf/R1)+1 # voltage gain\n",
"fc=(2*math.pi*R2*C)**-1 #cutoff frequency(Hz)\n",
"\n",
- "#Result\n",
"print 'voltage gain Av = ',Av\n",
"print 'cutoff frequency fc = ',round((fc/1000),2),'KHz'\n",
"print 'frequency response:'\n",
@@ -76,20 +71,15 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 21.2.py\n",
- "#what is the voltage gain, cutoff frequency & frequency response?\n",
"import math\n",
"\n",
- "#Variable declaration\n",
"Rf=43.0 #feedback path resistance Rf (KOhm)\n",
"R1=0.220 #non-inverting input resistance R1(KOhm)\n",
"C=100*10**-12 #capacitance (F)\n",
"\n",
- "#Calculation\n",
"Av=(-Rf/R1) # voltage gain\n",
"fc=((2*math.pi*Rf*C)**-1)/10**6 #cutoff frequency(KHz)\n",
"\n",
- "#Result\n",
"print 'voltage gain Av = ',round(Av,2)\n",
"print 'cutoff frequency fc = ',round(fc,2),'KHz'\n",
"print 'voltage gain is 45.8 dB in pass band. response breaks at 37 KHz.'"
@@ -121,22 +111,17 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 21.3.py\n",
- "#what are pole frequency, Q and cutoff frequency?\n",
"import math\n",
"\n",
- "#Variable declaration\n",
"R1=30 #non-inverting input resistance R1(KOhm)\n",
"R2=30 #non-inverting input resistance R2(KOhm)\n",
"C2=1.64*10**-9 #feedback path capacitance (F)\n",
"C1=820*10**-12 #non-inverting input capacitance (F)\n",
"\n",
- "#Calculation\n",
"Q=0.5*((C2/C1)**0.5) #Q\n",
"fp=((2*math.pi*R1*(C1*C2)**0.5)**-1)/10**6 #pole frequency(KHz)\n",
"fc=fp #cutoff frequency(KHz)\n",
"\n",
- "#Result\n",
"print ' Q = ',round(Q,3)\n",
"print 'pole frequency fp = ',round(fp,2),'KHz'\n",
"print 'cutoff frequency fc = fp, ',round(fc,2),'KHz'"
@@ -168,23 +153,18 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 21.4.py\n",
- "#In figure 21-28, what are pole frequency, Q & cutoff frequency?\n",
"import math\n",
"\n",
- "#Variable declaration\n",
"R1=51 #non-inverting input resistance R1(KOhm)\n",
"R2=51 #non-inverting input resistance R2(KOhm)\n",
"C2=440*10**-12 #feedback path capacitance (F)\n",
"C1=330*10**-12 #non-inverting input capacitance (F)\n",
"kc=0.786 #constant for bessel response \n",
"\n",
- "#Calculation\n",
"Q=0.5*((C2/C1)**0.5) #Q\n",
"fp=((2*math.pi*R1*(C1*C2)**0.5)**-1)/10**6 #pole frequency(KHz)\n",
"fc=kc*fp #cutoff frequency(KHz) \n",
"\n",
- "#Result\n",
"print ' Q = ',round(Q,2)\n",
"print 'pole frequency fp = ',round(fp,2),'KHz'\n",
"print 'cutoff frequency fc = ',round(fc,2),'KHz'"
@@ -216,12 +196,9 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 21.5.py\n",
- "#what are pole frequency and Q & cutoff and 3-dB frequencies?\n",
"\n",
"import math\n",
"\n",
- "#Variable declaration\n",
"R1=22 #non-inverting input resistance R1(KOhm)\n",
"R2=22 #non-inverting input resistance R2(KOhm)\n",
"C2=27*10**-9 #feedback path capacitance (F)\n",
@@ -230,13 +207,11 @@
"k0=0.99 #constant for bessel response\n",
"k3=1.54 #constant for bessel response\n",
"\n",
- "#Calculation\n",
"Q=0.5*((C2/C1)**0.5) #Q\n",
"fp=((2*math.pi*R1*(C1*C2)**0.5)**-1)/10**6 #pole frequency(KHz)\n",
"fc=kc*fp #cutoff frequency(KHz) \n",
"f3=k3*fp #3-dB frequency(KHz)\n",
"\n",
- "#Result\n",
"print 'Q = ',round(Q,2)\n",
"print 'pole frequency fp = ',round(fp,2),'KHz'\n",
"print 'cutoff frequency fc = ',round(fc,2),'KHz'\n",
@@ -270,11 +245,8 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 21.6.py\n",
- "#what are pole frequency, Q & cutoff frequency?\n",
"import math\n",
"\n",
- "#Variable declaration\n",
"R1=47 #non-inverting input resistance R1(KOhm)\n",
"R2=47 #non-inverting input resistance R2(KOhm)\n",
"C2=330*10**-12 #feedback path capacitance (F)\n",
@@ -282,13 +254,11 @@
"R3=51 #inverting input resistance R3(KOhm)\n",
"Rf=30.0 #feedback path resistance Rf (KOhm)\n",
"\n",
- "#Calculation\n",
"Av=(Rf/R3)+1 #voltage gain \n",
"Q=(3-Av)**-1 #Q\n",
"fp=((2*math.pi*R1*(C1*C2)**0.5)**-1)/10**6 #pole frequency(KHz)\n",
"fc=fp #cutoff frequency(KHz) \n",
"\n",
- "#Result\n",
"print ' Q = ',round(Q,2)\n",
"print 'pole frequency fp = ',round(fp,2),'KHz'\n",
"print 'cutoff frequency fc = ',round(fc,2),'KHz'"
@@ -320,11 +290,8 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 21.7.py\n",
- "#In figure 21-33, what are pole frequency, Q & cutoff frequency?\n",
"import math\n",
"\n",
- "#Variable declaration\n",
"R1=82 #non-inverting input resistance R1(KOhm)\n",
"R2=82 #non-inverting input resistance R2(KOhm)\n",
"C2=100*10**-12 #feedback path capacitance (F)\n",
@@ -333,13 +300,11 @@
"Rf=15.0 #feedback path resistance Rf (KOhm)\n",
"kc=0.786 #constant for bessel response \n",
"\n",
- "#Calculation\n",
"Av=(Rf/R3)+1 #voltage gain \n",
"Q=(3-Av)**-1 #Q\n",
"fp=((2*math.pi*R1*(C1*C2)**0.5)**-1)/10**6 #pole frequency(KHz)\n",
"fc=kc*fp #cutoff frequency(KHz) \n",
"\n",
- "#Result\n",
"print 'Q = ',round(Q,2)\n",
"print 'pole frequency fp = ',round(fp,2),'KHz'\n",
"print 'cutoff frequency fc = ',round(fc,2),'KHz'"
@@ -371,11 +336,8 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 21.8.py\n",
- "#In figure 21-34, what are pole frequency, Q, cutoff,resosnant & 3-dB frequencies, ripple depth in decibles?\n",
"import math\n",
"\n",
- "#Variable declaration\n",
"R1=56 #non-inverting input resistance R1(KOhm)\n",
"R2=56 #non-inverting input resistance R2(KOhm)\n",
"C2=220*10**-12 #feedback path capacitance (F)\n",
@@ -386,7 +348,6 @@
"k0=1.0 #constant for bessel response\n",
"k3=1.55 #constant for bessel response\n",
"\n",
- "#Calculation\n",
"Av=(Rf/R3)+1 #voltage gain \n",
"Q=(3-Av)**-1 #Q\n",
"fp=((2*math.pi*R1*(C1*C2)**0.5)**-1)/10**6 #pole frequency(KHz)\n",
@@ -396,7 +357,6 @@
"Av1=((1.01*Rf)/(0.99*R3))+1 #voltage gain considering 1% tolerance \n",
"Q1=(3-Av1)**-1 #Q\n",
"\n",
- "#Result\n",
"print 'Q = ',Q\n",
"print 'pole frequency fp = ',round(fp,2),'KHz'\n",
"print 'cutoff frequency fc = ',round(fc,2),'KHz'\n",
@@ -436,22 +396,17 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 21.9.py\n",
- "#what are pole frequency, Q & cutoff frequency?\n",
"\n",
"import math\n",
"\n",
- "#Variable declaration\n",
"R1=24 #non-inverting input resistance R1(KOhm)\n",
"R2=12 #feedback path resistance R2(KOhm)\n",
"C=4.7*10**-9 #non-inverting input capacitance (F)\n",
"\n",
- "#Calculation\n",
"Q=0.5*((R1/R2)**0.5) #Q\n",
"fp=((2*math.pi*C*(R1*R2)**0.5)**-1)/10**6 #pole frequency(KHz)\n",
"fc=fp #cutoff frequency(KHz) \n",
"\n",
- "#Result\n",
"print 'Q = ',round(Q,2)\n",
"print 'pole frequency fp = ',math.ceil(fp),'KHz'\n",
"print 'cutoff frequency fc = ',math.ceil(fc),'KHz'"
@@ -483,11 +438,8 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 21.10.py\n",
- "#In figure 21-37, what are pole frequency, Q, cutoff,resosnant & 3-dB frequencies and ripple depth in decibles?\n",
"import math\n",
"\n",
- "#Variable declaration\n",
"R1=30 #non-inverting input resistance R1(KOhm)\n",
"R2=30 #feedback path resistance R2(KOhm)\n",
"C=1*10**-9 #non-inverting input capacitance (F)\n",
@@ -497,7 +449,6 @@
"k0=0.94 #constant for bessel response\n",
"k3=1.48 #constant for bessel response\n",
"\n",
- "#Calculation\n",
"Av=(Rf/R3)+1 #voltage gain \n",
"Q=(3-Av)**-1 #Q\n",
"fp=((2*math.pi*R1*C)**-1)/10**6 #pole frequency(KHz)\n",
@@ -505,7 +456,6 @@
"f0=fp/k0 #resosnant frequency(KHz)\n",
"f3=fp/k3 #3-dB frequency (KHz)\n",
"\n",
- "#Result\n",
"print 'Q = ',Q\n",
"print 'pole frequency fp = ',round(fp,2),'KHz'\n",
"print 'cutoff frequency fc = ',round(fc,2),'KHz'\n",
@@ -543,23 +493,18 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 21.11.py\n",
- "#In figure 21-42, gate voltage varies from 15 to 80 Ohm. Find bandwidth and minimum & maximum frequencies.\n",
"import math\n",
"\n",
- "#Variable declaration\n",
"R1=18 #non-inverting input resistance R1(KOhm)\n",
"R2=30 #feedback path resistance R2(KOhm)\n",
"C=8.2*10**-9 #non-inverting input capacitance (F)\n",
"R31=0.080 #inverting max input resistance R3(KOhm)\n",
"R32=0.015 #inverting min input resistance R3(KOhm)\n",
"\n",
- "#Calculation\n",
"BW=((2*math.pi*R1*C)**-1)/10**6 #bandwidth(KHz)\n",
"f0=((2*math.pi*C*((2*R1*((R1**-1+R31**-1)**-1))**0.5))**-1)/10**6 #minimum center frequency(KHz)\n",
"f01=((2*math.pi*C*((2*R1*((R1**-1+R32**-1)**-1))**0.5))**-1)/10**6 #minimum center frequency(KHz)\n",
"\n",
- "#Result\n",
"print 'bandwidth BW = ',round(BW,2),'KHz'\n",
"print 'minimum center frequency f0 = ',round(f0,2),'KHz'\n",
"print 'maximum center frequency f0 = ',round(f01,2),'KHz'"
@@ -591,23 +536,17 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 21.12.py\n",
- "#In figure 21-43, what are the voltage gain, center frequency and Q for bandstop filter, \n",
- "#if R=22KOhm, C=120nF, R1=13KOhm, R2=10KOhm.\n",
"import math\n",
"\n",
- "#Variable declaration\n",
"R=22.0 #non-inverting input resistance(KOhm)\n",
"C=120*10**-9 #non-inverting input capacitance (F)\n",
"R1=13.0 #inverting input resistance(KOhm)\n",
"R2=10.0 #feedback path resistance(KOhm)\n",
"\n",
- "#Calculation\n",
"Av=(R2/R1)+1 #voltage gain \n",
"Q=0.5/(2-Av) #Q\n",
"f0=((2*math.pi*R*C)**-1)/10**3 #center frequency(KHz)\n",
"\n",
- "#Result\n",
"print 'voltage gain Av = ',round(Av,2)\n",
"print 'Q = ',round(Q,2)\n",
"print 'center frequency f0 = ',round(f0,2),'KHz'"
@@ -639,21 +578,16 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "#Example 21.13.py\n",
- "#In figure 21-45b, R=1KOhm, C=100nF. what is phase shift of output voltage when f=1KHz?\n",
"\n",
"import math\n",
"\n",
- "#Variable declaration\n",
"R=1.0 #non-inverting input resistance(KOhm)\n",
"C=100*10**-9 #non-inverting input capacitance (F)\n",
"f=1.0 #frequency given(KHz)\n",
"\n",
- "#Calculation\n",
"f0=((2*math.pi*R*C)**-1)/10**6 #center frequency(KHz)\n",
"phi=(2*math.atan(f0/f))*180/math.pi #phase shift(deg)\n",
"\n",
- "#Result\n",
"print 'center frequency f0 = ',round(f0,2),'KHz'\n",
"print 'phase shift = ',math.ceil(phi),'degrees'"
],