blob: f5cd260598e9d5215e09da9774343eb68e147f3d (
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
|
//chapter15
//example15.4
//page325
Vcc=20 // V
Vbe=0.7 // V
Rb=1d3 // ohm
Rc=20 // ohm
gain=25
Ib=(Vcc-Vbe)/Rb
Ic=Ib*gain
Vce=Vcc-Ic*Rc
ib_peak=10d-3
ic_peak=gain*ib_peak
Po_ac=ic_peak^2*Rc/2
P_dc=Vcc*Ic
eta=(Po_ac/P_dc)*100
printf("operating point = %.3f V and %.3f mA \n",Vce,Ic*1000)
printf("output power = %.3f W \n",Po_ac)
printf("input power = %.3f W \n",P_dc)
printf("collector efficiency = %.3f percent \n",eta)
|