summaryrefslogtreecommitdiff
path: root/3515/CH3/EX3.7/Ex_3_7.sce
blob: 46bb6592e40414a18c112676cff87a38693c1734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Exa 3.7
format('v',6);
clc;
clear;
close;
// Given data 
V_CC= 15;// in V
V_BE= 0.7;// in V
V_CE= 5;// in V
I_C= 5;// in mA
I_C=I_C*10^-3;// in A
bita= 100;
I_B= I_C/bita;// in A
disp(I_B*10^6,"Base current in µA is : ")
//Apply KVL to collector circuit ,  V_CC= (I_C+I_B)*R_C+V_CE
R_C= (V_CC-V_CE)/(I_C+I_B);// in Ω
disp(R_C*10^-3,"The value of R_C in kΩ is : ")
//Apply KVL to base or input circuit,  V_CC= (I_C+I_B)*R_C+V_CE + I_B*R_B
R_B= (V_CC-V_BE-(I_C+I_B)*R_C)/I_B;// in ohm
disp(R_B*10^-3,"The value of R_B in kΩ is : ")