blob: eca43d709a2a811729c0c15a02dadeb20421f31e (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
clear;
clc;
//Example 1.2
//Caption : Program to find transistor currents for npn transistor after adding resistor to circuit.
//Given Values
//Silicon Transistor
B=100; //Beta
Ico=20; //in nA
Rc=3;
Ico=20; //in nA
Rb=200;
Re=2;
Vbb=5; //in V
Vcc=10; //in V
Vbe=0.7; //in Active region
//Ico<<Ib Assuming
//Itot=Ib+Ic=Ib+B*Ib=(B+1)*Ib
//Applying KVL to base circuit
//Vbb+Rb*Ib+Vbe+Re*Itot=0
Ib=(Vbb-Vbe)/(Rb+(Re*(B+1))); //in mA
Ic=B*Ib; //in mA
//Hence Ico<<Ib
//To verify the Active region Assumption
//Vcc+Rc*Ic+Vcb+Vbe=0
Vcb=(-Rc*Ic)+Vcc-Vbe-(Re*(B+1)*Ib); //in V
disp('V',Vcb,'Vcb = ');
if(Vcb>0)
disp('Positive value of Vcb represents reversed biased collector junction and Transistor in active region');
end
disp('mA',Ic,'Current in transistor(Ic) is ');
disp('mA',Ib,'Current in transistor(Ib) is ');
//End
|