summaryrefslogtreecommitdiff
path: root/506/CH9/EX9.2/Example9_2.sce
blob: fe980b5750d873f6c76872f7a9feec67a780ba41 (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
clear;
clc;

//Caption:To find resistances in 2N335 transistor
//Given Data
Rc=4;//in K
Vcc=20;//in V
Vce=10;//in V
Ic=2;//in mA
//Ic varies from 1.75 to 2.25 and B(beta) varies from 36 to 90

Re = (Vcc-Vce)/Ic - Rc;

//S=delta Ic/delta B
Ic2=2.25;//in mA
Ic1=1.75;//in mA
B2=90;
B1=36;
S=(Ic2-Ic1)/(B2-B1);
S2=(S*36*(1+90))/1.75;
disp(S2,'S2=','K',Re,'Re=','B2=90');

//S2=(1+B)*(1+(Rb/Re))/(1+B+(Rb/Re))
Rb=(S2-1)*(1+B2)*Re/(1+B2-S2);
disp('K',Rb,'Rb=');

Vbe=0.65;//in V
disp('V',Vbe,'We know that Vbe = ');

V = Vbe + ((Rb+Re*(1+B1))*Ic1/B1);
disp('Volts',V,'V = ');

R1=Rb*Vcc/V;
R2=R1*V/(Vcc-V);
disp('K',R1,'R1=');
disp('K',R2,'R2=');

//end