summaryrefslogtreecommitdiff
path: root/3682/CH2/EX2.16/Ex2_16.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3682/CH2/EX2.16/Ex2_16.sce
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 '3682/CH2/EX2.16/Ex2_16.sce')
-rw-r--r--3682/CH2/EX2.16/Ex2_16.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/3682/CH2/EX2.16/Ex2_16.sce b/3682/CH2/EX2.16/Ex2_16.sce
new file mode 100644
index 000000000..4abeea01c
--- /dev/null
+++ b/3682/CH2/EX2.16/Ex2_16.sce
@@ -0,0 +1,24 @@
+// Exa 2.16
+
+clc;
+clear;
+
+// Given data
+
+// A level shifter as shown in fig. 2.31
+// Assuming Ideal silicon transistors
+Vbe = 0.7; // Volts
+// B(current gain) has very large values
+Vcc = 15; // Volts
+Rc = 10*10^3; // Ω
+Re = 5000; // Ω
+
+// Solution
+
+printf(' From fig. 2.31 we get that, transistors Q1 and Q2 form a current mirror.\n');
+printf(' so Ic1 = Ic2 = I and that can be found by Ohm‘s law as ');
+I = (Vcc - Vbe)/Rc; // Ω
+printf(' I = Ic2 = %.2f mA. \n', I*1000 );
+printf(' Now, the difference V1-V2 can be found using KVL as ');
+dV = Vbe + I * Re; // KVL between end points
+printf(' %.2f V. \n',dV);