blob: d8c4e41cde3308df09a3c4505125a548798ea115 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//Chapter 5, Problem 4
clc
z0=50 //characteristic impedance in ohm
fp=500*10^6 //passband limit frequency in hertz
//Butterworth normalised values
g1=0.618
g2=1.618
g3=2
g4=1.618
g5=0.618
w=2*%pi*fp
//calculation of component values
c1=g1/(w*z0)
l2=g2*z0/w
c3=g3/(w*z0)
l4=g4*z0/w
c5=g5/(w*z0)
printf("Component values are\n\tC1 = %.2f pF",c1*10^12)
printf("\n\tL2 = %.2f nH\n\tC3 = %.2f pF\n\tL4 = %.2f nH\n\tC5 = %.2f pF",l2*10^9,c3*10^12,l4*10^9,c5*10^12)
|