summaryrefslogtreecommitdiff
path: root/2330/CH5/EX5.9/ex5_9.sce
blob: d54ddfd2628683855d5f95796a7bff7c57e8a984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Example 5.9
format('v',5)
clc;
clear;
close;
// given data
V_BE= 0.7;//in V
V_CC= 15;// in V
R_E= 100;// in Ω
R_C= 910;// in Ω
R_B= 430*10^3;// in Ω
bita= 300;// unit less
// The collector current,
I_C= (V_CC-V_BE)/(R_E+R_B/bita);// in A
I_C= I_C*10^3;// in mA
disp(I_C,"The value of I_C in mA is : ");
I_C= I_C*10^-3;// in A
// The collector to emitter voltage,
V_CE= V_CC-I_C*(R_C+R_E);// in V
disp(V_CE,"The value of V_CE in volts is : ")