summaryrefslogtreecommitdiff
path: root/3809/CH18/EX18.1/EX18_1.sce
blob: 2e457afd39934a985785a2b3f8b10c960cb3abdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Chapter 18, Example 18.1
clc
//Initialisation
VCC=10                          //voltage 
VBE=0.7                          //base emitter voltage 
RB=910*10**3                    //resistance in ohm
hfe=100                          //HFE parameter of the transistor
RC=4.7*10**3                    //resistance in ohm


//Calculation
IB=(VCC-VBE)/RB                     //base current in ampere
IC=hfe*IB                            //collector current in ampere
Vq=VCC-(IC*RC)                       //quiescent output voltage


//Results
printf("Quiescent Output Current = %.2f mA\n",IC*1000)
printf("Quiescent Output Voltage = %.1f V\n",Vq)