summaryrefslogtreecommitdiff
path: root/1514/CH9/EX9.6
diff options
context:
space:
mode:
Diffstat (limited to '1514/CH9/EX9.6')
-rwxr-xr-x1514/CH9/EX9.6/9_6.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/1514/CH9/EX9.6/9_6.sce b/1514/CH9/EX9.6/9_6.sce
new file mode 100755
index 000000000..e5b4486ed
--- /dev/null
+++ b/1514/CH9/EX9.6/9_6.sce
@@ -0,0 +1,22 @@
+//chapter 9
+//example 9.6
+//page 261
+clear all;
+clc ;
+//given
+Vdd=24; // supply voltage in volts
+Rs=1;//in Kohm
+Rd=4.7;//in Kohm
+Id=[0 5];
+Vgs=Id*Rs;
+plot(Vgs,Id,'colo','red','marker','o','markeredg','blue','markersize',20)
+xtitle('bias line','Vgs','Id')
+Idmax=2.6;
+Idmin=1.3;
+Vsmax=Idmax*Rs;
+Vsmin=Idmin*Rs;
+Vdmax=Vdd-Idmin*Rd;
+Vdmin=Vdd-Idmax*Rd;
+Vdsmax=Vdd-Idmin*(Rd+Rs);
+Vdsmin=Vdd-Idmax*(Rd+Rs);
+printf('\nThe desired values are:\nIdmax=%.1f mA\nIdmin=%.1f mA\nVsmax=%.1f V\nVsmin=%.1f V\nVdmax=%.1f V\nVdmin=%.1f V\nVdsmax=%.1f V\nVdsmin=%.1f V',Idmax,Idmin,Vsmax,Vsmin,Vdmax,Vdmin,Vdsmax,Vdsmin);