summaryrefslogtreecommitdiff
path: root/2582/CH3/EX3.9/Ex3_9.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2582/CH3/EX3.9/Ex3_9.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2582/CH3/EX3.9/Ex3_9.sce')
-rwxr-xr-x2582/CH3/EX3.9/Ex3_9.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2582/CH3/EX3.9/Ex3_9.sce b/2582/CH3/EX3.9/Ex3_9.sce
new file mode 100755
index 000000000..443cfed44
--- /dev/null
+++ b/2582/CH3/EX3.9/Ex3_9.sce
@@ -0,0 +1,17 @@
+//Ex 3.9
+clc;clear;close;
+format('v',6);
+fo=1.2;//kHz
+alfa=1.414;//for butterworth filter
+Ap=3-alfa;//band pass gain
+RfBYRi=(Ap-1);//op-amp gain
+C=0.03;//micro F(have to choose C, 0.01<C<1)
+R=1/(2*%pi*fo*10^3*C*10^-6)/1000;//kohm
+//For offset minimization 2*R=Rf||Ri
+Rf=2*R*RfBYRi+2*R;//kohm
+Ri=Rf/RfBYRi;//kohm
+disp("Design values are :");
+disp(C,"Capacitance(micro F)");
+disp(R,"Resistance R(kohm)");
+disp(Rf,"Resistance Rf(kohm)");
+disp(Ri,"Resistance Ri(kohm)");