blob: 6d6b2a2b94c4e590cacf40321bcad2cd08ef705c (
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
|
clear;
clc;
//Example 8.11
R1=2;//KOhm
R2=R1;
Rl=.1;//KOhm
b=60;
Vbe=0.6;
Veb=0.6;
V1=15;
V2=V1;
iR1=(V1-Vbe)/R1;
//iR1=iR2=iE1=iE2
printf('\niR1=%.2f mA\n',iR1)
vo=10;
io=vo/Rl;
printf('\noutput current=%.3f mA\n',io)
iB3=100/61;
printf('\niB3=%.3fmA\n',iB3)
iR1=(V1-(10+Vbe))/R1;
printf('\ncurrent in R1=%.3f mA\n',iR1)
iE1=iR1-iB3;
printf('\niE1=%.3f mA\n',iE1)
iB1=iE1/(1+b);
iB1=iB1*1000;//micro A
printf('\niB1=%.3f microA\n',iB1)
iE2=(10-0.6+15)/R1;
printf('\niE2=%.3f mA\n',iE2)
iB2=iE2/(1+b);
iB2=iB2*1000;
printf('\niB2=%.3f microA\n',iB2)
Ii=iB2-iB1;
printf('\ninput current=%.3f microA\n',Ii)
Ii=Ii*0.001;//mA
Ai=io/Ii;
printf('\ncurrent gain=%.2f\n',Ai)
Ai=(1+b)*R1/(2*Rl);
printf('\npredicted current gain=%.2f\n',Ai)
|