summaryrefslogtreecommitdiff
path: root/1223/CH17/EX17.1/Ex17_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1223/CH17/EX17.1/Ex17_1.sce')
-rwxr-xr-x1223/CH17/EX17.1/Ex17_1.sce34
1 files changed, 34 insertions, 0 deletions
diff --git a/1223/CH17/EX17.1/Ex17_1.sce b/1223/CH17/EX17.1/Ex17_1.sce
new file mode 100755
index 000000000..3e70629d4
--- /dev/null
+++ b/1223/CH17/EX17.1/Ex17_1.sce
@@ -0,0 +1,34 @@
+clear;
+clc;
+//Example 17.1
+V1=5;
+V2=-5;
+Rc1=1;
+Rc2=Rc1;
+Rc=Rc1;
+Re=2.150;
+v2=0;
+//for v1=0
+vE=-0.7;
+iE=(vE-V2)/Re;
+printf('\nemitter current=%.3f mA\n',iE)
+iC=1;
+Vcc=5;
+vo1=Vcc-iC*Rc;
+printf('\nvo1=vo2=%.f V\n',vo1)
+//for v2=-1
+vE=-0.7;
+iE=2;
+iC2=2;
+vo1=5;
+vo2=Vcc-iC2*Rc;
+printf('\nvo2=%.2f V\n',vo2)
+v1=1;
+Vbe=0.7;
+vE=v1-Vbe;
+iE=(vE-V2)/Re;
+printf('\nemitter current =%.3fmA\n',iE)
+iC1=iE;
+vo1=Vcc-iC1*Rc;
+printf('\nvo1=%.2f V\n',vo1)
+vo2=Vcc