summaryrefslogtreecommitdiff
path: root/2330/CH6/EX6.3/ex6_3.sce
blob: 54300619750b44f10883a9eaa6eebcdc5dbfa3e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Example 6.3
format('v',6)
clc;
clear;
close;
// given data
R= 10*10^3;// in Ω
V_CC= 15;// in V
V_BE= 0.7;// in V
Vt= 25*10^-3;// in V
Vp= 1*10^-3;// in V
I= (V_CC-V_BE)/R;// in A
r_ac= Vt/I;// in Ω
// The total current through diode 
Ip= Vp/r_ac;// in A
Ip= Ip*10^6;// in µA
disp(Ip,"The total current through diode in µA is : ")