summaryrefslogtreecommitdiff
path: root/181/CH5/EX5.1/example5_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /181/CH5/EX5.1/example5_1.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '181/CH5/EX5.1/example5_1.sce')
-rwxr-xr-x181/CH5/EX5.1/example5_1.sce50
1 files changed, 50 insertions, 0 deletions
diff --git a/181/CH5/EX5.1/example5_1.sce b/181/CH5/EX5.1/example5_1.sce
new file mode 100755
index 000000000..c6d5c3914
--- /dev/null
+++ b/181/CH5/EX5.1/example5_1.sce
@@ -0,0 +1,50 @@
+// Calculate BJT parameters using beta gain
+// Basic Electronics
+// By Debashis De
+// First Edition, 2010
+// Dorling Kindersley Pvt. Ltd. India
+// Example 5-1 in page 235
+
+clear; clc; close;
+
+// Part 1
+// Given Data
+beta_bjt=100; // Beta Gain of BJT
+Vcc=10; // DC voltage across Collector in V
+Rb=100000; // Base Resistance of BJT in ohm
+Rc=2000; // Collector Resistance of BJT in ohm
+Vbe=0.7; // Base-Emitter voltage of BJT
+
+// Calculations
+Ib=(Vcc-Vbe)/((beta_bjt*Rc)+Rc+Rb);
+Ic=beta_bjt*Ib;
+
+Vce=Vcc-(Ib+Ic)*Rc;
+
+printf("Part 1 \n");
+printf("(a)The value of Base Current in the BJT circuit is %0.3e A \n",Ib);
+printf("(b)The value of Collector Current in the BJT circuit is %0.3e A \n",Ic);
+printf("(c)The value of Collector-Emitter voltage in the circuit is %0.3f V \n",Vce);
+
+// Part 2
+// Given Data
+Vce2=7; // Collector-Emitter voltage of BJT
+Vcc=10; // DC voltage across Collector in V
+Rc=2000; // Collector Resistance of BJT in ohm
+Vbe=0.7; // Base-Emitter voltage of BJT
+Rc2=2000; // Collector Resistance of BJT in ohm
+
+// Calculations
+constant=(Vcc-Vce2)/Rc;
+Ib2=constant/101;
+Ic2=100*Ib2;
+Rb2=(Vcc-Vbe-(Rc2*constant))/Ib2;
+
+printf("\nPart 2 \n");
+printf("(a)The value of the Base Resistance of the Circuit is %0.3e ohm \n ",Rb2);
+
+// Results
+// Circuit 1: Value of Base Current of circuit = 0.031 mA
+// Circuit 1: Value of Collector Current of circuit = 3.1 mA
+// Circuit 1: Value of Collector-Emitter voltage of BJT circuit = 3.779 V
+// Circuit 2: Value of BAse Resistance required = 424.24 K-ohm \ No newline at end of file