summaryrefslogtreecommitdiff
path: root/3754/CH22/EX22.11/22_11.sce
blob: bb6dede0824aaf0ea0df8cd7dcbdff37166a685c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clear//

//Variables

VCC = 25.0                        //Source voltage (in volts)
RC = 820.0                        //Collector resistance (in ohm)
RB = 180.0 * 10**3                //Base Resistance (in ohm)
beta = 80.0                       //Common-Emitter current gain
VBE = 0.7                         //Emitter-to-Base Voltage (in volts)
RE = 200.0                        //Emitter resistance (in kilo-ohm)

//Calculation

IC = (VCC -VBE)/(RE + RB / beta)  //Collector current (in milli-Ampere)
VCE = VCC - IC * RC               //Collector-to-Emitter voltage (in volts)    
S = 1 + beta                      //Stability factor   

//Result

printf("\n Collector current is  %0.1f  mA.\nCollector-to-Emitter voltage is  %0.3f  V.\nStability factor is  %0.3f .",IC*10**3,VCE,S)