summaryrefslogtreecommitdiff
path: root/2045/CH4/EX4.27/Ex4_27.sce
blob: a5c0d805957a72c0763da837c85f557550f50b1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//example 27
clear
beta1=99;
stability=5;
vbe=0.2;//volt
colres=2.5*10^3;//ohm
vce=6;//volt
ven=5.5;//volt
vcc=15;//volt
vcn=vce+ven;
colvol=vcc-vcn;//voltage across collector resistance
ic=colvol/colres;
ib=ic/beta1;
colre1=ven/ic;
rb=stability*colre1/(1-(stability/(1+beta1)));//correction in the book taken collector resistance as 3.13*10^3ohm but it is 3.93*10^3ohm
v1=(ib*rb)+(vbe)+((ib+ic)*colre1);
r=rb*vcc/v1;
r1=r*v1/(vcc-v1);
disp("resistance   =   "+string((colre1))+"ohm");
disp("resistance r1    =   "+string((r))+"ohm");
disp("resistance r2   =   "+string((r1))+"ohm");