summaryrefslogtreecommitdiff
path: root/1430/CH11/EX11.13/exa11_13.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1430/CH11/EX11.13/exa11_13.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1430/CH11/EX11.13/exa11_13.sce')
-rw-r--r--1430/CH11/EX11.13/exa11_13.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/1430/CH11/EX11.13/exa11_13.sce b/1430/CH11/EX11.13/exa11_13.sce
new file mode 100644
index 000000000..403359989
--- /dev/null
+++ b/1430/CH11/EX11.13/exa11_13.sce
@@ -0,0 +1,31 @@
+// Example 11.13
+// Op-Amp Circuit for a Lowpass Filter
+f_co=15.9*10^3; // Hertz
+Q3=0.618;
+Q5=1.618;
+K=80; // Overall gain
+// Approximately equal distribution of total gain
+K1=5;
+K3=4;
+K5=4;
+R_mu=1000; // assume
+R_F1=(5-1)*R_mu; // VAlues of feedback Resistors
+R_F3=(4-1)*R_mu;
+R_F5=R_F3;
+C=10^-9; // Appropriate choice
+R=1/(2*%pi*f_co*C); // For 1st order stage
+// For 2nd stage
+r=R;
+K_i=4;
+// Thus the resistor for the stage with Q3
+R1=2*Q3*r/(1+sqrt(4*Q3^2*(K_i-2)+1));
+R2=r^2/R1;
+// Thus the resistor for the stage with Q5
+R3=2*Q5*r/(1+sqrt(4*Q5^2*(K_i-2)+1));
+R4=r^2/R3;
+disp(C,"Capacitor for all the stages(Farad)=")
+disp(R,"Resistor for the 1st order stage(Ohms)=")
+disp(R1,"Resistor for the 2nd order stage with Q3(Ohms)=")
+disp(R2,"Resistor for the 2nd order stage with Q3(Ohms)=")
+disp(R3,"Resistor for the 3rd order stage with Q5(Ohms)=")
+disp(R4,"Resistor for the 3rd order stage with Q5(Ohms)=")