summaryrefslogtreecommitdiff
path: root/2459/CH22/EX22.3/Ex22_3.sce
blob: 97de462946c5c6667c12cff6923ec1055bbb7daa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//chapter22
//example22.3
//page491

I_D=5 // mA
I_DSS=10 // mA
V_GS_off=-6 // V

// we know that I_D=I_DSS*(1-V_GS/V_GS_off)^2 so making V_GS as subject we get

V_GS=V_GS_off*(1-(I_D/I_DSS)^0.5)
V_P=-V_GS_off

printf("gate source voltage = %.3f V \n",V_GS)
printf("pinch off voltage = %.3f V \n",V_P)