summaryrefslogtreecommitdiff
path: root/3754/CH14/EX14.13/14_13.sce
blob: b7153d6143cd1ea5ed0c4c6b431e44d9e9aeeaba (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
clear//

//Variables

ICBO = 10 * 10**-3                    //Leakage current (in milli-Ampere)
beta=50;hFE=50;
T2 = 50.0                             //Temperature (in degree Celsius)  
T1 = 27.0                             //Temperature (in degree Celsius)

//Calculation

//Case (a)

IB = 0.25                             //Base current (in milli-Ampere)
IC = beta * IB + (1 + beta)* ICBO     //Value of new collector current (in milli-Ampere)

//Case (b)

ICBO1 = ICBO * 2**((T2 - T1)/10)      //ICBO at 50 degree celsius (in milli-Ampere)
IC1 =  beta * IB + (1 + beta)* ICBO1  //Value of new collector current (in milli-Ampere)

//Result

printf("\n Collector current when IB = 0.25 mA is  %0.3f  mA.\nCollector current at 50 degree Celsius is  %0.2f  mA.",IC,IC1)