summaryrefslogtreecommitdiff
path: root/3515/CH3/EX3.7/Ex_3_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '3515/CH3/EX3.7/Ex_3_7.sce')
-rw-r--r--3515/CH3/EX3.7/Ex_3_7.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3515/CH3/EX3.7/Ex_3_7.sce b/3515/CH3/EX3.7/Ex_3_7.sce
new file mode 100644
index 000000000..46bb6592e
--- /dev/null
+++ b/3515/CH3/EX3.7/Ex_3_7.sce
@@ -0,0 +1,21 @@
+// Exa 3.7
+format('v',6);
+clc;
+clear;
+close;
+// Given data
+V_CC= 15;// in V
+V_BE= 0.7;// in V
+V_CE= 5;// in V
+I_C= 5;// in mA
+I_C=I_C*10^-3;// in A
+bita= 100;
+I_B= I_C/bita;// in A
+disp(I_B*10^6,"Base current in µA is : ")
+//Apply KVL to collector circuit , V_CC= (I_C+I_B)*R_C+V_CE
+R_C= (V_CC-V_CE)/(I_C+I_B);// in Ω
+disp(R_C*10^-3,"The value of R_C in kΩ is : ")
+//Apply KVL to base or input circuit, V_CC= (I_C+I_B)*R_C+V_CE + I_B*R_B
+R_B= (V_CC-V_BE-(I_C+I_B)*R_C)/I_B;// in ohm
+disp(R_B*10^-3,"The value of R_B in kΩ is : ")
+