summaryrefslogtreecommitdiff
path: root/3515/CH2/EX2.7/Ex_2_7.sce
blob: 28681c05eee34a3bf880abc2e89366c6d233e2c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Exa 2.7
format('v',5);
clc;
clear;
close;
// Given data 
KnWbyL= 1;// in mA
KnWbyL=KnWbyL*10^-3;// in A
Vt= 1;// in V
V_DS= 0.1;// in V
V_D= V_DS;// in V
V_GS= 5;// in V
V_DD= V_GS;// in V
// Formula I_D= K'nW/L*[(V_GS-Vt)*V_DS-V_DS^2/2]
I_D= KnWbyL*[(V_GS-Vt)*V_DS-V_DS^2/2];// in A
R_D= (V_DD-V_D)/I_D;//in Ω
R_D= R_D*10^-3;// in kΩ
disp(R_D,"The required value of R_D in kΩ is : ")