blob: f7c717c8592501b6499500b650d13c54ec9f417e (
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
|
clear;
clc;
//Example 3.15
Vcc=5;
Rc=1;//KOhm
Vbe=0.7;
b=120;
Vceq=3;
Re=.510;
Icq=(Vcc-Vceq)/(Rc+Re);
printf('\ncollector current=%.3f mA\n',Icq)
Ibq=Icq/b;
printf('\nbase current=%0.3f mA\n',Ibq)
//for bias stable circuit
Rth=0.1*(1+b)*Re;
printf('\nThevenin rquivalent resistance=%.1f KOhm\n',Rth)
//Ibq=(Vth-Vbe)/(Rth+(1+b)*Re)
Vth=Ibq*(Rth+(1+b)*Re)+Vbe;
printf('\nThevenin equivalent voltage=%.2f V\n',Vth)
//Vth=(R2/(R1+R2))*Vcc
//let x=(R2/(R1+R2))
x=Vth/Vcc
//Rth=6050=R1*x
R1=6.05/x;
printf('\nR1=%.1f KOhms\n',R1)
R2=x*R1/(1-x);
printf('\nR2=%.1f KOhms\',R2)
|