summaryrefslogtreecommitdiff
path: root/3682/CH2/EX2.14/Ex2_14.sce
blob: 26ad536d569012958011ca69d5355b29ae1a0745 (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
// Exa 2.14

clc;
clear;

// Given data

// Fig. 2.25 shows circuit for current example
Vo = 6; // Volts
B = 200;
R1 =15; // kΩ
R2 = 2.8; // kΩ
Vcc = 12; // volts
Vbe = 0.7; // Volts

// Solution

Iref = (Vcc-Vbe)/R1;
I1 = Vbe/R2;

// At node A- Iref = Ic1 + 2IB + I1;
 //           Iref = Ic1*(1+2/B)+I1;
  // Therefore; we get Ic1 as-
Ic1 = (Iref-I1)/(1+2/B);
printf(' The value of Ic1 = %.3f mA.\n',Ic1 );
printf('  The value of Ic2 = Ic1 due to mirror effect.');
 // by KVL to outer loop we get Rc value
 // 12V = Ic2*Rc +Vo;
Rc = (Vcc-Vo)/Ic1;
printf('\n  The value of Rc = %d kΩ. \n',Rc);