summaryrefslogtreecommitdiff
path: root/1514/CH4/EX4.12/4_12.sce
diff options
context:
space:
mode:
Diffstat (limited to '1514/CH4/EX4.12/4_12.sce')
-rwxr-xr-x1514/CH4/EX4.12/4_12.sce41
1 files changed, 41 insertions, 0 deletions
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");
+
+
+
+
+
+
+