summaryrefslogtreecommitdiff
path: root/2459/CH12/EX12.16/Ex12_16.sce
blob: fc7a9eb5a13f595c11595f68fcf8bba1833bd2f0 (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
//chapter12
//example12.16
//page252

alpha=0.985
V_BE=0.3 // V
V_CC=16 // V
V_CE=6 // V
I_C=2 // mA
R_E=2 // kilo ohm
R2=20 // kilo ohm

gain_beta=alpha/(1-alpha)
I_B=I_C/gain_beta

V_E=I_C*R_E
V2=V_BE+V_E
V1=V_CC-V2

I1=V2/R2
R1=V1/I1

V_RC=V_CC-V_CE-V_E
R_C=V_RC/I_C

printf("R1 = %.3f kilo ohm \n",R1)
printf("collector resistance = %.3f kilo ohm \n",R_C)