summaryrefslogtreecommitdiff
path: root/2582/CH3/EX3.8/Ex3_8.sce
blob: 0724b65b6800e057fdeca3d241efddb79e7e7d04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Ex 3.8
clc;clear;close;
format('v',6);
fo=2;//kHz
alfa=1.414;//for butterworth filter
Ap=3-alfa;//band pass gain
RfBYRi=(Ap-1);//op-amp gain
C=0.05;//micro F(Assumed)
R=1/(2*%pi*fo*10^3*C*10^-6)/1000;//kohm
//For offset minimization 2*R=Rf||Ri
Rf=2*R*RfBYRi+2*R;//kohm
Ri=Rf/RfBYRi;//kohm
disp("Design values are :");
disp(C,"Capacitance C(micro F)");
disp(R,"Resistance R(kohm)");
disp(Rf,"Resistance Rf(kohm)");
disp(Ri,"Resistance Ri(kohm)");