blob: fbd0af61c69a2d163a9d2209bf4bdfd9d5c8e83f (
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
|
//Chapter 18, Example 18.7
clc
//Initialisation
vcc=15 //voltage
RC=5.6*10**3 //resistance in ohm
RE=1.3*10**3 //resistance in ohm
R2=13*10**3 //resistance in ohm,
R1=82*10**3 //resistance in ohm
pi=3.14 //pi
fc=10 //frequency in hertz
VBE=0.7 //base to emitter voltage
//Calculation
VB=vcc*(R2/(R1+R2)) //Quiescent base voltage
VE=VB-VBE //Quiescent emitter voltage
IE=VE/RE //Quiescent emitter current
IC=IE //Quiescent collector current
VO=vcc-(IC*RC) //Quiescent collector voltage
//Results
printf("Quiescent base voltage = %.2f V\n",VB)
printf("Quiescent emitter voltage = %.2f V\n",VE)
printf("Quiescent emitter current = %.2f mA\n",IE*1000)
printf("Quiescent collector current = %.2f mA\n",IC*1000)
printf("Quiescent collector voltage = %.1f V\n",VO)
|