blob: 6be81dd20ff5624b355b821d89cdae1b7c74ea06 (
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
|
clear;
clc;
//Caption:Output Levels for a given input in a silicon transistor
//Given Data
R1=15;//in K
R2=100;//in K
//R1 and R2 are voltages at base which acts as potential divider
Rc=2.2;//voltage at collector in K
hfe=30;
//For vi=0
Vb = (R1/(R1+R2))*(-12);//Voltage at base in V
disp('V',Vb,'Vb=');
//A bias of 0V is required to cut off a silicon emitter junction transistor given in table
Vo = 0;//in V
disp('Vo',Vo,'Vo = ');
//For vi=12
vi=12;//in V
//Few standard values for silicon transistor
Vbesat=0.8;//in V
Vcesat=0.2;//in V
//Assumption: Q is in saturation region
Ic = (vi-Vcesat)/Rc;//Collector Current
disp('mA',Ic,'Ic=');
Ibmin=(Ic/hfe);//Mininmum current at the base
disp('mA',Ibmin,'Ibmin=');
I1=(vi-Vbesat)/R1;//Current in R1
I2=(Vbesat-(-12))/100;//Current in R2
Ib = I1-I2;//Base current
disp('mA',Ib,'Ib=');
if(Ib>Ibmin)
disp('Since Ib>Ibmin , The transistor is in saturation region and drop is Vcesat');
vo=Vcesat;
disp('V',vo,'vo=');
end
//end
|