From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3754/CH22/EX22.23/22_23.sce | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 3754/CH22/EX22.23/22_23.sce (limited to '3754/CH22/EX22.23/22_23.sce') diff --git a/3754/CH22/EX22.23/22_23.sce b/3754/CH22/EX22.23/22_23.sce new file mode 100644 index 000000000..454134002 --- /dev/null +++ b/3754/CH22/EX22.23/22_23.sce @@ -0,0 +1,23 @@ +clear// + +//Variables + +VCC = 20.0 //Source voltage (in volts) +RE = 5.0 //Emitter Resistance (in kilo-ohm) +RC = 1.0 //Collector Resistance (in kilo-ohm) +R1 = 10.0 //Resistance (in kilo-ohm) +R2 = 10.0 //Resistance (in kilo-ohm) +VBE = 0.7 //Emitter-to-Base Voltage (in volts) + +//Calculation + +VB = VCC * R2 / (R1 + R2) //Voltage (in volts) +VE = VB - VBE //Emitter voltage (in volts) +IE = VE / RE //Emitter current (in milli-Ampere) +IC = IE //Collector current (in milli-Ampere) +VCE = VCC - IC * RC //Collector-to-emitter voltage (in volts) +VC = VCE + VE //Collector potential (in volts) + +//Result + +printf("\n Emitter current is %0.3f mA.\nValue of VCE is %0.3f V.\nValue of collector potential is %0.3f V.",IE,VCE,VC) -- cgit