summaryrefslogtreecommitdiff
path: root/181/CH6/EX6.15/example6_15.sce
diff options
context:
space:
mode:
Diffstat (limited to '181/CH6/EX6.15/example6_15.sce')
-rwxr-xr-x181/CH6/EX6.15/example6_15.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/181/CH6/EX6.15/example6_15.sce b/181/CH6/EX6.15/example6_15.sce
new file mode 100755
index 000000000..7735fb0a5
--- /dev/null
+++ b/181/CH6/EX6.15/example6_15.sce
@@ -0,0 +1,23 @@
+// Find Id when Vgs=4V
+// Basic Electronics
+// By Debashis De
+// First Edition, 2010
+// Dorling Kindersley Pvt. Ltd. India
+// Example 6-15 in page 288
+
+clear; clc; close;
+
+// Given data
+K=0.15*10^-3; // Constant in mA/V^2
+Vt=2; // Given voltgae in V
+Vdd=12; // Drain voltage in V
+Vgs=4; // Gate-source voltage in V
+
+// Calculation
+Vgg=sqrt(5.4/0.15)+2;
+Id=K*(Vgs-Vt)^2;
+printf("(a)Vgg = %0.0f V,\n(b)Id = %0.1e A",Vgg,Id);
+
+// Result
+// (a) Vgg = 8 V
+// (b) Id = 0.6 mA \ No newline at end of file