summaryrefslogtreecommitdiff
path: root/506/CH9/EX9.4/Example9_4.sce
blob: 51fbb4f13e9d53f980fbafef61d3c13380fe8c17 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
clear;
clc;

//Caption: To design a self bias circuit

//Given Data at 25degree C
B1=150;//beta
Ico1=50;//in nA

//Given Data at 65degree C
B2=1200;//beta
Ico2=3;//in micro A

Vbe=0.65;//in mV
Vcc=20;//in V
M=1;
//Assumption: Each factor Ico,B, and Vbe cuses the same percentge change(5%)

//Let Rb/Re=k
//(1+k)*((1200-150)/(1200*150))=0.05

k=((0.05)*((1200*150)/(1200-150)))-1;
disp(k,'Rb/Re=');
//Let us check our assumption

if(M>(1/(1+(k/B1))))
    M=1;
end

//(1+(Rb/Re))*((Ico2-Ico1)/Ic1)=0.05   Since Ico2>>Ico1, we consider only Ico2

Ic1=((1+k)*Ico2)/(0.05*1000);
disp('mA',Ic1,'Ic1=');

//Vbe changes 2.5mV/degree
DVbe=2.5*40;
//Total increment
dVbe=2*DVbe*(10^-3);

//Let l=(Ic1*Re)
l=dVbe/0.05;

Re=l/Ic1;
disp(Re,'Re=');
Rb=k*Re;
disp(Rb,'Rb=');

B=(B1+B2)/2;//beta
V=((Ic1/B)*Rb)+(Vbe)+(((Ic1/B)+Ic1)*Re);
disp('Volts',V,'V=');
R1=(Rb*Vcc)/V;
R2=(R1*V)/(Vcc-V);

disp('ohm',R1,'R1=');
disp('ohm',R2,'R2=');

//end