summaryrefslogtreecommitdiff
path: root/226/CH5/EX5.20/example20_sce.sce
blob: 5aa66e07a2baa532c0c0d4d29aed763217ac93b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//chapter 5
//example 5.20
//page 2
printf("\n")
printf("given")
Vcc=10;Rc=1*10^3;Rb=6.8*10^3;Vs=5;
T=125-25

Vbe=T*(1.8*10^-3)
disp(" hFE calculation")
Ic=Vcc/Rc
Ib=(Vs-Vbe)/Rb
hFE=Ic/Ib
disp("when hFE=10")
hFE=10
Ic=hFE*Ib
Vce=Vcc-(Ic*Rc)