blob: 5331dcb1dc558f6ecdf987797f3d1f98b1dc4c4d (
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
31
32
33
34
35
36
37
38
39
40
|
//Chapter 18, Example 18.8
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
hfe1=100
hfe2=400
//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
re=1/(40*IE)
av=-RC/re //voltage gain
rp=(R1*R2)/(R1+R2)
//if hfe=100
hie1=hfe1*re
ri1=(rp*hie1)/(rp+hie1)
//if hfe=400
hie2=hfe2*re
ri2=(rp*hie2)/(rp+hie2)
ro=RC
//Results
printf("Small Signal Voltage Gain = %d\n",av)
printf("Small Signal Input Resistance is %d kOhm to %.1f kOhm\n",round(ri1/1000),(ri2/1000))
printf("Small Signal Output Resistance is %.1f kOhm\n",(RC/1000))
|