summaryrefslogtreecommitdiff
path: root/3809/CH18/EX18.1
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH18/EX18.1')
-rw-r--r--3809/CH18/EX18.1/EX18_1.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3809/CH18/EX18.1/EX18_1.sce b/3809/CH18/EX18.1/EX18_1.sce
new file mode 100644
index 000000000..2e457afd3
--- /dev/null
+++ b/3809/CH18/EX18.1/EX18_1.sce
@@ -0,0 +1,19 @@
+//Chapter 18, Example 18.1
+clc
+//Initialisation
+VCC=10 //voltage
+VBE=0.7 //base emitter voltage
+RB=910*10**3 //resistance in ohm
+hfe=100 //HFE parameter of the transistor
+RC=4.7*10**3 //resistance in ohm
+
+
+//Calculation
+IB=(VCC-VBE)/RB //base current in ampere
+IC=hfe*IB //collector current in ampere
+Vq=VCC-(IC*RC) //quiescent output voltage
+
+
+//Results
+printf("Quiescent Output Current = %.2f mA\n",IC*1000)
+printf("Quiescent Output Voltage = %.1f V\n",Vq)