summaryrefslogtreecommitdiff
path: root/2288/CH5/EX5.11.4/ex5_11_4.sce
blob: a123b801331399e1e4f38a9554bd7d3ff566450a (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
//Exa 5.11.4
clc;
clear;
close;
// Given data
V_CC = 10;// in V
R_C = 3;// in k Ω
R_C= R_C*10^3;// in Ω
bita = 100;
I_CO = 20;// in nA
I_CO = I_CO * 10^-9;// in A
V_BB = 5;// in V
R_B = 200;// in kΩ
R_B= R_B*10^3;// in Ω
V_BE = 0.7;// in V
// Applying KVL to the base circuit, V_BB= I_B*R_B+V_BE
I_B = (V_BB - V_BE)/R_B;// in A
disp(I_B*10^6,"The base current in µA is");
I_C = (bita * I_B) + I_CO;// in A
disp(I_C*10^3,"The collector current in mA is");
I_E = I_C + I_B;// in A
disp(I_E*10^3,"Emitter current in mA is");
V_CE = V_CC - (I_C * R_C);// in V
disp(V_CE,"Collector emitter voltage in V is");