summaryrefslogtreecommitdiff
path: root/2102/CH6/EX6.20/exa_6_20.sce
blob: 9aca639583287217f21d71bbaa238f423fee867c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Exa 6.20
clc;
clear;
close;
// Given data
I_DSS= 6;// in mA
I_DSS= I_DSS*10^-3;// in A
V_P= -4.5;// in V
// Part (i)
// At V_GS= -2V
V_GS= -2;// in V
I_DS= I_DSS*(1-V_GS/V_P)^2;// in A
disp(I_DS*10^3,"At V_GS= -2V, the value of I_DS in mA is : ")
// At V_GS= -3.6V
V_GS= -3.6;// in V
I_DS= I_DSS*(1-V_GS/V_P)^2;// in A
disp(I_DS*10^3,"At V_GS= -3.6V, the value of I_DS in mA is : ")

// Part (ii)
// At I_DS= 3mA
I_DS= 3*10^-3;// in A
V_GS= V_P*(1-sqrt(I_DS/I_DSS));
disp(V_GS,"At I_DS= 3mA, the value of V_GS in volts is :")
// At I_DS= 5.5mA
I_DS= 5.5*10^-3;// in A
V_GS= V_P*(1-sqrt(I_DS/I_DSS));
disp(V_GS,"At I_DS= 5.5mA, the value of V_GS in volts is :")

// Note: There is  calculation error in the second part to find the value of V_GS in both the condition . So the answer in the book is wrong