summaryrefslogtreecommitdiff
path: root/135/CH2/EX2.4/EX4.sce
blob: 198f83e2cfde7ef9eb684ef315b58193336710dc (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
// Example 2.4 (a) Current
//             (b) Current
//             (C) Current
clc, clear
IS=10e-6; // Reverse saturation current in amperes
eta=1; // for Ge
VT=25e-3; // Voltage equivalent to temperatue at room temperature in volts

disp("Part (a)");
VD=-24; // Reverse bias in volts
ID=IS*(%e^(VD/(eta*VT))-1); // Current in amperes
ID=ID*1e6; // Current in micro-amperes
disp(ID,"Current (μA) = ");

disp("Part (b)");
VD=-0.02; // Reverse bias in volts
ID=IS*(%e^(VD/(eta*VT))-1); // Current in amperes
ID=ID*1e6; // Current in micro-amperes
disp(ID,"Current (μA) = ");

disp("Part (c)");
VD=0.3; // Forward bias in volts
ID=IS*(%e^(VD/(eta*VT))-1); // Current in amperes
disp(ID,"Current (A) = ");