summaryrefslogtreecommitdiff
path: root/1223/CH5/EX5.2/Ex5_2.sce
blob: 7f5b478106f4077782ded8303fb6a28648d993d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
clear;
clc;
//Example 5.2
Kp=0.2;//(mA/V^2)
Vtp=0.5;
iD=0.5;
Vsg=sqrt(iD/Kp)-Vtp;
printf('\nVgs=%.2f V\n',Vsg)
//to bias in p channel MOSFET 
Vsd=Vsg+Vtp;
printf('\nVsd=%.2f V\n',Vsd)