summaryrefslogtreecommitdiff
path: root/887/CH13/EX13.4/13_4.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /887/CH13/EX13.4/13_4.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 '887/CH13/EX13.4/13_4.sce')
-rwxr-xr-x887/CH13/EX13.4/13_4.sce37
1 files changed, 37 insertions, 0 deletions
diff --git a/887/CH13/EX13.4/13_4.sce b/887/CH13/EX13.4/13_4.sce
new file mode 100755
index 000000000..d937e7a60
--- /dev/null
+++ b/887/CH13/EX13.4/13_4.sce
@@ -0,0 +1,37 @@
+clc
+//ex13.4
+V_CC=15;
+B=100; //beta value
+R_B=200*10^3;
+R_C=1*10^3;
+//we proceed in such a way that the required values will be displayed according to the satisfied condition of the below three cases
+
+//a)cut-off region
+V_BE=15; //no voltage drop across R_B in cut-off state
+V_CE=15; //no voltage drop across R_C in cut-off state
+i_C=0; //no collector current flows as there is no voltage drop
+i_B=0; //no base current flows as there is no voltage drop
+if(V_BE<0.5) then, //cut-off condition
+ disp(i_C,'collector current in amperes')
+ disp(V_CE,'collector to emitter voltage in volts')
+ end
+
+//b)saturation region
+V_BE=0.7; //base to emitter voltage in saturation state
+V_CE=0.2; //collector to emitter voltage in saturation state
+i_C=(V_CC-V_CE)/R_C; //collector current
+i_B=(V_CC-V_BE)/R_B; //base current
+if((B*i_B>i_C)&(i_B>0)) then, //saturation state conditions
+ disp(i_C,'collector current in amperes')
+ disp(V_CE,'collector to emitter voltage in volts')
+ end
+
+//c)active region
+V_BE=0.7; //base to emitter voltage in active state
+i_B=(V_CC-V_BE)/R_B; //base current
+i_C=B*i_B; //collector current in active state
+V_CE=V_CC-i_C*R_C; //collector to emitter voltage
+if((V_CE>0.2)&(i_B>0)) then, //active state conditions
+ disp(i_C,'collector current in amperes')
+ disp(V_CE,'collector to emitter voltage in volts')
+ end