summaryrefslogtreecommitdiff
path: root/2210/CH6/EX6.9/6_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '2210/CH6/EX6.9/6_9.sce')
-rwxr-xr-x2210/CH6/EX6.9/6_9.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2210/CH6/EX6.9/6_9.sce b/2210/CH6/EX6.9/6_9.sce
new file mode 100755
index 000000000..36d71cce9
--- /dev/null
+++ b/2210/CH6/EX6.9/6_9.sce
@@ -0,0 +1,17 @@
+//Chapter 6, Problem 9
+clc
+id=-5e-3 //drain current in ampere
+vds=-10 //drain to source voltage
+vcc=-24 //supply voltage
+idss=8e-3 //drain–source current when the gate and source are shorted
+vp=-6 //pinch-off voltage
+vgs=2.3 //gate to source voltage
+
+//calculating the biasing resistors
+rs=-vgs/id
+vs=-vgs
+vd=vds+vs
+rd=((vcc-vd)/id)
+
+disp("Since IG = 0, RG = 1 Mohm (approx)")
+printf("\nRs = %.2f ohm\nRd = %.2f ohm\n\n",rs,rd)