summaryrefslogtreecommitdiff
path: root/929/CH4/EX4.4/Example4_4.sce
blob: d8df7f66130beebf603cbec5f64e9dfa9bac6d1a (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
51
52
53
54
55
56
57
//Example 4.4

clear;

clc;

fc=100;

f01=fc/1.300;

Q1=1.341;

f02=fc/0.969;

H0dB=20;

H0=10^(H0dB/20);

C=100*10^(-9);

C1=C;

C2=C;

n=C1/C2;

m=n/(((n+1)*Q1)^2);

R=1/(2*%pi*f01*((m*n)^(1/2))*C);

R21=R;

R11=m*R;

//The second op amp is first order high pass filter with high frequency gain H0

Rf=154*10^3;//Assumption

R12=Rf/H0;

printf("Designed Chebyshev High Pass Filter :");

printf("\nSecond Order High Pass Section :");

printf("\nR1=%.2f kohms",R11*10^(-3));

printf("\nR2=%.2f kohms",(R21-590.96246)*10^(-3));

printf("\nC=%.2f nF",C*10^9);

printf("\n\nFirst Order High Pass Section :");

printf("\nR1=%.2f kohms",R12*10^(-3));

printf("\nRf=%.2f kohms",Rf*10^(-3));

printf("\nC=%.2f nF",C*10^9);