summaryrefslogtreecommitdiff
path: root/2330/CH12/EX12.2/ex12_2.sce
blob: 0233658d29d9913aec61cfc0c30ceb7ea91de639 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Example 12.2
format('v',6)
clc;
clear;
close;
// given data
gmo= 3000;// in µmhoS
V_GSoff= -4;// in V
I_DSS= 10;// in mA
disp("Part (i) When V_GS= -1");
V_GS= -1;// in V
// The value of gm 
gm= gmo*(1-V_GS/V_GSoff);// in µS
disp(gm,"The value of gm in µS is : ")
disp("Part (ii) When I_D= 2.5 mA")
I_D= 2.5;// in mA
// The value of gm 
gm= gmo*2*I_D/I_DSS;// in µS
disp(gm,"The value of gm in µS is : ")