summaryrefslogtreecommitdiff
path: root/2702/CH2/EX2.7/Ex_2_7.sce
blob: 9709fecc5a2b7a87338482adfe197e97cecd5ac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Exa 2.7
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 Ω
disp(R_D*10^-3,"The required value of R_D in kΩ is : ")