blob: 978b8ff486d93755971f29a6509ff88192288d26 (
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
30
31
32
33
34
|
// Exa 2.10
format('v',7);
clc;
clear;
close;
// Given data
V_DD= 15;// in V
Vt= 1;// in V
V_D= 10;// in V
V_S= 5;// in V
KnWbyL= 1;// in mA/V^2
KnWbyL=KnWbyL*10^-3;// in A/V^2
R_G1= 8;// in MΩ
R_G1= R_G1*10^6;// in Ω
I_D= 0.5;// in mA
I_D=I_D*10^-3;//in A
R_D= (V_DD-V_D)/I_D;// in Ω
R_S= V_S/I_D;// in Ω
// Formul I_D= 1/2*KnWbyL*(V_OV)^2
V_OV= sqrt(2*I_D/KnWbyL);// in V
// Formula V_OV= V_GS-Vt
V_GS= V_OV+Vt;// in V
V_G= V_GS+V_S;// in V
// Formul V_G= R_G2*V_DD/(R_G1+R_G2)
R_G2= R_G1*V_G/(V_DD-V_G);//in Ω
R_D= R_D*10^-3;// in kΩ
R_S= R_S*10^-3;// in kΩ
R_G2= R_G2*10^-6;// in MΩ
disp(R_D,"The value of R_D in kΩ is : ")
disp(R_S,"The value of R_S in kΩ is : ")
disp(V_OV,"The value of V_OV in volts is : ")
disp(V_GS,"The value of V_GS in volts is : ")
disp(R_G2,"The value of R_G2 in MΩ is : ")
|