summaryrefslogtreecommitdiff
path: root/1223/CH3/EX3.14/Ex3_14.sce
blob: 2d681a7bf253846cd9662f6cacdf59fee8d835db (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
35
36
clear;
clc;
//Example 3.14
R1=56;
R2=12.2;
Rc=2;
Re=.4;
Vcc=10;
Vbe=0.7;
b=100;
//fig.3.53(b)
Rth=R2*R1/(R1+R2);
printf('\nThevenin rquivalent resistance=%0.1f KOhm\n',Rth)
Vth=(R2/(R1+R2))*Vcc;
printf('\nThevenin equivalent voltage=%0.2f V\n',Vth)
Ibq=(Vth-Vbe)/(Rth+(1+b)*Re);
printf('\nbase current=%f mA\n',Ibq)
Icq=b*Ibq;
printf('\ncollector current=%.3f mA\n',Icq)
Ieq=(1+b)*Ibq;
printf('\nemitter current=%.2f mA\n',Ieq)
Vceq=Vcc-Icq*Rc-Ieq*Re;
printf('\ncollector emitter voltage=%.3f V\n',Vceq)
b=[50,100,150]
for x=b
Ibq=(Vth-Vbe)/(Rth+(1+x)*Re);
disp("Ibeq,Iceq,Ieq,Vceq")
disp(Ibq)
Icq=x*Ibq;
disp(Icq)
Ieq=(1+x)*Ibq;
disp(Ieq)
Vceq=Vcc-Icq*Rc-Ieq*Re;
disp(Vceq)
disp("")
end