diff options
Diffstat (limited to '929/CH6/EX6.9/Example6_9.sce')
-rwxr-xr-x | 929/CH6/EX6.9/Example6_9.sce | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/929/CH6/EX6.9/Example6_9.sce b/929/CH6/EX6.9/Example6_9.sce new file mode 100755 index 000000000..e82924fd2 --- /dev/null +++ b/929/CH6/EX6.9/Example6_9.sce @@ -0,0 +1,50 @@ +//Example 6.9
+
+clear;
+
+clc;
+
+f0=10*10^3;
+
+Q=25;
+
+HobpdB=0;
+
+R1=10*10^3;//Assumption
+
+R2=R1;//Assumption
+
+R5=R1;//Assumption
+
+R6=R1;//Assumption
+
+R3=250*10^3;//Assumption
+
+R4=R3;//Assumption
+
+C1=1/(2*%pi*f0*R5);//Assumption
+
+C2=C1;//Assumption
+
+f0reler=0.01;//as relative error defined for f0=1%
+
+Qreler=0.01
+
+ftf0=f0/f0reler;
+
+ftQ=(4*Q*f0)/Qreler;
+
+printf("Designed Biquad Filter :")
+
+printf("\nR1=R2=R5=R6=%.2f kohms",R1*10^(-3));
+
+printf("\nR3=R4=%.2f kohms",R4*10^(-3));
+
+printf("\nC1=C2=%.2f nF",C1*10^9);
+
+if ftf0>ftQ then
+ ft=ftf0;
+
+else ft=ftQ
+
+printf("\nGBP>=%.2f MHz",ft*10^(-6));
\ No newline at end of file |