summaryrefslogtreecommitdiff
path: root/1223/CH5/EX5.17/Ex5_17.sce
diff options
context:
space:
mode:
Diffstat (limited to '1223/CH5/EX5.17/Ex5_17.sce')
-rwxr-xr-x1223/CH5/EX5.17/Ex5_17.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1223/CH5/EX5.17/Ex5_17.sce b/1223/CH5/EX5.17/Ex5_17.sce
new file mode 100755
index 000000000..0743c734d
--- /dev/null
+++ b/1223/CH5/EX5.17/Ex5_17.sce
@@ -0,0 +1,17 @@
+clear;
+clc;
+//Example 5.17
+Idss=5;//mA
+Vp=-4;
+Vdd=10;
+I_D=2;
+Vds=6;
+//I_D=Idss*(1-Vgs/Vp)^2
+Vgs=(1-sqrt(I_D/Idss))*Vp;
+printf('\nVgs=%.2f V\n',Vgs)
+Rs=-Vgs/I_D;
+printf('\nRs=%.3f KOhm\n',Rs)
+Rd=(Vdd-Vds-I_D*Rs)/I_D;
+printf('\nRd=%.2f KOhm\n',Rd)
+Vgs-Vp
+//since Vds>Vgs-Vp JFET is biased in saturation