diff options
Diffstat (limited to '3754/CH5/EX5.4/5_4.sce')
-rw-r--r-- | 3754/CH5/EX5.4/5_4.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/3754/CH5/EX5.4/5_4.sce b/3754/CH5/EX5.4/5_4.sce new file mode 100644 index 000000000..9012a254b --- /dev/null +++ b/3754/CH5/EX5.4/5_4.sce @@ -0,0 +1,23 @@ +clear//
+
+//Variables
+
+V = 25 //Source voltage (in volts)
+RB = 99 //Resistance (in kilo-ohm)
+RC = 2 //Resistance (in kilo-ohm)
+RE = 1 //Resistance (in kilo-ohm)
+VCE = 5 //Voltage across C and E (in volts)
+
+//Calculation
+
+//Applying Kirchoff's Voltage law:
+//IB*RB + VBE + IE*RE -V = 0
+//IB*RB + VBE + (IB + IC)*RE - VCC = 0
+//100*IB + IC = 24
+//IB + 3*IC = 20
+IC = 1976.0/299
+IB = 20 - (3 * 6.61)
+
+//Result
+
+printf("\n Value of IB is %0.3f mA.\nValue of IC is %0.3f mA.",IB,IC)
|