blob: c8d7bae0f4ea68708ea74bf0077c5ec106a768d0 (
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
|
//chapter12
//example12.13
//page250
R1=50 // kilo ohm
R2=10 // kilo ohm
Re=1 // kilo ohm
Vcc=12 // V
Vbe1=0.1 // V
Vbe2=0.3 // V
V2=Vcc*R2/(R1+R2) // voltage across R2
// for Vbe=0.1 V
Ic1=(V2-Vbe1)/Re
// for Vbe=0.3 V
Ic2=(V2-Vbe2)/Re
printf("for V_BE=0.1 V, collector current = %.3f mA \n",Ic1)
printf("for V_BE=0.3 V, collector current = %.3f mA \n \n",Ic2)
Vbe_change=100*(Vbe2-Vbe1)/Vbe1
Ic_change=-100*(Ic2-Ic1)/Ic1 // negative sign since Ic decreases
printf("comment : if V_BE changes by %.5f percent, \ncollector current changes by %.3f percent \n",Vbe_change,Ic_change)
printf("so collector current is independent of transistor parameter variations \n")
// the change in V_BE is 200 percent not 300 percent.It is mistake in textbook
|