summaryrefslogtreecommitdiff
path: root/3745/CH1/EX1.30/Ex1_30.sce
blob: c60cc1cd4cb2c4ff2442c428e857bc13d50f105f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Ex 30 Page 373

clc;clear;close;
// Given
VP=-2;//V
IDSS=1.75/1000;//A
VDD=24;//V
ID=1/1000;//A
VP=0.2;//V (pinch off voltage)

VGS=(1-sqrt(ID/IDSS))*VP;//V
gmo=-2*IDSS/VP;//S
gm=gmo*(1-VGS/VP);//S
Rs=-VGS/ID;//ohm

printf("VGS=%.2f V",VGS)
printf("\n gm = %.2f mS",gm*1000)
printf("\n Rs = %.f ohm",Rs)
//Ans are wrong in the book.