summaryrefslogtreecommitdiff
path: root/3507/CH12/EX12.8/Ex12_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '3507/CH12/EX12.8/Ex12_8.sce')
-rw-r--r--3507/CH12/EX12.8/Ex12_8.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3507/CH12/EX12.8/Ex12_8.sce b/3507/CH12/EX12.8/Ex12_8.sce
new file mode 100644
index 000000000..bd17c8763
--- /dev/null
+++ b/3507/CH12/EX12.8/Ex12_8.sce
@@ -0,0 +1,19 @@
+//chapter12
+//example12.8
+//page245
+
+V_CC=20 // V
+R_B=100 // kilo ohm
+R_C=1 // kilo ohm
+V_BE=0.7 // V
+
+// we know that R_B=(V_CC-V_BE-gain_beta*R_C*I_B)/I_B so we get
+I_B=(V_CC-V_BE)/(R_B+gain_beta*R_C)
+
+I_C=gain_beta*I_B
+
+V_CE=V_CC-I_C*R_C
+
+printf("operating point is %.3f V, %.3f mA \n",V_CE,I_C)
+
+// the accurate answer is 10.35V,9.65mA but in book it is given as 10.4V,9.6mA