summaryrefslogtreecommitdiff
path: root/2444/CH8/EX8.12/ex8_12.sce
blob: bd18293bfda56a630e0051ef4c7de86e912b5678 (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
// Exa 8.12
clc;
clear;
close;
format('v',6)
// Given data
I_DSS = 15;// in mA
I_DSS  = I_DSS * 10^-3;// in A
V_P = -4;// in V
g_mo = (-2*I_DSS)/V_P;// in S
V_GSQ = -2;// in V
g_m = g_mo*( 1-(V_GSQ/V_P) );// in S
R_D = 2.7;// in k ohm
R_D = R_D * 10^3;// in ohm
Av1 = -g_m*R_D;// voltage gain of first stage
Av2 = Av1;// voltage gain of second stage
Av = Av1*Av2;// overall voltage gain
disp(Av,"The overall voltage gain is");
R_G = 2;// in Mohm
Rin = R_G;// in Mohm
disp(Rin,"The input impedance in Mohm is");
Rout = R_D;// in ohm
Rout= Rout*10^-3;// in k ohm
disp(Rout,"The output impedance in k ohm is");
Rout= Rout*10^3;// in ohm
Vin = 15;// in mV
Vin = Vin  * 10^-3;// in V
Vout = Av*Vin;// in V
disp(Vout,"The output voltage in V is");
R_L = 15;// in k ohm
R_L = R_L * 10^3;// in ohm
V_L = (R_L/(Rout+R_L))*Vout;// in V
disp(V_L,"The output voltage across load resistance in V is");