summaryrefslogtreecommitdiff
path: root/181/CH7/EX7.39/example7_39.sce
diff options
context:
space:
mode:
Diffstat (limited to '181/CH7/EX7.39/example7_39.sce')
-rwxr-xr-x181/CH7/EX7.39/example7_39.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/181/CH7/EX7.39/example7_39.sce b/181/CH7/EX7.39/example7_39.sce
new file mode 100755
index 000000000..9ccdd0df0
--- /dev/null
+++ b/181/CH7/EX7.39/example7_39.sce
@@ -0,0 +1,29 @@
+// Find the value of Rs
+// Basic Electronics
+// By Debashis De
+// First Edition, 2010
+// Dorling Kindersley Pvt. Ltd. India
+// Example 7-39 in page 341
+
+clear; clc; close;
+
+// Given data
+Id=2.5*10^-3; // Drain current in mA
+Vds=8; // Drain-source voltage in V
+Vdd=30; // Drain voltage in V
+R1=1*10^6; // R1 value in M-ohms
+R2=500*10^3; // R2 value in K-ohms
+Idss=15*10^-3; // Drain-source current in mA
+Vp=-5; // Pinch off voltage in volts
+
+// Calculation
+Vgs=5*(sqrt(5/30)-1);
+V2=(Vdd*R2)/(R1+R2);
+Rs=(V2-Vgs)/Id;
+printf("Rs = %0.2e ohms\n",Rs);
+Rd=(Vdd-Vds-(Id*Rs))/Id;
+printf("Rd = %0.2e ohms",Rd);
+
+// Result
+// Rs = 5.18 K-ohms
+// Rd = 3.62 K-ohms \ No newline at end of file