You are on page 1of 4

%input parameters

Re = 220 % emitter resistance in ohms


R1 = 10000 % voltage divider resistance R1 in ohms
R2 = 2200 % Voltage divider resistance R2 in ohms
hFE = 100 % DC current gain from data sheet
Rc = 1000 %Collector resistance in ohms
Vcc = 9 % Power supply voltage in volts
fprintf('Given parameters\n');
fprintf('Resistor R1 =%d ohms\n',R1);
fprintf('Resistor R1 =%d ohms\n',R2);
fprintf('Collector Resistor R1 =%d ohms\n',Rc);
fprintf('Emitter Resistor R1 =%d ohms\n',Re);
fprintf('first stage\n');
%Dc analysis
%setup matrix equation
R = [-(hFE+1)*Re R2+(hFE+1)*Re; R1 R2];
V = [0.7 ; Vcc];
%solve matrix equation
I = inv(R)*V;
I1 = I(1); % Current in resistor R1
I2 =I(2); % Current in resistor R2
%Compute transistor currents and voltages
Ib = I1 - I2 % base current
Ic = hFE*Ib %Collector current
Ie= Ib + Ic % Emitter current
Ve = Ie*Re %Emitter voltage
Vb = Ve + 0.7 %base voltage
Vc = Vcc - Ic*Rc
Vbunloaded = Vcc*R2/(R1 + R2) %base voltage with Bipolar junction transistor
removed
% Results
fprintf('base voltage =%.2f volts\n',Vb);
fprintf('Unloaded base voltage =%.2f volts\n',Vbunloaded);
fprintf('collector voltage =%.2f volts\n',Vc);
fprintf('Emitter voltage =%.2f volts\n',Ve);
fprintf('base current =%.2f volts\n',Ib*1e6);
fprintf('collector current =%.2f volts\n',Ic*1000);
fprintf('Emitter current =%.2f volts\n',Ie*1000);

>> analy

Re =

220
R1 =

10000

R2 =

2200

hFE =

100

Rc =

1000

Vcc =

9
Given parameters

Resistor R1 =10000 ohms

Resistor R1 =2200 ohms

Collector Resistor R1 =1000 ohms

Emitter Resistor R1 =220 ohms

first stage

Ib =

3.8419e-05

Ic =

0.0038

Ie =

0.0039

Ve =

0.8537
Vb =

1.5537

Vc =

5.1581

Vbunloaded =

1.6230

base voltage =1.55 volts

Unloaded base voltage =1.62 volts

collector voltage =5.16 volts

Emitter voltage =0.85 volts

base current =38.42 volts

collector current =3.84 volts

Emitter current =3.88 volts

>>

You might also like