summaryrefslogtreecommitdiff
path: root/2885/CH5/EX5.2/ex5_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '2885/CH5/EX5.2/ex5_2.sce')
-rwxr-xr-x2885/CH5/EX5.2/ex5_2.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2885/CH5/EX5.2/ex5_2.sce b/2885/CH5/EX5.2/ex5_2.sce
new file mode 100755
index 000000000..cffe4f06e
--- /dev/null
+++ b/2885/CH5/EX5.2/ex5_2.sce
@@ -0,0 +1,20 @@
+//Find the value of drain current
+clear;
+clc;
+//soltion
+//given
+Vgso=-5;//V //gate to source cut off voltage
+Idss=20*10^-3;//A //drain to source current with gate shorted
+
+//At vgs = -2 V
+vgs=-2;//V input voltage
+id=Idss*(1-(vgs/Vgso))^2; //Schockley's equation
+printf("Drain current is (At vgs = -2 V) %.1f mA\n",id*10^3);
+
+//At vgs = -4 V
+vgs=-4;//V input voltage
+id=Idss*(1-(vgs/Vgso))^2; //Schockley's equation
+printf("Drain current is (At vgs = -4 V) %.1f mA\n",id*10^3);
+
+//At vgs = -8 V
+printf("Drain current is 0 A (At vgs = -8 V) because gate is biased beyond cut off ");