summaryrefslogtreecommitdiff
path: root/1223/CH4/EX4.4/Ex4_4.sce
blob: a64ee746f222917cba6ad378d7ac285c001cce48 (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
clear;
clc;
//Example 4.4
b=100;
Vbe=0.7;
Va=100;
V_T=0.026;//(V)
//from dc analysis
Icq=0.95;
Vceq=6.31;
//ac analysis
r_pi=b*V_T/Icq;
printf('\nsmall signal resistance=%.2f KOhm\n',r_pi)
g_m=Icq/V_T;
printf('\ntransconductance=%.3f mA/V\n',g_m)
Rs=0.5;
Rc=6;
ro=Va/Icq;
printf('\nro=%.2f KOhm\n',ro)
Av=-g_m*(5.9*r_pi/(5.9+r_pi))/((5.9*r_pi/(r_pi+5.9))+Rs)*ro*Rc/(ro+Rc);
printf('\nsmall signal voltage gain=%.2f \n',Av)
Ri=5.9*r_pi/(r_pi+5.9);
printf('\ninput resistance=%.3f KOhm\n',Ri)
Ro=ro*Rc/(ro+Rc);
printf('\noutput resistance=%.2f KOhm\n',Ro)