summaryrefslogtreecommitdiff
path: root/1223/CH3/EX3.3/Ex3_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '1223/CH3/EX3.3/Ex3_3.sce')
-rwxr-xr-x1223/CH3/EX3.3/Ex3_3.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/1223/CH3/EX3.3/Ex3_3.sce b/1223/CH3/EX3.3/Ex3_3.sce
new file mode 100755
index 000000000..b31d82aac
--- /dev/null
+++ b/1223/CH3/EX3.3/Ex3_3.sce
@@ -0,0 +1,18 @@
+clear;
+clc;
+//Example 3.3
+Vbb=4;//(V)
+Rb=220//(KOhm);
+Rc=2;//(KOhm)
+Vcc=10;//(V)
+Vbe=0.7;//(V)
+b=200;
+//from fig.3.19(b)
+Ib=(Vbb-Vbe)/Rb;
+printf('\nbase current=%.3f mA\n',Ib)
+Ic=b*Ib;
+printf('\ncollector current=%.2f mA\n',Ic)
+Ie=(1+b)*Ib;
+printf('\nemitter current=%.2f mA\n',Ie)
+Vce=Vcc-Ic*Rc;
+printf('\ncollector emitter voltage=%.1f V\n',Vce)