summaryrefslogtreecommitdiff
path: root/2210/CH6/EX6.8
diff options
context:
space:
mode:
Diffstat (limited to '2210/CH6/EX6.8')
-rwxr-xr-x2210/CH6/EX6.8/6_8.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2210/CH6/EX6.8/6_8.sce b/2210/CH6/EX6.8/6_8.sce
new file mode 100755
index 000000000..895faf584
--- /dev/null
+++ b/2210/CH6/EX6.8/6_8.sce
@@ -0,0 +1,18 @@
+//Chapter 6, Problem 8
+clc
+id=2e-3 //drain current in ampere
+vds=12 //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
+
+//calculating the biasing resistors
+vgs=vp*(1-sqrt(id/idss))
+rs=-vgs/id
+vs=-vgs
+vd=vds+vs
+rd=((vcc-vd)/id)
+
+disp("Since IG = 0, RG = 1 Mohm (approx)")
+printf("Rs = %d ohm\nRd = %.2f ohm\n\n",rs,rd)
+