blob: 3ac76be3a031cc1acd8246461581ce03724c5778 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Example 5.9:3-db frequency and bandwidth
clc;
clear;
close;
Cp=1;//PARALLEL capacitance IN PICO FARAD
Cs=2;//series capacitance IN micro FARAD
rs=1;//series resistance in killo ohms
rp=10;//PARALLEL resistance in killo ohms
ts= ((rs+rp)*10^3*Cp*10^-12);//time constant
tp= ((rs*rp)/(rs+rp)*10^3*Cp*10^-12);//time constant
fl= (1/(2*%pi*ts))*10^-6;//lower frequency in mega hertz
fh= (1/(2*%pi*tp))*10^-6;//upper frequency in mega hertz
BW=fh-fl;//bandwidth in mega hertz
ts= (rs+rp)*10^3*Cp*10^-12;//open circuit time constant
tp= ((rs*rp)/(rs+rp))*10^3*Cp*10^-12;//short time constant
Ts= (rp)/(rs+rp)'//midband transfer function
Tsdb= 20*(log10(Ts));//midband transfer function in db
disp(ts,"open circuit time constant is")
disp(tp,"short circuit time constant is ")
disp(fl,"lower 3 dB frequency in mega hertz")
disp(fh,"upper 3 dB frequency in mega hertz")
disp(BW,"bandwidth in mega hertz is")
disp(Tsdb,"midband transfer function in db is")
|