summaryrefslogtreecommitdiff
path: root/2300/CH13/EX13.16.13/Ex13_13.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2300/CH13/EX13.16.13/Ex13_13.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 '2300/CH13/EX13.16.13/Ex13_13.sce')
-rwxr-xr-x2300/CH13/EX13.16.13/Ex13_13.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/2300/CH13/EX13.16.13/Ex13_13.sce b/2300/CH13/EX13.16.13/Ex13_13.sce
new file mode 100755
index 000000000..92d2e197a
--- /dev/null
+++ b/2300/CH13/EX13.16.13/Ex13_13.sce
@@ -0,0 +1,22 @@
+//scilab 5.4.1
+//Windows 7 operating system
+//chapter 13 Field-Effect Transistors
+clc
+clear
+//For n-channel enhancement mode MOSFET operating in active region
+VT=2//VT=Threshold voltage
+K=0.5//K=(IDSS/(Vp^2)) in terms of mA/V^2
+VDD=15//VDD=drain supply voltage
+RL=1//RL=load resistance in kilo ohm
+R1=200*10^3//R1=resistance in the voltage divider network in terms of ohms
+R2=100*10^3//R2=resistance in the voltage divider network in terms of ohms
+VGS=(R2/(R1+R2))*VDD//VGS=gate-to-source voltage
+disp("V",VT,"Threshold voltage is =")
+disp("V",VGS,"The gate-to-source voltage VGS is =")
+ID=K*(VGS-VT)^2//ID=drain current in mA
+disp("mA",ID,"The value of drain current ID is =")
+VDS=VDD-(ID*RL)//VDS=drain-to-source voltage
+disp("V",VDS,"The value of drain-to-source voltage VDS is=")
+if (VDS>(VGS-VT)) then
+ disp("As VDS>(VGS-VT),(i.e. 10.5>(5-2)),the operation is indeed in the active region ")
+end