blob: 9012a254b453e2f1ae8201d02e9488d8b5d58061 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
clear//
//Variables
V = 25 //Source voltage (in volts)
RB = 99 //Resistance (in kilo-ohm)
RC = 2 //Resistance (in kilo-ohm)
RE = 1 //Resistance (in kilo-ohm)
VCE = 5 //Voltage across C and E (in volts)
//Calculation
//Applying Kirchoff's Voltage law:
//IB*RB + VBE + IE*RE -V = 0
//IB*RB + VBE + (IB + IC)*RE - VCC = 0
//100*IB + IC = 24
//IB + 3*IC = 20
IC = 1976.0/299
IB = 20 - (3 * 6.61)
//Result
printf("\n Value of IB is %0.3f mA.\nValue of IC is %0.3f mA.",IB,IC)
|