summaryrefslogtreecommitdiff
path: root/2459/CH12/EX12.21/Ex12_21.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /2459/CH12/EX12.21/Ex12_21.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 '2459/CH12/EX12.21/Ex12_21.sce')
-rw-r--r--2459/CH12/EX12.21/Ex12_21.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/2459/CH12/EX12.21/Ex12_21.sce b/2459/CH12/EX12.21/Ex12_21.sce
new file mode 100644
index 000000000..e2afa4d54
--- /dev/null
+++ b/2459/CH12/EX12.21/Ex12_21.sce
@@ -0,0 +1,24 @@
+//chapter12
+//example12.21
+//page257
+
+V_CC=10 // V
+R1=12 // kilo ohm
+R2=2.7 // kilo ohm
+V_BE=0.7 // V
+R_E=180d-3 // kilo ohm
+R_C=620d-3 // kilo ohm
+
+V2=V_CC*R2/(R1+R2)
+I_E=(V2-V_BE)/R_E
+I_C=I_E
+V_CE=V_CC-I_C*(R_C+R_E)
+
+printf("the operating point is %.3f V and %.3f mA \n",V_CE,I_C)
+if V_CE<V_CC/2+0.1 | V_CE>V_CC/2-0.1 // check if V_CE is nearly half of V_CC
+ printf("circuit is mid-point biased \n")
+else
+ printf("circuit is not mid-point biased. \n")
+end
+
+// the accurate answer for collector current is 6.315 mA but in book it is given as 6.33 mA