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 /2444/CH8 | |
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 '2444/CH8')
-rwxr-xr-x | 2444/CH8/EX8.1/ex8_1.sce | 12 | ||||
-rwxr-xr-x | 2444/CH8/EX8.10/ex8_10.sce | 37 | ||||
-rwxr-xr-x | 2444/CH8/EX8.11/ex8_11.sce | 45 | ||||
-rwxr-xr-x | 2444/CH8/EX8.12/ex8_12.sce | 33 | ||||
-rwxr-xr-x | 2444/CH8/EX8.13/ex8_13.sce | 14 | ||||
-rwxr-xr-x | 2444/CH8/EX8.14/ex8_14.sce | 20 | ||||
-rwxr-xr-x | 2444/CH8/EX8.2/ex8_2.sce | 10 | ||||
-rwxr-xr-x | 2444/CH8/EX8.3/ex8_3.sce | 14 | ||||
-rwxr-xr-x | 2444/CH8/EX8.4/ex8_4.sce | 29 | ||||
-rwxr-xr-x | 2444/CH8/EX8.5/ex8_5.sce | 28 | ||||
-rwxr-xr-x | 2444/CH8/EX8.7/ex8_7.sce | 12 | ||||
-rwxr-xr-x | 2444/CH8/EX8.8/ex8_8.sce | 13 | ||||
-rwxr-xr-x | 2444/CH8/EX8.9/ex8_9.sce | 17 |
13 files changed, 284 insertions, 0 deletions
diff --git a/2444/CH8/EX8.1/ex8_1.sce b/2444/CH8/EX8.1/ex8_1.sce new file mode 100755 index 000000000..96c7c615d --- /dev/null +++ b/2444/CH8/EX8.1/ex8_1.sce @@ -0,0 +1,12 @@ +// Exa 8.1
+clc;
+clear;
+close;
+format('v',8)
+// Given data
+Av1 = 60;// voltage gain of first stage
+Av2 = 100;// voltage gain of second stage
+Av3 = 160;// voltage gain of third stage
+Av= Av1*Av2*Av3;// overall voltage gain
+Av_indB= 20*log10(Av);// overall voltage gain in dB
+disp(Av_indB,"The overall voltage gain of the amplifier in dB is : ")
diff --git a/2444/CH8/EX8.10/ex8_10.sce b/2444/CH8/EX8.10/ex8_10.sce new file mode 100755 index 000000000..14a58db4d --- /dev/null +++ b/2444/CH8/EX8.10/ex8_10.sce @@ -0,0 +1,37 @@ +// Exa 8.10
+clc;
+clear;
+close;
+format('v',5)
+// Given data
+V_CC = 12;// in V
+r_e = 25;// in mV
+r_e = r_e * 10^-3;// in V
+R1 = 1.2;// in Mohm
+R1 = R1 * 10^6;// in ohm
+R3 = 1.2;// in Mohm
+R3 = R3 * 10^6;// in ohm
+R4 = 8;// in k ohm
+R4 = R4 * 10^3;// in ohm
+R5 = 24;// in k ohm
+R5 = R5 * 10^3;// in ohm
+Beta1 = 100;// unit less
+Beta2 = 100;// unit less
+I_B2 = V_CC/R3;// in A
+I_C2 = Beta2*I_B2;// in A
+I_E2 = I_C2;// in A
+r_e2 = r_e/I_E2;// in ohm
+Rac2 = (R4*R5)/(R4+R5);// in ohm
+Av2 = -(Rac2/r_e2);//voltage gain of second stage
+disp(Av2,"The voltage gain of second stage is");
+Rac1 = (R3*(Beta2*r_e2))/(R3+(Beta2*r_e2));// in ohm
+L = 1;// in H
+f = 4;// in kHz
+f = f * 10^3;// in Hz
+X_L = 2*%pi*f*L;// in ohm
+r_e1 = r_e2;// in ohm
+Av1 = round(-Rac1/r_e1 );// voltage gain of first stage
+disp(Av1,"The voltage gain of first stage at 4 kHz is");
+Av = Av1*Av2;// overall voltage gain
+Av = 20*log10(Av);// in dB
+disp(Av,"The overall voltage gain in dB is");
diff --git a/2444/CH8/EX8.11/ex8_11.sce b/2444/CH8/EX8.11/ex8_11.sce new file mode 100755 index 000000000..6851768eb --- /dev/null +++ b/2444/CH8/EX8.11/ex8_11.sce @@ -0,0 +1,45 @@ +// Exa 8.11
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+V_CC = 25;// in V
+R1 = 180;// in k ohm
+R1 = R1*10^3;// in ohm
+R2 = 20;// in k ohm
+R2 = R2 * 10^3;// in ohm
+R_C2 = 20;// in k ohm
+R_C2 = R_C2 * 10^3;// in ohm
+R_C1 = R_C2;// in ohm
+R_E1 = 1.8;// in k ohm
+R_E1 = R_E1 * 10^3;// in ohm
+R_E2 = 4.3;// in k ohm
+R_E2 = R_E2 * 10^3;// in ohm
+R_L = 30;// in k ohm
+R_L = R_L * 10^3;// in ohm
+V_BE = 0.7;// in V
+Beta2 = 50;// unit less
+Beta1 = 50;// unit less
+V_Th1 = (V_CC/(R1+R2))*R2;// in V
+R_Th1 = (R1*R2)/(R1+R2);// in ohm
+I_B = (V_Th1-V_BE)/( R_Th1+((Beta1+1)*R_E1) );// in A
+I_E1 = (Beta1+1)*I_B;// in A
+V_T = 25;// in mV
+V_T = V_T * 10^-3;// in V
+r_e1 = V_T/I_E1;// in ohm
+I_C1 = I_E1;// in A
+V_C1 = V_CC-(I_C1*R_C1);// in V
+//V_E2 = V_B2-V_BE = V_C1-V_BE;// in V
+V_E2 = V_C1-V_BE;// in V
+I_E2 = V_E2/R_E2;// in A
+r_e2 = V_T/I_E2;// in ohm
+Rac2 = (R_C1*R_L)/(R_C1+R_L);// in ohm
+Av2 = -Rac2/(r_e2+R_E2);// voltage gain of second stage
+Rac1 = (R_C1*(Beta1*(r_e2+R_E2)))/(R_C1+(Beta1*(r_e2+R_E2)));// in ohm
+Av1 = -Rac1/(r_e1+R_E1);// voltage gain of first stage
+Av = Av1*Av2;// voltage gain
+disp(Av,"The voltage gain is");
+r_in = R1*R2*Beta1*(r_e1+R_E1)/( (R1*R2)+(R2*(Beta1*(r_e1+R_E1)))+((Beta1*(r_e1+R_E1))*R1) );// in ohm
+r_in= r_in*10^-3;// in k ohm
+disp(r_in,"The input resistance in k ohm is");
diff --git a/2444/CH8/EX8.12/ex8_12.sce b/2444/CH8/EX8.12/ex8_12.sce new file mode 100755 index 000000000..bd18293bf --- /dev/null +++ b/2444/CH8/EX8.12/ex8_12.sce @@ -0,0 +1,33 @@ +// Exa 8.12
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+I_DSS = 15;// in mA
+I_DSS = I_DSS * 10^-3;// in A
+V_P = -4;// in V
+g_mo = (-2*I_DSS)/V_P;// in S
+V_GSQ = -2;// in V
+g_m = g_mo*( 1-(V_GSQ/V_P) );// in S
+R_D = 2.7;// in k ohm
+R_D = R_D * 10^3;// in ohm
+Av1 = -g_m*R_D;// voltage gain of first stage
+Av2 = Av1;// voltage gain of second stage
+Av = Av1*Av2;// overall voltage gain
+disp(Av,"The overall voltage gain is");
+R_G = 2;// in Mohm
+Rin = R_G;// in Mohm
+disp(Rin,"The input impedance in Mohm is");
+Rout = R_D;// in ohm
+Rout= Rout*10^-3;// in k ohm
+disp(Rout,"The output impedance in k ohm is");
+Rout= Rout*10^3;// in ohm
+Vin = 15;// in mV
+Vin = Vin * 10^-3;// in V
+Vout = Av*Vin;// in V
+disp(Vout,"The output voltage in V is");
+R_L = 15;// in k ohm
+R_L = R_L * 10^3;// in ohm
+V_L = (R_L/(Rout+R_L))*Vout;// in V
+disp(V_L,"The output voltage across load resistance in V is");
diff --git a/2444/CH8/EX8.13/ex8_13.sce b/2444/CH8/EX8.13/ex8_13.sce new file mode 100755 index 000000000..8e2bcbff3 --- /dev/null +++ b/2444/CH8/EX8.13/ex8_13.sce @@ -0,0 +1,14 @@ +// Exa 8.13
+clc;
+clear;
+close;
+format('v',7)
+// Given data
+f2 = 100;// in kHz
+f_H = f2/(sqrt(2^(1/3)-1 ));// in kHz
+disp(f_H,"The upper 3-dB frequency of each stage in kHz is");
+f1 = 25;// in kHz
+f_L = f1/(sqrt(2^(1/3)-1 ));// in kHz
+disp(f_L,"The lower 3-dB frequency of each stage in kHz is");
+
+// Note: The value of upper 3-dB frequency in the book is not accurate and the calculated value of f_L is wrong. because 25 will be divided by 0.51 not multiplied.
diff --git a/2444/CH8/EX8.14/ex8_14.sce b/2444/CH8/EX8.14/ex8_14.sce new file mode 100755 index 000000000..a95a5b591 --- /dev/null +++ b/2444/CH8/EX8.14/ex8_14.sce @@ -0,0 +1,20 @@ +// Exa 8.14
+clc;
+clear;
+close;
+format('v',5)
+// Given data
+R_E= 1;// in k ohm
+h_ie= R_E;// in k ohm
+h_fe= 100;// unit less
+//V1= I1*[h_ie+(1+h_fe)*h_ie+(1+h_fe)^2*R_E]+I2*R_E (i)
+//V2= I1*(1+h_fe)^2*R_E + I2*R_E (ii)
+Z= [(h_ie+(1+h_fe)*h_ie+(1+h_fe)^2*R_E) R_E;(1+h_fe)^2*R_E R_E]
+Z11= Z(1);// k ohm
+Z21= Z(2);// k ohm
+Z12= Z(3);// k ohm
+Z22= Z(4);// k ohm
+disp(Z11*10^-3,"The value of Z11 in M ohm is : ")
+disp(Z12,"The value of Z12 in M ohm is : ")
+disp(Z21*10^-3,"The value of Z21 in M ohm is : ")
+disp(Z22,"The value of Z22 in M ohm is : ")
diff --git a/2444/CH8/EX8.2/ex8_2.sce b/2444/CH8/EX8.2/ex8_2.sce new file mode 100755 index 000000000..6b35abc5e --- /dev/null +++ b/2444/CH8/EX8.2/ex8_2.sce @@ -0,0 +1,10 @@ +// Exa 8.2
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+Av = 80;// overall voltage gain in dB
+Av2 = 20*log10(150);// voltage gain of second stage in dB
+Av1= Av-Av2;//voltage gain of first stage in dB
+disp(Av1,"The voltage gain of first stage in dB is");
diff --git a/2444/CH8/EX8.3/ex8_3.sce b/2444/CH8/EX8.3/ex8_3.sce new file mode 100755 index 000000000..d50ad34bd --- /dev/null +++ b/2444/CH8/EX8.3/ex8_3.sce @@ -0,0 +1,14 @@ +// Exa 8.3
+clc;
+clear;
+close;
+format('v',5)
+// Given data
+Av1 = -60;// voltage gain of first stage
+R_C = 500;// in ohm
+Rin = 1;// in k ohm
+Rin = Rin * 10^3;// in ohm
+h_fe = 50;// unit less
+Av2 = -h_fe*(R_C/Rin);// voltage gain of second stage
+Av = Av1*Av2;// overall voltage gain stage
+disp(Av,"The overall voltage gain is");
diff --git a/2444/CH8/EX8.4/ex8_4.sce b/2444/CH8/EX8.4/ex8_4.sce new file mode 100755 index 000000000..660e11e82 --- /dev/null +++ b/2444/CH8/EX8.4/ex8_4.sce @@ -0,0 +1,29 @@ +// Exa 8.4
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+R11 = 4;// in k ohm
+R21 = 20;// in k ohm
+h_ie = 1.1;// in k ohm
+R_C1=4;// in k ohm
+R22= 10;// in k ohm
+R12= 2;// in k ohm
+Zb = h_ie;// in k ohm
+Zin = (R11*R21*Zb)/( (R11*R21)+(R21*Zb)+(Zb*R11) );// in k ohm
+disp(Zin,"The input impedance in k ohm is");
+h_oe = 0;// unit less
+Q2 = %inf;// output impedance of transistor
+R_C2 = 2;// in k ohm
+// Zout= 1/h_oe || R_C2 = R_C2
+Zout = R_C2;// in k ohm
+disp(Zout,"The output impedance in k ohm is");
+h_fe = 50;// unit less
+R_L = 10;// in k ohm
+Av2= -h_fe/h_ie*(R_C2*R_L/(R_C2+R_L));// voltage gain of second stage
+Rac1= 1/(1/R_C1+1/R22+1/R12+1/h_ie);// in k ohm
+Av1= -h_fe/h_ie*Rac1;// voltage gain of first stage
+Av= Av1*Av2;// overall voltage gain
+disp(Av,"The overall voltage gain is : ")
+
diff --git a/2444/CH8/EX8.5/ex8_5.sce b/2444/CH8/EX8.5/ex8_5.sce new file mode 100755 index 000000000..873223717 --- /dev/null +++ b/2444/CH8/EX8.5/ex8_5.sce @@ -0,0 +1,28 @@ +// Exa 8.5
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+R1 = 10;// in k ohm
+R2 = 5;// in k ohm
+Zb = 1;// in k ohm
+Zin = (R1*R2*Zb)/( (R1*R2)+(R2*Zb)+(Zb*R1) );// in k ohm
+disp(Zin,"The input impedance in k ohm is");
+R_C1 = 2;// in k ohm
+R_E1 = 2;// in k ohm
+R_C2 = 2;// in k ohm
+R_E2 = 2;// in k ohm
+h_oe = 0;// unit less
+Q2 = %inf;// output impedance of transistor
+//Zout= 1/h_oe || R_C2
+Zout = R_C2;// in k ohm
+disp(Zout,"The output impedance in k ohm is");
+h_fe = 100;// unit less
+h_ie = 1;// in k ohm
+R_ac=0.222;// in k ohm
+Av2= -h_fe/h_ie*R_C2;// voltage gain of second stage
+Rac1= 1/(1/R_C1+1/R1+1/R2+1/h_ie);// in k ohm
+Av1= -h_fe/h_ie*R_ac;// voltage gain of first stage
+Av= Av1*Av2;// overall voltage gain
+disp(Av,"The overall voltage gain is : ")
diff --git a/2444/CH8/EX8.7/ex8_7.sce b/2444/CH8/EX8.7/ex8_7.sce new file mode 100755 index 000000000..0f31c9bd4 --- /dev/null +++ b/2444/CH8/EX8.7/ex8_7.sce @@ -0,0 +1,12 @@ +// Exa 8.7
+clc;
+clear;
+close;
+format('v',5)
+// Given data
+Z_L = 16;// in ohm
+Z_desh_L = 10;// in k ohm
+Z_desh_L = Z_desh_L* 10^3;// in ohm
+// a = N1/N2 = sqrt( ZdasL/Z_L );
+a = sqrt( Z_desh_L/Z_L );// ratio of primary to secondary turns of step-down transformer
+disp(a,"The transformer turm ratio is");
diff --git a/2444/CH8/EX8.8/ex8_8.sce b/2444/CH8/EX8.8/ex8_8.sce new file mode 100755 index 000000000..715637e65 --- /dev/null +++ b/2444/CH8/EX8.8/ex8_8.sce @@ -0,0 +1,13 @@ +// Exa 8.8
+clc;
+clear;
+close;
+format('v',5)
+// Given data
+Z_L = 10;// in ohm
+Z_desh_L = 1;// in k ohm
+Z_desh_L = Z_desh_L * 10^3;// in ohm
+Zs = Z_desh_L;// in ohm
+// a = N1/N2 = sqrt(Z_desh_L/Z_L);
+a = sqrt(Z_desh_L/Z_L);//turn ratio of the transformer
+disp(a,"The turn ratio of the transformer is");
diff --git a/2444/CH8/EX8.9/ex8_9.sce b/2444/CH8/EX8.9/ex8_9.sce new file mode 100755 index 000000000..531c81c3f --- /dev/null +++ b/2444/CH8/EX8.9/ex8_9.sce @@ -0,0 +1,17 @@ +// Exa 8.9
+clc;
+clear;
+close;
+format('v',5)
+// Given data
+Z_L = 25;// in ohm
+Z_S = 10;// in k ohm
+Z_S = Z_S * 10^3;// in k ohm
+// Z_S = (a^2)*Z_L;
+a = sqrt(Z_S/Z_L);//turn ratio of the transformer
+disp(a,"The transformer turn ratio is");
+//V2 = V1/a = Vs/a;
+Vs = 8;// in V
+V2 = Vs/a;// in V
+V_L =V2;// in V
+disp(V_L,"The load voltage in V is");
|