summaryrefslogtreecommitdiff
path: root/2882/CH7/EX7.15/Ex7_15.sce
diff options
context:
space:
mode:
Diffstat (limited to '2882/CH7/EX7.15/Ex7_15.sce')
-rwxr-xr-x2882/CH7/EX7.15/Ex7_15.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/2882/CH7/EX7.15/Ex7_15.sce b/2882/CH7/EX7.15/Ex7_15.sce
new file mode 100755
index 000000000..d305ce310
--- /dev/null
+++ b/2882/CH7/EX7.15/Ex7_15.sce
@@ -0,0 +1,23 @@
+//Tested on Windows 7 Ultimate 32-bit
+//Chapter 7 Field Effect Transistors Pg no. 251 and 252
+clear;
+clc;
+
+//Given Data
+
+IDSS=20D-3;//drain saturation current in amperes
+VGS0=6;//gate to source cutoff voltage in volts
+VGS_1=3;//gate to source voltage in volts
+VGS_2=-3;//gate to source voltage in volts
+
+//Solution
+
+ID_1=IDSS*(1-VGS_1/VGS0)^2;//drain current for VGS_1 in amperes
+ID_2=IDSS*(1-VGS_2/VGS0)^2;//drain current for VGS_2 in amperes
+printf("For VGS = %d Volts\nID = %d mA\n\n",VGS_1,ID_1*10^3);
+printf("For VGS = %d Volts\nID = %d mA\n\n",VGS_2,ID_2*10^3);
+if VGS0>0 then
+ printf("Since VGS0 is positive,this is an p-channel MOSFET");
+else
+ printf("Since VGS0 is negative,this is an n-channel MOSFET");
+end