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 /2528/CH5 | |
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 '2528/CH5')
-rwxr-xr-x | 2528/CH5/EX5.1/Ex5_1.sce | 10 | ||||
-rwxr-xr-x | 2528/CH5/EX5.10/Ex5_10.sce | 23 | ||||
-rwxr-xr-x | 2528/CH5/EX5.11/Ex5_11.sce | 18 | ||||
-rwxr-xr-x | 2528/CH5/EX5.12/Ex5_12.sce | 14 | ||||
-rwxr-xr-x | 2528/CH5/EX5.13/Ex5_13.sce | 11 | ||||
-rwxr-xr-x | 2528/CH5/EX5.14/Ex5_14.sce | 43 | ||||
-rwxr-xr-x | 2528/CH5/EX5.2/Ex5_2.sce | 15 | ||||
-rwxr-xr-x | 2528/CH5/EX5.3/Ex5_3.sce | 15 | ||||
-rwxr-xr-x | 2528/CH5/EX5.4/Ex5_4.sce | 49 | ||||
-rwxr-xr-x | 2528/CH5/EX5.5/Ex5_5.sce | 12 | ||||
-rwxr-xr-x | 2528/CH5/EX5.6/Ex5_6.sce | 20 | ||||
-rwxr-xr-x | 2528/CH5/EX5.7/Ex5_7.sce | 11 | ||||
-rwxr-xr-x | 2528/CH5/EX5.8/Ex5_8.sce | 11 | ||||
-rwxr-xr-x | 2528/CH5/EX5.9/Ex5_9.sce | 21 |
14 files changed, 273 insertions, 0 deletions
diff --git a/2528/CH5/EX5.1/Ex5_1.sce b/2528/CH5/EX5.1/Ex5_1.sce new file mode 100755 index 000000000..968d31d77 --- /dev/null +++ b/2528/CH5/EX5.1/Ex5_1.sce @@ -0,0 +1,10 @@ +//Chapter 5
+//page 135
+//Example no 5-1
+clc;
+clear;
+G=20; //in dB
+A=10^(G/20); //Ordinary gain
+GBW=1*10^6; //in Hz (from datasheet)
+f2=GBW/A;
+printf("Uper break frequency %.0f Hz",f2);
diff --git a/2528/CH5/EX5.10/Ex5_10.sce b/2528/CH5/EX5.10/Ex5_10.sce new file mode 100755 index 000000000..ecc101b3d --- /dev/null +++ b/2528/CH5/EX5.10/Ex5_10.sce @@ -0,0 +1,23 @@ +
+//clear//
+//Example5.10:"Output voltage""
+//Page 158
+//figure 5.24
+clear;
+clc;
+Rf=20000; // in Ohm
+Ri=5000; //in ohm
+Av=-Rf/Ri;
+Vin=3*10^-3; //in Volt
+Vout=Av*Vin;
+disp("V",Vout,"Vout");
+
+//411 typical apecs
+Vos=0.8*10^-3; //in Volt
+Ios=25*10^-12; //in Amp
+Ib=50*10^-12; //in Amp
+Anoise=1+Rf/Ri;
+Roff=0;
+Vout=(Vos*Anoise)+(Ib*Roff*Anoise+Ib*Rf);
+disp("V",Vout,"Vout");
+//Result
diff --git a/2528/CH5/EX5.11/Ex5_11.sce b/2528/CH5/EX5.11/Ex5_11.sce new file mode 100755 index 000000000..dcc44c513 --- /dev/null +++ b/2528/CH5/EX5.11/Ex5_11.sce @@ -0,0 +1,18 @@ +
+//clear//
+//Example5.11:"Output Drift""
+//Page 161
+//figure 5.23
+clear;
+clc;
+Roff=909; //in Ohm
+Rf=10000; //in Ohm
+Anoise=11;
+DT=55; //degree Celsius
+DVbyDT=5*10^-6; // V/C
+DInoisebyDT=200*10^-12; // A/C
+Vdrift=(DVbyDT*DT*Anoise)+(DInoisebyDT*DT*Rf);
+disp("V",Vdrift,"Vdrift");
+Av=Anoise;
+Vdriftin=Vdrift/Av;
+disp("V",Vdriftin,"Vdriftinput");
diff --git a/2528/CH5/EX5.12/Ex5_12.sce b/2528/CH5/EX5.12/Ex5_12.sce new file mode 100755 index 000000000..2d7214aa5 --- /dev/null +++ b/2528/CH5/EX5.12/Ex5_12.sce @@ -0,0 +1,14 @@ +//Example5.12:"Output "
+//Page 163
+clear;
+clc;
+Av=20; //in dB
+Vin=-60; //in dBV
+CMRR=-90; //in dB
+//for differential input
+Vout=Av+Vin;
+disp("dBV",Vout,"Vout for differential mode input");
+//for common mode input
+Vout1=Vout+CMRR;
+disp("dBV",Vout1,"Vout for common mode signal");
+//This signal is so small that it is overshadowed by noise
diff --git a/2528/CH5/EX5.13/Ex5_13.sce b/2528/CH5/EX5.13/Ex5_13.sce new file mode 100755 index 000000000..cb87d7dc1 --- /dev/null +++ b/2528/CH5/EX5.13/Ex5_13.sce @@ -0,0 +1,11 @@ +//Example5.13:"How much Ripples is seen in output"
+//Page 164
+clear;
+clc;
+PSRR=86; //in dB
+Vripple=0.5; //in Volt
+Psrr=10^(PSRR/20);
+disp(Psrr,"PSRR ordinary value");
+Vout=Vripple/Psrr;
+disp("Vpp",Vout,"Vout_ripple ")
+//result//
diff --git a/2528/CH5/EX5.14/Ex5_14.sce b/2528/CH5/EX5.14/Ex5_14.sce new file mode 100755 index 000000000..3193e16ee --- /dev/null +++ b/2528/CH5/EX5.14/Ex5_14.sce @@ -0,0 +1,43 @@ +//Example5.14:"Output noise voltage""
+//Page 167
+//figure 5.29
+clear;
+clc;
+Rf=99000; // in Ohm
+Ri=1000; //in ohm
+Rs=100; //in ohm
+Av=1+Rf/Ri;
+disp(Av,"Av ordinary value");
+disp(20*log10(Av),"Av dB value");
+Anoise=Av; //for non inverting amplifier
+Rnoise=Rs+Rf*Ri/(Rf+Ri);
+disp("Ohm",Rnoise,"Rnoise");
+
+T=300; //Given in degree cel.
+K=1.38*10^-23; //Boltzmann's constant
+Vind=4*10^-9; //In V/Hz
+Iind=0.6*10^-12; //in A/Sqrtof Hz
+eth=(4*K*T*Rnoise)^0.5; //sqared the
+etot=((Vind^2)+(Iind*Rnoise)^2 +eth^2)^0.5;
+disp("V/(Hz)^0.5",etot,"etotal");
+
+funity=10*10^6; //in Hz
+f2=funity/Anoise;
+disp("Hz",f2,"f2");
+BWnoise=f2*1.57;
+disp("Hz",BWnoise,"BWnoise");
+
+en=etot*(BWnoise)^0.5;
+disp("V",en,"en");
+
+en_out=en*Anoise;
+disp("V",en_out,"en_out");
+
+//for a nominal output signal of 1V RMS signal to noise ratio is
+signal=1; //in V
+Noise=en_out;
+S_N=signal/Noise;
+
+disp(S_N,"Signal to Noise ratio "); //answer in book is approxmately
+disp(20*log10(S_N),"S/N in dB");
+//Result
diff --git a/2528/CH5/EX5.2/Ex5_2.sce b/2528/CH5/EX5.2/Ex5_2.sce new file mode 100755 index 000000000..8c725f758 --- /dev/null +++ b/2528/CH5/EX5.2/Ex5_2.sce @@ -0,0 +1,15 @@ +//Chapter 5
+//page 135
+//Example no 5-2
+//Given
+clc;
+clear;
+Rf=10000; //in Ohm
+Ri=2000; //in Ohm
+Av=-Rf/Ri;
+printf("\n Av = %.0f ",Av);//Result
+Av1=20*log10(-Av);
+printf("\n Av in %.0f bB",Av1);//Result
+//for noise gain
+An=1+Rf/Ri;
+printf("\n Anoise =%.0f ",An); //Result
diff --git a/2528/CH5/EX5.3/Ex5_3.sce b/2528/CH5/EX5.3/Ex5_3.sce new file mode 100755 index 000000000..9550349a5 --- /dev/null +++ b/2528/CH5/EX5.3/Ex5_3.sce @@ -0,0 +1,15 @@ +//clear//
+//Example5.3:Finimum acceptable frequency
+//Page 138
+//figure 5.5
+clear;
+clc;
+Rf=20000; //in Ohms
+Ri=500; //in Ohms
+f2=50*10^3; //In Hz
+Anoise=1+(Rf/Ri);
+disp(Anoise,"Anoise");
+funity=Anoise*f2;
+disp("Hz",funity,"funity");
+
+disp("For this application 741 would not be fast enough, therefore 411 would be fine");
diff --git a/2528/CH5/EX5.4/Ex5_4.sce b/2528/CH5/EX5.4/Ex5_4.sce new file mode 100755 index 000000000..f7b4b3116 --- /dev/null +++ b/2528/CH5/EX5.4/Ex5_4.sce @@ -0,0 +1,49 @@ +//clear//
+//Example5.4:System gain and upper break frequency
+//Page 140
+//figure 5.6
+clear;
+clc;
+//STAGE 1
+disp("Stage 1");
+Rf1=14000; //in Ohms
+Ri1=2000; //in Ohms
+Av1=1+(Rf1/Ri1);
+disp(Av1,"Av");
+Anoise1=1+(Rf1/Ri1);
+disp(Anoise1,"Anoise");
+GBW=1*10^6; //in Hz (from Datasheet)
+f1=GBW/Anoise1;
+disp(f1,"f2");
+
+//STAGE 2
+disp("Stage 2");
+Rf2=20000; //in Ohms
+Ri2=10000; //in Ohms
+Av2=-(Rf2/Ri2);
+disp(Av2,"Av");
+Anoise2=1+(Rf2/Ri2);
+disp(Anoise2,"Anoise");
+GBW=1*10^6; //in Hz (from Datasheet)
+f2=GBW/Anoise2;
+disp(f2,"f2");
+
+//STAGE 3
+disp("Stage 3");
+Rf3=12000; //in Ohms
+Ri3=4000; //in Ohms
+Av3=1+(Rf3/Ri3);
+disp(Av3,"Av");
+Anoise3=1+(Rf3/Ri3);
+disp(Anoise3,"Anoise");
+GBW=1*10^6; //in Hz (from Datasheet)
+f3=GBW/Anoise3;
+disp(f3,"f2");
+
+//SYSTEM
+Av=Av1*Av2*Av3;
+disp(Av,"Av");
+
+disp("Dominant break frequency here is 125kHz");
+GBW=f1*64;
+disp(GBW,"Gain bandwidth product is");
diff --git a/2528/CH5/EX5.5/Ex5_5.sce b/2528/CH5/EX5.5/Ex5_5.sce new file mode 100755 index 000000000..b2b5348a5 --- /dev/null +++ b/2528/CH5/EX5.5/Ex5_5.sce @@ -0,0 +1,12 @@ +//clear//
+//Example5.5:System gain and upper break frequency
+//Page 142
+clear;
+clc;
+Anoise=10;
+funity=4*10^6; //in Hz
+f2=funity/Anoise;
+disp(f2,"f2");
+n=3;
+f2_system=f2*(2^(1/n)-1)^0.5;
+disp(f2_system,"f2_system");
diff --git a/2528/CH5/EX5.6/Ex5_6.sce b/2528/CH5/EX5.6/Ex5_6.sce new file mode 100755 index 000000000..3a72a5d96 --- /dev/null +++ b/2528/CH5/EX5.6/Ex5_6.sce @@ -0,0 +1,20 @@ +//clear//
+//Example5.6:design a circuit with upper break frequency
+//Page 142
+clear;
+clc;
+Av1=26; //in dB
+Av=20; //ordinary gain
+f2=500*10^3; //in Hz
+
+funity=f2*Av; //(Anoise=Av for non inverting terminal)
+disp("Hz",funity,"funity")
+//411 has funity =4MHZ ,therefore atleast 2 stages would be required
+//Stage 1
+f411=4*10^6; //in hz
+Av1=f411/f2;
+ disp(Av1,"Av");
+//To achive gain of 20 second stage should have gain of atleast Av2=2.5
+Av2=2.5;
+f2=f411/Av2;
+disp("Hz",f2,"f2");
diff --git a/2528/CH5/EX5.7/Ex5_7.sce b/2528/CH5/EX5.7/Ex5_7.sce new file mode 100755 index 000000000..e4983344d --- /dev/null +++ b/2528/CH5/EX5.7/Ex5_7.sce @@ -0,0 +1,11 @@ +//clear//
+//Example5.7:"is 741's power bandwith atleast 3kHz""
+//Page 148
+//figure 5.6
+clear;
+clc;
+slewrate=0.5/10^-6; // in V/S
+Vp=12; //in Volts
+fmax=slewrate/(2*%pi*Vp);
+disp("Hz",fmax,"Fmax");
+//Result
diff --git a/2528/CH5/EX5.8/Ex5_8.sce b/2528/CH5/EX5.8/Ex5_8.sce new file mode 100755 index 000000000..3a20af976 --- /dev/null +++ b/2528/CH5/EX5.8/Ex5_8.sce @@ -0,0 +1,11 @@ +//clear//
+//Example5.8:"minimum acceptable rate for 741""
+//Page 149
+//figure 5.6
+clear;
+clc;
+fmax=20000; //in Hz
+Vp=10; //in Volts
+slewrate=fmax*(2*%pi*Vp);
+disp("V/S",slewrate,"Slew rate ");
+///Result in V/S
diff --git a/2528/CH5/EX5.9/Ex5_9.sce b/2528/CH5/EX5.9/Ex5_9.sce new file mode 100755 index 000000000..d300b35dc --- /dev/null +++ b/2528/CH5/EX5.9/Ex5_9.sce @@ -0,0 +1,21 @@ +//clear//
+//Example5.9:"Typical offset voltage""
+//Page 157
+//figure 5.9
+clear;
+clc;
+Rf=10000; // in Ohm
+Ri=1000; //in ohm
+Roff=0; //in ohm
+Anoise=1+Rf/Ri;
+disp(Anoise,"Anoise");
+Vos=0.5*10^-3; //in Volt
+Ios=10*10^-9; //in Amp
+Ib=800*10^-9; //in Amp
+Vout=(Vos*Anoise)+(Ib*Roff*Anoise+Ib*Rf);
+disp("V",Vout,"Vout");
+
+Roff=Ri*Rf/(Rf+Ri);
+Vout=(Vos*Anoise)+(Ios*Rf);
+disp("V",Vout,"Vout_offset");
+//result
|