summaryrefslogtreecommitdiff
path: root/2459/CH12/EX12.8/Ex12_8.sce
blob: 7b619bc41b1652775c866a96ca79571085212a0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//chapter12
//example12.8
//page245

V_CC=20 // V
R_B=100 // kilo ohm
R_C=1 // kilo ohm
V_BE=0.7 // V
gain_beta=100

// we know that R_B=(V_CC-V_BE-gain_beta*R_C*I_B)/I_B so we get
I_B=(V_CC-V_BE)/(R_B+gain_beta*R_C)

I_C=gain_beta*I_B

V_CE=V_CC-I_C*R_C

printf("operating point is %.3f V, %.3f mA \n",V_CE,I_C)

// the accurate answer is 10.35V,9.65mA but in book it is given as 10.4V,9.6mA