summaryrefslogtreecommitdiff
path: root/2459/CH12/EX12.8/Ex12_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '2459/CH12/EX12.8/Ex12_8.sce')
-rw-r--r--2459/CH12/EX12.8/Ex12_8.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2459/CH12/EX12.8/Ex12_8.sce b/2459/CH12/EX12.8/Ex12_8.sce
new file mode 100644
index 000000000..7b619bc41
--- /dev/null
+++ b/2459/CH12/EX12.8/Ex12_8.sce
@@ -0,0 +1,20 @@
+//chapter12
+//example12.8
+//page245
+
+V_CC=20 // V
+R_B=100 // kilo ohm
+R_C=1 // kilo ohm
+V_BE=0.7 // V
+gain_beta=100
+
+// 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