summaryrefslogtreecommitdiff
path: root/181/CH6/EX6.2/example6_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '181/CH6/EX6.2/example6_2.sce')
-rwxr-xr-x181/CH6/EX6.2/example6_2.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/181/CH6/EX6.2/example6_2.sce b/181/CH6/EX6.2/example6_2.sce
new file mode 100755
index 000000000..4e87880c6
--- /dev/null
+++ b/181/CH6/EX6.2/example6_2.sce
@@ -0,0 +1,26 @@
+// Find Id and Vds
+// Basic Electronics
+// By Debashis De
+// First Edition, 2010
+// Dorling Kindersley Pvt. Ltd. India
+// Example 6-2 in page 274
+
+clear; clc; close;
+
+// Given data
+Ids=12*10^-3; // Drain current in mA
+Vp=-4; // Peak voltage in V
+Vgs=-2; // Gate to source voltage in V
+Rd=3*10^3; // Drain resistance in K-ohms
+Vcc=15; // Supply voltage in V
+
+// Calculation
+id=Ids*(1-(Vgs/Vp))^2;
+Vds=-id*Rd+Vcc;
+
+printf("(a)Id = %0.0e A\n",id);
+printf("(b)Vds = %0.0f V",Vds);
+
+// Result
+// (a) Id = 3mA
+// (b) Vds = 6V \ No newline at end of file