summaryrefslogtreecommitdiff
path: root/3809/CH18/EX18.11/EX18_11.sce
blob: 041e93433aef5dbc5d380f5dccce6ba1ee5d39cc (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
25
26
27
28
29
30
//Chapter 18, Example 18.11
clc
//Initialisation
VCC=10                          //voltage 
R2=3*10**3                    //resistance in ohm
R1=7*10**3                    //resistance in ohm
RE=10**3                    //resistance in ohm
RC=3*10**3                        //resistance in ohm
VBE=0.7                       //base emitter voltage 
av=1                         //small sg voltage gain
RE2=2*10**3                    //resistance in ohm
RC2=4*10**3                        //resistance in ohm


//Calculation
VB=VCC*(R2/(R1+R2))                  //Quiescent base voltage
VE=VB-VBE                            //Quiescent emitter voltage
IE=VE/RE                              //Quiescent emitter current
VC1=VCC-(IE*RC)                      //Quiescent collector voltage
VB2=VC1                              //bias voltage
VE2=VB2-VBE                          //emitter voltage
IC2=VE2/RE2                         //collector current in ampere 
VC2=VCC-(IC2*RC2)                   //collector voltage
Av=(-RC/RE)*(-RC2/RE2)              //overall gain



//Results
printf("Quiescent output voltage = %.1f V\n",VC2)
printf("Overall Voltage Gain = %d",Av)