summaryrefslogtreecommitdiff
path: root/2702/CH2/EX2.16/Ex_2_16.sce
blob: a7c9e4f26181709d3b4091b6047b5aff2fc5eb18 (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
// Exa 2.16
clc;
clear; 
close;
// Given data 
V_SS= -5;// in V
unCox= 60;// in µA/V^2
unCox= unCox*10^-6;// in A/V^2
Vt= 1;// in V
W= 100;// in µm
L= 3;// in µm
V_G=0;// in V
V_DD= 5;// in V
V_D=0;//in V
I_D= 1*10^-3;// in A
// I_D= (V_DD-V_D)/R_D
R_D= (V_DD-V_D)/I_D;// in Ω
disp(R_D*10^-3,"The value of R_D in kΩ is : ")
// Formul I_D= 1/2*unCox*W/L*(V_GS-Vt)^2
V_GS= sqrt(2*I_D*L/(unCox*W))+Vt;// in V
V_S= V_G-V_GS;// in V
R_S= (V_S-V_SS)/I_D;// in Ω
disp(R_S*10^-3,"The resistance in kΩ is ");