summaryrefslogtreecommitdiff
path: root/3754/CH22/EX22.30
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3754/CH22/EX22.30
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3754/CH22/EX22.30')
-rw-r--r--3754/CH22/EX22.30/22_30.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/3754/CH22/EX22.30/22_30.sce b/3754/CH22/EX22.30/22_30.sce
new file mode 100644
index 000000000..d0d799c44
--- /dev/null
+++ b/3754/CH22/EX22.30/22_30.sce
@@ -0,0 +1,24 @@
+clear//
+
+//Variables
+
+VCC = 12.0 //Source voltage (in volts)
+RE = 1.0 //Emitter Resistance (in kilo-ohm)
+RC = 2.0 //Collector Resistance (in kilo-ohm)
+R1 = 100.0 //Resistance (in kilo-ohm)
+R2 = 20.0 //Resistance (in kilo-ohm)
+VBE = -0.2 //Emitter-to-Base Voltage (in volts)
+beta = 100.0 //Common emitter current gain
+
+//Calculation
+
+VB = -VCC * R2 / (R1 + R2) //Base 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)
+VC = -(VCC - IC * RC) //Collector voltage (in volts)
+VCE = VC - VE //Collector-to-emitter voltage (in volts)
+
+//Result
+
+printf("\n Base voltage is %0.3f V.\nEmitter voltage is %0.3f V.\nCollector voltage is %0.3f V.\nCollector current is %0.3f mA.\nEmitter current is %0.3f mA.\nCollector-to-emitter voltage is %0.3f V.",VB,VE,VC,IC,IE,VCE)