diff options
Diffstat (limited to '1514/CH4')
-rwxr-xr-x | 1514/CH4/EX4.1/4_1.sce | 21 | ||||
-rwxr-xr-x | 1514/CH4/EX4.10/4_10.sce | 30 | ||||
-rwxr-xr-x | 1514/CH4/EX4.11/4_11.sce | 24 | ||||
-rwxr-xr-x | 1514/CH4/EX4.12/4_12.sce | 41 | ||||
-rwxr-xr-x | 1514/CH4/EX4.13/4_13.sce | 19 | ||||
-rwxr-xr-x | 1514/CH4/EX4.14/4_14.sce | 21 | ||||
-rwxr-xr-x | 1514/CH4/EX4.15/4_15.sce | 17 | ||||
-rwxr-xr-x | 1514/CH4/EX4.2/4_2.sce | 31 | ||||
-rwxr-xr-x | 1514/CH4/EX4.3/4_3.sce | 17 | ||||
-rwxr-xr-x | 1514/CH4/EX4.4/4_4.sce | 20 | ||||
-rwxr-xr-x | 1514/CH4/EX4.5/4_5.sce | 17 | ||||
-rwxr-xr-x | 1514/CH4/EX4.6/4_6.sce | 20 | ||||
-rwxr-xr-x | 1514/CH4/EX4.7/4_7.sce | 25 | ||||
-rwxr-xr-x | 1514/CH4/EX4.8/4_8.sce | 33 | ||||
-rwxr-xr-x | 1514/CH4/EX4.9/4_9.sce | 30 |
15 files changed, 366 insertions, 0 deletions
diff --git a/1514/CH4/EX4.1/4_1.sce b/1514/CH4/EX4.1/4_1.sce new file mode 100755 index 000000000..7fbf7f8ec --- /dev/null +++ b/1514/CH4/EX4.1/4_1.sce @@ -0,0 +1,21 @@ +//chapter 4
+//example 4.1
+//page 102
+clear all;
+clc ;
+//given
+Rc=9;//collector resistance in kohm
+Ic1=0;//collector current
+Vcc=20;//supply voltage
+Vce1=Vcc;//point A(Vce,Ic)=(20,0)
+Vce2=0;//collector to emitter voltage V
+Ic2=Vcc/Rc;//mA
+//point F(Vce2,Ic2)
+plot([Vce1 Vce2],[Ic1 Ic2],'-.*');
+xtitle('dc load line','Vce in V','Ic in mA');
+a=gca();
+a.data_bounds=[-1 -0.5;21 3]
+printf('dc load line passes through points A(20,0),F(0,2.2)')
+
+
+
diff --git a/1514/CH4/EX4.10/4_10.sce b/1514/CH4/EX4.10/4_10.sce new file mode 100755 index 000000000..1e7d1f94c --- /dev/null +++ b/1514/CH4/EX4.10/4_10.sce @@ -0,0 +1,30 @@ +//chapter 4
+//example 4.10
+//page 118
+clear all;
+clc ;
+//given
+Ic=2;//collector current mA
+Vce=5;//collector to emitter voltage V
+Vcc=9;//supply voltage +-V
+hfe=70;
+Vbe=0.7;
+Ie=Ic;
+VR3=Vcc-Vbe;
+R3=VR3/Ic;
+printf("\nR3=%.2f kohm,standard value 3.9 kohm",R3);R3=3.9;
+Ic=VR3/R3;
+Ie=Ic;
+VR2=Vcc-Vce+Vbe;
+R2=VR2/Ic;
+printf("\nR2=%.1f kohm,standard value 2.2 kohm",R2);R2=2.2;
+Ibmax=1000*Ic/hfe;
+//VR1<<Vbe
+VR1=1000*Vbe/10;
+R1=VR1/Ibmax;
+printf("\nR1=%.1f kohm,standard value 2.2 kohm",R1);
+
+
+
+
+
diff --git a/1514/CH4/EX4.11/4_11.sce b/1514/CH4/EX4.11/4_11.sce new file mode 100755 index 000000000..84f3a5bf7 --- /dev/null +++ b/1514/CH4/EX4.11/4_11.sce @@ -0,0 +1,24 @@ +//chapter 4
+//example 4.11
+//page 125
+clear all;
+clc ;
+//given
+R4=4.7;//kohm
+hfe=70;
+deltaT=100-25;//change in temperature
+//deltaVbe/deltaT=-1.8mV/degreeC
+deltaVbe=-1.8*deltaT;
+deltaIc=-deltaVbe/R4;//microA
+printf("\nchange in Ic =%.1f microA",deltaIc);
+
+Re=R4;
+Rt=(56*68/(56+68));
+//stability factor
+S=(1+hfe)/(1+hfe*(Re/(Re+Rt)));
+printf("\nstability factor=%.1f",S);
+
+
+
+
+
diff --git a/1514/CH4/EX4.12/4_12.sce b/1514/CH4/EX4.12/4_12.sce new file mode 100755 index 000000000..94366e6ce --- /dev/null +++ b/1514/CH4/EX4.12/4_12.sce @@ -0,0 +1,41 @@ +//chapter 4
+//example 4.12
+//page 128
+clear all;
+clc ;
+//given
+Rc=2.2;Re=2.7;
+Vcc=20;//supply voltage V
+R1=18;R2=8.2;
+Vbe=0.7;
+//total dc load
+R=Rc+Re;
+//dc load line
+Ic1=0;
+Vce1=Vcc;//point A
+Vce2=0;
+Ic2=Vcc/(R);
+plot([Vce1 Vce2],[Ic1 Ic2],'-.*');
+xtitle('dc load line','Vce in V','Ic in mA');
+a=gca();
+a.data_bounds=[-0.5 -0.5;21 5]
+
+Vb=(Vcc*R2)/(R1+R2);
+Vb=6.3;
+Ie=(Vb-Vbe)/Re;
+Ic=Ie;//Q point Ic=2.07
+printf("\nQ point is at Ic=%.2f mA",Ic);
+
+//ac load line
+//total ac load=Rc
+deltaIc=1;//mA
+deltaVce=-(deltaIc*Rc);
+printf("\ndeltaVce=%.1f V for deltaIc = 1 mA",deltaVce);
+printf("\npoints Q and ( deltaVce,deltaIc) constitute ac load line");
+
+
+
+
+
+
+
diff --git a/1514/CH4/EX4.13/4_13.sce b/1514/CH4/EX4.13/4_13.sce new file mode 100755 index 000000000..d3eb1d0cc --- /dev/null +++ b/1514/CH4/EX4.13/4_13.sce @@ -0,0 +1,19 @@ +//chapter 4
+//example 4.13
+//page 132
+clear all;
+clc ;
+//given
+Vcc=10;//supply voltage V
+Rc=1;//collector resistance kohm
+Ico=50;//collector cutoff current nA
+// at cutoff
+Ic=Ico;//collector current at cutoff
+Vce=Vcc-(Ico*10^-6);
+printf("\nFor Transistor in cutoff,Vce=%.5f V",Vce);
+
+//at saturation
+Vce=0;
+Ic=Vcc/Rc;
+Vce=0.2;//from datasheet of 2N3904
+printf("\nFor Transistor in saturation,Vce<=%.1f V",Vce);
diff --git a/1514/CH4/EX4.14/4_14.sce b/1514/CH4/EX4.14/4_14.sce new file mode 100755 index 000000000..964e66917 --- /dev/null +++ b/1514/CH4/EX4.14/4_14.sce @@ -0,0 +1,21 @@ +//chapter 4
+//example 4.14
+//page 134
+clear all;
+clc ;
+//given
+Vcc=10;//supply voltage V
+Rc=1;//collector resistance kohm
+Vb=5;//Base voltage V
+Vcesat=0.2;
+hfemin=100;
+Vbe=0.7;
+Ic=(Vcc-Vcesat)/Rc;
+Ibmin=Ic/hfemin;
+Rb=(Vb-Vbe)/Ibmin;
+printf("\nValue of Rb=%.1f kohm",Rb);
+printf('\nRb is a maximum Value.\nThe next lower standard resistance (39 kohm) should be selected to ensure that \nIb is large enough to drive the transistor into saturation.')
+
+
+
+
diff --git a/1514/CH4/EX4.15/4_15.sce b/1514/CH4/EX4.15/4_15.sce new file mode 100755 index 000000000..6859e5cd3 --- /dev/null +++ b/1514/CH4/EX4.15/4_15.sce @@ -0,0 +1,17 @@ +//chapter 4
+//example 4.15
+//page 135
+clear all;
+clc ;
+//given
+Vbe=0.7;
+Vcc=15;//supply voltage V
+Ic=1;//collector current mA
+Vcesat=0.2;//saturation voltage
+Rc=(Vcc-Vcesat)/Ic;
+printf("\nRc=%.1fkohm,standard value 15kohm",Rc);
+hfemin=35;//from datasheet of 2N3903
+Ibmin=1000*Ic/hfemin;
+Rb=1000*(Vcc-Vbe)/Ibmin
+printf("\nValue of Rb= %d kohm",Rb);
+printf('\nUse the next lower standard resistance (470 kohm) to ensure that Ib is little\nlarger than the minimum level required for transistor saturation.')
diff --git a/1514/CH4/EX4.2/4_2.sce b/1514/CH4/EX4.2/4_2.sce new file mode 100755 index 000000000..6d18a2fde --- /dev/null +++ b/1514/CH4/EX4.2/4_2.sce @@ -0,0 +1,31 @@ +//chapter 4
+//example 4.2
+//page 104
+clear all;
+clc ;
+//given
+Rc=2.2;//collector resistance in kohm
+Vcc=18;//supply voltage
+Ib=40;//base current in microA
+Ic1=0;//collector current
+Vce1=Vcc;//point A(Vce,Ic)=(18,0)
+Vce2=0;//collector to emitter voltage V
+Ic2=Vcc/Rc;//mA
+printf('dc load line passes through points A(18,0),B(0,8.2)')
+//point B(Vce2,Ic2)
+plot([Vce1 Vce2],[Ic1 Ic2],'-.*');
+xtitle('dc load line','Vce in V','Ic in mA');
+a=gca();
+a.data_bounds=[-0.5 -0.5;19 8.5]
+
+//from intersection of dc load line and Ib=40microA,pointQ
+Ic=4.25;//mA
+Vce=8.7;//V
+//for point Q1
+Vce1=1.2;
+deltaVce1=Vce1-Vce;
+//for point Q2
+Vce1=16.7;
+deltaVce2=Vce1-Vce;
+printf("\n maximum undistorted output is +-7.5 V")
+
diff --git a/1514/CH4/EX4.3/4_3.sce b/1514/CH4/EX4.3/4_3.sce new file mode 100755 index 000000000..c9fc47ec3 --- /dev/null +++ b/1514/CH4/EX4.3/4_3.sce @@ -0,0 +1,17 @@ +//chapter 4
+//example 4.3
+//page 106
+clear all;
+clc ;
+//given
+hfe=100;
+Vcc=15;//supply voltage
+//dc bias conditions
+Vce=5;//V
+Ic=5;//mA
+Vbe=0.7;
+Rc=(Vcc-Vce)/Ic;
+Ib=1000*Ic/hfe;
+Rb=1000*(Vcc-Vbe)/Ib;
+printf("\nValue of Rc=%d kohm,Rb=%d kohm",Rc,Rb);
+
diff --git a/1514/CH4/EX4.4/4_4.sce b/1514/CH4/EX4.4/4_4.sce new file mode 100755 index 000000000..5bf0513d1 --- /dev/null +++ b/1514/CH4/EX4.4/4_4.sce @@ -0,0 +1,20 @@ +//chapter 4
+//example 4.4
+//page 107
+clear;
+clc ;
+//given
+hfe1=50;
+Vcc=15;//supply voltage
+Vbe=0.7;
+Rb=286;
+Ib=1000*(Vcc-Vbe)/Rb;
+Rc=2;//collector resistance in kohm
+Ic=hfe1*Ib/1000;
+Vce=Vcc-(Ic*Rc);
+printf("\nFor hfe=50,Vce=%d V,Ic=%.1f mA,Ib=%d microA",Vce,Ic,Ib);
+
+hfe2=150;
+Ic=hfe2*Ib/1000;
+Vce=Vcc-(Ic*Rc);
+printf("\nFor hfe=150,Vce=%d V,Ic=%.1f mA,Ib=%d microA",Vce,Ic,Ib);
diff --git a/1514/CH4/EX4.5/4_5.sce b/1514/CH4/EX4.5/4_5.sce new file mode 100755 index 000000000..a72c75371 --- /dev/null +++ b/1514/CH4/EX4.5/4_5.sce @@ -0,0 +1,17 @@ +//chapter 4
+//example 4.5
+//page 102
+clear all;
+clc ;
+//given
+Vcc=15;//supply voltage
+Vce=5;//collector to emitter voltage
+Ic=5;//mA
+hfe=100;Vbe=0.7;
+Ib=1000*Ic/hfe;//microA
+Rb=1000*(Vce-Vbe)/Ib;
+Rc=(Vcc-Vce)/(Ib*10^-3+Ic);
+printf("\nValue of Rc=%.2f kohm\nstandard value 1.8 kohm\nRb=%d kohm\nstandard value 82 kohm",Rc,Rb);
+
+
+
diff --git a/1514/CH4/EX4.6/4_6.sce b/1514/CH4/EX4.6/4_6.sce new file mode 100755 index 000000000..8f9158676 --- /dev/null +++ b/1514/CH4/EX4.6/4_6.sce @@ -0,0 +1,20 @@ +//chapter 4
+//example 4.6
+//page 109
+clear;
+clc ;
+//given
+hfe1=50;//minimum value
+hfe2=150;//maximum value
+Vcc=15;//supply voltage
+Rc=1.98;//collector resistance in kohm
+Rb=86;//base resistance in kohm
+Vbe=0.7;
+Ic1=(Vcc-Vbe)/(Rc*(1+1/hfe1)+Rb/hfe1);
+Vce1=(Ic1/hfe1)*Rb+Vbe;
+
+Ic2=(Vcc-Vbe)/(Rc*(1+1/hfe2)+Rb/hfe2);
+Vce2=((Ic2/hfe2)*Rb)+Vbe;
+
+printf("\nfor hfe=50,Vce=%.1f V,Ic=%.2f mA",Vce1,Ic1);
+printf("\nfor hfe=150,Vce=%.1f V,Ic=%.2f mA",Vce2,Ic2);
diff --git a/1514/CH4/EX4.7/4_7.sce b/1514/CH4/EX4.7/4_7.sce new file mode 100755 index 000000000..7c19c8189 --- /dev/null +++ b/1514/CH4/EX4.7/4_7.sce @@ -0,0 +1,25 @@ +//chapter 4
+//example 4.7
+//page 112
+clear all;
+clc ;
+//given
+Vcc=15;//supply voltage
+Vce=5;//collector to emitter voltage
+Ic=5;//mA
+hfe=100;Vbe=0.7;
+//drop across RE & RC
+Vrc=Vcc-Vce;
+VRC=Vrc/2;
+Ve=VRC;
+Rc=VRC/Ic;
+printf("\nRc=%d kohm,standard value 1 kohm",Rc);
+Ie=Ic;
+Re=Ve/Ic;
+printf("\nRe=%d kohm,standard value 1 kohm",Re);
+Vb=Ve+Vbe;
+I2=Ic/10;
+R2=Vb/I2;
+printf("\nR2=%.1f kohm,standard value 12 kohm",R2);
+R1=(Vcc-Vb)/I2;
+printf("\nR1=%.1f kohm,standard value 18 kohm",R1);
diff --git a/1514/CH4/EX4.8/4_8.sce b/1514/CH4/EX4.8/4_8.sce new file mode 100755 index 000000000..5d9bac974 --- /dev/null +++ b/1514/CH4/EX4.8/4_8.sce @@ -0,0 +1,33 @@ +//chapter 4
+//example 4.8
+//page 113
+clear all;
+clc ;
+
+//given
+hfe1=50;//minimum value
+hfe2=150;//maximum value
+Vbe=0.7;
+Vcc=15;//supply voltage V
+R1=18.6;R2=11.4;//kohm
+VT=(Vcc*R2)/(R1+R2);
+RT=(R1*R2)/(R1+R2);
+Rc=1;//kohm
+Re=1.0;
+
+//for hfe=50
+Ic1=(VT-Vbe)/(RT/hfe1+Re*(1/hfe1+1));Ic1=4.31;
+Vce1=Vcc-(Ic1*Rc)-Re*(Ic1/hfe1+Ic1);
+printf("\nfor hfe=50,Vce=%.2f V,Ic=%.2f mA",Vce1,Ic1);
+
+//for hfe=150
+Ic2=(VT-Vbe)/(RT/hfe2+Re*(1/hfe2+1));Ic2=4.74;
+Vce2=Vcc-(Ic2*Rc)-Re*(Ic2/hfe2+Ic2);
+printf("\nfor hfe=150,Vce=%.2f V,Ic=%.2f mA",(Vce2),Ic2);
+
+Vb= Vcc*(R2/(R1+R2));
+Ve=Vb-Vbe;
+Ie=Vb/Re;
+Vc=ceil(Vcc-(Ie*Rc));
+printf('\nCollector voltage is approximately %d V',Vc)
+
diff --git a/1514/CH4/EX4.9/4_9.sce b/1514/CH4/EX4.9/4_9.sce new file mode 100755 index 000000000..4541fbfed --- /dev/null +++ b/1514/CH4/EX4.9/4_9.sce @@ -0,0 +1,30 @@ +//chapter 4
+//example 4.9
+//page 116
+clear all;
+clc ;
+//given
+Vbe=0.7;
+Vcc=12;//supply voltage V
+Ic=1;//collector current mA
+Vce=3;//collector to emitter voltage V
+Ve=5;//as Ve>>Vbe
+Ie=Ic;
+R4=Ve/Ic;
+printf("\nR4=%d kohm,standard value 4.7 kohm",R4);R4=4.7;
+Ve=Ie*R4;
+Vc=Ve+Vce;
+VR3=Vcc-Vc;
+R3=VR3/Ic;
+printf("\nR3=%.1f kohm,standard value 3.9 kohm\nThis will reduce VR3 and increase Vce slightly.",R3);R3=3.9;
+Vb=Ve+Vbe;
+I2=1000*Ic/10;
+R2=1000*Vb/I2;
+printf("\nR2=%d kohm,standard value 56 kohm",R2);R2=56;
+I2=1000*Vb/R2;I2=96.4;
+R1=1000*(Vcc-Vb)/I2;
+printf("\nR1=%.1f kohm,standard value 68 kohm",R1);
+
+
+
+
|