summaryrefslogtreecommitdiff
path: root/1223/CH5/EX5.10/Ex5_10.sce
blob: 850800808be087856a2965c724e2453ab44d8c8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear;
clc;
//Example 5.10
Vtn=-2;
Kn=0.1;
Vdd=5;
Rs=5;
Vgs=0;
I_D=Kn*(Vgs-Vtn)^2;
printf('\ndrain current=%.3f mA\n',I_D)
Vds=Vdd-I_D*Rs;
printf('\ndc drain to source voltage=%.2f V\n',Vds)
Vdssat=Vgs-Vtn
//since Vds>Vdssat transisyor is biased in saturation region