diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /74/CH3 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '74/CH3')
-rwxr-xr-x | 74/CH3/EX3.1/example1_sce.sce | 6 | ||||
-rwxr-xr-x | 74/CH3/EX3.11/example11_sce.sce | 15 | ||||
-rwxr-xr-x | 74/CH3/EX3.15/example15_sce.sce | 12 | ||||
-rwxr-xr-x | 74/CH3/EX3.16/example16_sce.sce | 15 | ||||
-rwxr-xr-x | 74/CH3/EX3.17/example17_sce.sce | 15 | ||||
-rwxr-xr-x | 74/CH3/EX3.18/example18_sce.sce | 15 | ||||
-rwxr-xr-x | 74/CH3/EX3.19/example19_sce.sce | 9 | ||||
-rwxr-xr-x | 74/CH3/EX3.2/example2_sce.sce | 7 | ||||
-rwxr-xr-x | 74/CH3/EX3.20/example20_sce.sce | 8 | ||||
-rwxr-xr-x | 74/CH3/EX3.21/example21_sce.sce | 11 | ||||
-rwxr-xr-x | 74/CH3/EX3.3/example3_sce.sce | 17 | ||||
-rwxr-xr-x | 74/CH3/EX3.4/example4_sce.sce | 7 | ||||
-rwxr-xr-x | 74/CH3/EX3.5/example5_sce.sce | 17 | ||||
-rwxr-xr-x | 74/CH3/EX3.6/example6_sce.sce | 8 | ||||
-rwxr-xr-x | 74/CH3/EX3.7/example7_sce.sce | 14 | ||||
-rwxr-xr-x | 74/CH3/EX3.8/example8_sce.sce | 12 | ||||
-rwxr-xr-x | 74/CH3/EX3.9/example9_sce.sce | 15 |
17 files changed, 203 insertions, 0 deletions
diff --git a/74/CH3/EX3.1/example1_sce.sce b/74/CH3/EX3.1/example1_sce.sce new file mode 100755 index 000000000..087dd5ec5 --- /dev/null +++ b/74/CH3/EX3.1/example1_sce.sce @@ -0,0 +1,6 @@ +//chpater 3
+// example 3.1
+//page 106, figure 3.3
+R1=10000;Rf=47000;//given
+Af=-(Rf/R1);// voltage gain Af=Vout/Vin
+disp(Af)//negative sign indicate phase shift between input and output
\ No newline at end of file diff --git a/74/CH3/EX3.11/example11_sce.sce b/74/CH3/EX3.11/example11_sce.sce new file mode 100755 index 000000000..8589940a6 --- /dev/null +++ b/74/CH3/EX3.11/example11_sce.sce @@ -0,0 +1,15 @@ +//chapter 3
+//example 3.11
+//page 147
+fa=150;fmax=150;//given
+C1=1*10^-6;// assuming
+Rf=1/(fa*2*%pi*C1);//fa=1/2piRfC1
+disp(Rf)
+fb=10*fa;// safe frequency
+disp(fb)
+R1=1/(2*%pi*fb*C1);//fb=1/2piC1R1
+disp(R1)
+Cf=((R1*C1)/Rf);//using R1C1=RfCf
+disp(Cf)
+Rcomp=(R1*Rf)/(R1+Rf);//rcomp=R1||Rf
+disp(Rcomp)// generally Rcomp is selected equal to R1
\ No newline at end of file diff --git a/74/CH3/EX3.15/example15_sce.sce b/74/CH3/EX3.15/example15_sce.sce new file mode 100755 index 000000000..3274b0863 --- /dev/null +++ b/74/CH3/EX3.15/example15_sce.sce @@ -0,0 +1,12 @@ +//chapter 3
+// example 3.15
+//page 148
+// Vout=-(3Vin1+4Vin2+5Vin3)
+Rf=120*10^3;
+// for inverting summer we have Vout=-(Rf/R1Vin1+Rf/R2Vin2+Rf/R3Vin3)
+R=Rf/3;//Rf/R1=3 comparing the cofficients
+disp(R1)
+R2=Rf/4;
+disp(R2)
+R3=Rf/R3;
+disp(R3)
\ No newline at end of file diff --git a/74/CH3/EX3.16/example16_sce.sce b/74/CH3/EX3.16/example16_sce.sce new file mode 100755 index 000000000..166cf5b03 --- /dev/null +++ b/74/CH3/EX3.16/example16_sce.sce @@ -0,0 +1,15 @@ +//chapter 3
+// example 3.16
+// page 149
+// Vout=2Vin1-3Vin2+4Vin3-5vin4
+Rf1=100*10^3
+// Vout1=-(Rf1/R1Vin1+Rf1/R3Vin3)
+R1=Rf1/2;// Rf1/R1=2 comapring the cofficient
+R3=Rf1/4:
+disp(R1,R2)
+Rf2=120*10^3
+// Vout2=-(Rf2/R2Vin1+Rf2/R4Vin3)
+R2=Rf2/3;
+R4=Rf2/5;
+disp(R2,R4)
+// output of subtracter is Vout=Vout2-Vout1
\ No newline at end of file diff --git a/74/CH3/EX3.17/example17_sce.sce b/74/CH3/EX3.17/example17_sce.sce new file mode 100755 index 000000000..4f7b66c62 --- /dev/null +++ b/74/CH3/EX3.17/example17_sce.sce @@ -0,0 +1,15 @@ +// chapter 3
+// example 3.17
+//page 150, figure 3.53
+Ri=%inf;Ro=0;
+Aol=%inf;
+Vb=0;//b is virtually ground
+Vout=1;// let us assume
+//input current of op-amp is zeroas R=%inf
+I1=(Vb-Vout)/100000
+If2=I1;
+Va=((10000)/(100000))*(Vb-Vout)
+//at node A Iin=I1+If1
+// (Vin-Va)/10*10^3=(Va-Vb)/10*10^3 + (Va-Vo)/100*10^3
+Vin=Va+(10000)*((Va/10000)+((Va-Vout)/100000));
+Ratio=Vout/Vin// result ratio of Vout/Vin
\ No newline at end of file diff --git a/74/CH3/EX3.18/example18_sce.sce b/74/CH3/EX3.18/example18_sce.sce new file mode 100755 index 000000000..ae3192cb9 --- /dev/null +++ b/74/CH3/EX3.18/example18_sce.sce @@ -0,0 +1,15 @@ +// chapter 3
+//example 3.18
+// page 150, figure 3.55
+Rf=10*10^3;R1=100*10^3;
+Rf1=100*10^3;R11=10*10^3;
+Vin1=1;// let suppose
+Vin2=2
+Vout1=(1+(Rf/R1))*Vin1;// 1st stage is non inverting amplifier
+disp(Vout1)
+// second stage there are two input Vout1 and Vin2 aplly superposition theorem
+Vout2=-(Rf1/R11)*Vout1;
+//with Vout1 grounded,Vin2 active ,it behave as non-inverting amplifier
+Vout3=(1+(Rf1/R11))*Vin2;
+Vout=Vout2+Vout3;
+disp(Vout)
\ No newline at end of file diff --git a/74/CH3/EX3.19/example19_sce.sce b/74/CH3/EX3.19/example19_sce.sce new file mode 100755 index 000000000..35f0a89a6 --- /dev/null +++ b/74/CH3/EX3.19/example19_sce.sce @@ -0,0 +1,9 @@ +// chapter 3
+//example 3.19
+//page 163, figure 3.73
+R1=200;R2=100;Rf=100*10^3;//given
+Rg1=100+0;//potentiometer resistance is 0 at start
+gain1=((1+2*(Rf/Rg1))*(R2/R1));
+Rg2=100+100*10^3;//potentiometer maximum value
+gain2=((1+2*(Rf/Rg2))*(R2/R1));
+disp(gain1,gain2)// range of gain
\ No newline at end of file diff --git a/74/CH3/EX3.2/example2_sce.sce b/74/CH3/EX3.2/example2_sce.sce new file mode 100755 index 000000000..fb70f0e9b --- /dev/null +++ b/74/CH3/EX3.2/example2_sce.sce @@ -0,0 +1,7 @@ +//chapter 3
+//example 3.2
+//page 107
+R1=4700;
+Af=-60;
+Rf=Af*R1//voltage gain Af=-Rf/R1
+disp(Rf)//result
\ No newline at end of file diff --git a/74/CH3/EX3.20/example20_sce.sce b/74/CH3/EX3.20/example20_sce.sce new file mode 100755 index 000000000..70d02b022 --- /dev/null +++ b/74/CH3/EX3.20/example20_sce.sce @@ -0,0 +1,8 @@ +// chapter 3
+// example 3.20
+//page 164,figure 3.74
+R1=100*10^3;R2=100*10^3;Rf=470;//given
+// gain=(1+2Rf/Rg)(R2/R1)
+gain=100;//given
+Rg=(((gain/(R2/R1))-1)\(2*Rf));
+disp(Rg)//result for Rg so that gain is 100
\ No newline at end of file diff --git a/74/CH3/EX3.21/example21_sce.sce b/74/CH3/EX3.21/example21_sce.sce new file mode 100755 index 000000000..395cce6b1 --- /dev/null +++ b/74/CH3/EX3.21/example21_sce.sce @@ -0,0 +1,11 @@ +//chapter 3
+//example 3.21
+//page 167
+Ro=100;
+x=0.00392;
+T1=25;//temp at 25c
+R(25)=Ro*(1+(x*T1));
+disp(R(25))// resistance at 25 degree
+T2=100;
+R(100)=Ro*(1+(x*T2));
+disp(R(100))//resistance at 100 degree
\ No newline at end of file diff --git a/74/CH3/EX3.3/example3_sce.sce b/74/CH3/EX3.3/example3_sce.sce new file mode 100755 index 000000000..41e2f8baa --- /dev/null +++ b/74/CH3/EX3.3/example3_sce.sce @@ -0,0 +1,17 @@ +//chapter 3
+// example 3.3
+//page 112
+A=2*10^5;//open loop gain
+Rin=2*10^6;// input resistnace
+Ro=75;// output resistance
+Fo=5;// single break frequency in herzt
+R1=470;Rf=4700;
+K=Rf/(Rf+R1)
+B=R1/(R1+Rf)
+Af=-(A*Rf)/(R1+Rf+R1*A);//close loop gain
+Rinf=R1+(Rf*Rin)/(Rf+Rin+A*Rin);
+disp(Rinf)//close loop resistance
+Rof=Ro/(1+A*B);//close loop output resistance
+disp(Rof)//output resistance
+Ff=Fo*(1+A*B);
+disp(Ff)//bandwidth with feedback
\ No newline at end of file diff --git a/74/CH3/EX3.4/example4_sce.sce b/74/CH3/EX3.4/example4_sce.sce new file mode 100755 index 000000000..4357c06b9 --- /dev/null +++ b/74/CH3/EX3.4/example4_sce.sce @@ -0,0 +1,7 @@ +//chapter 3
+// example 3.4
+//page 114,figure 3.9
+R1=1000;
+Af=61;//closed loop gain
+Rf=R1*(61-1);//Af=1+(Rf/R1)
+disp(Rf)//feedback resistance
diff --git a/74/CH3/EX3.5/example5_sce.sce b/74/CH3/EX3.5/example5_sce.sce new file mode 100755 index 000000000..db6e8b16b --- /dev/null +++ b/74/CH3/EX3.5/example5_sce.sce @@ -0,0 +1,17 @@ +//chapter 3
+//example 3.5
+//page 120,
+A=2*10^5;//open loop gain
+R1=1000;Rf=10000;
+Ri=2*10^6;//input resistance
+Ro=75;//output resistance
+Fo=5;// single break frequency in Hz
+B=R1/(R1+Rf)
+Af=A/(1+A*B);//gain
+disp(Af)// closed loop gain
+Rif=Ri*(1+A*B);// closed loop input resistance
+disp(Rif)
+Rof=Ro/(1+A*B);
+disp(Rof)// colsed loop output resistance
+Fof=Fo*(1+A*B);
+disp(Fof)// colsed loop bandwidth in Hz
\ No newline at end of file diff --git a/74/CH3/EX3.6/example6_sce.sce b/74/CH3/EX3.6/example6_sce.sce new file mode 100755 index 000000000..6cf7bad69 --- /dev/null +++ b/74/CH3/EX3.6/example6_sce.sce @@ -0,0 +1,8 @@ +//chapter 3
+// exmaple 3.6
+//page 124 , figure 3.17
+R1=1*10^3;R2=R1;R3=R1;//given
+Rf=1*10^3;//given
+Vin1=2;Vin2=1;Vin3=4;//given
+Vout=-((Rf/R1)*Vin1+(Rf/R2)*Vin2+(Rf/R3)*Vin3);
+disp(Vout)
\ No newline at end of file diff --git a/74/CH3/EX3.7/example7_sce.sce b/74/CH3/EX3.7/example7_sce.sce new file mode 100755 index 000000000..5e4605326 --- /dev/null +++ b/74/CH3/EX3.7/example7_sce.sce @@ -0,0 +1,14 @@ +// chapter 3
+// example 3.7
+//page 135
+A=10;//d.c gain
+R1=10000;
+F=10000;//input frequency
+CfRf=15915*10^-4;
+Fa=F/A;
+Rf=10*R1;// A=Rf/R1
+//Fa=1/(2*3.14*Rf*Cf)
+Cf=15915*10^-4/Rf;
+disp(Cf)
+Rcomp=(R1*Rf)/(R1+Rf);
+disp(Rcomp)
\ No newline at end of file diff --git a/74/CH3/EX3.8/example8_sce.sce b/74/CH3/EX3.8/example8_sce.sce new file mode 100755 index 000000000..b53af38ec --- /dev/null +++ b/74/CH3/EX3.8/example8_sce.sce @@ -0,0 +1,12 @@ +//chapter 3
+//example 3.8
+//page 136, figure 3.35
+F=1000;
+R1=1000;Cf=.1*10^-6;
+Vin=5;//voltage in V
+T=1/F;//time period
+disp(T)// in second
+Vout=(Vin*T)/(2*R1*Cf);// change in output voltage
+disp(Vout)//given saturation level is 14V hence output will not saturate will be triangular in nature
+S=2*%pi*F*Vin;// slew rate
+disp(S)//minimum slew rate
\ No newline at end of file diff --git a/74/CH3/EX3.9/example9_sce.sce b/74/CH3/EX3.9/example9_sce.sce new file mode 100755 index 000000000..19920a9ac --- /dev/null +++ b/74/CH3/EX3.9/example9_sce.sce @@ -0,0 +1,15 @@ +//chapter 3
+//example 3.9
+//page 137
+R1=120*10^3;Rf=1.2*10^6;Cf=10*10^-9// given
+fa=1/(2*%pi*Rf*Cf);// corner frequency
+F=10*10^3;
+Vin=5;
+disp(fa)//coner frequency
+safefrequency=10*fa//safe frequency is 10 times of corner frequency
+Adc=Rf/R1;//D.C gain
+Adb=20*log10(Adc)// gain in db
+A=(Rf/R1)/sqrt(1+(F/fa)^2)//gain for practical intregrater circuit
+disp(A)
+Vout=A*Vin;//|A|=Vout(peak)/Vin(peak)
+disp(Vout)
\ No newline at end of file |