summaryrefslogtreecommitdiff
path: root/929/CH6/EX6.9/Example6_9.sce
blob: e82924fd275039627404449f0ce75eb5463bd762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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));