blob: 5fe2a10597099821c67c539a9296b52da1a31077 (
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
26
27
28
29
30
31
32
33
|
// Exa 1.29
clc;
clear;
close;
format('v',6)
// Given data
Eta = 1;
V_T = 0.026;
// I = Io*( (%e^(V/(Eta*V_T))) - 1 ) and I = -Io;
// I = -0.9*Io;
// -0.9*Io = Io*( (%e^(V/(Eta*V_T))) - 1 );
V = Eta*V_T*log(0.1);// in V
V = V * 10^3;// in mV
disp(V,"The voltage in mV is");
V = 0.05;// in V
// The ratio of diode current with a forward bias to current with a reverse bias
If_by_Ir= ( (%e^(V/V_T))-1 )/( (%e^(-V/V_T))-1 );
disp(If_by_Ir,"The ratio of diode current with a forward bias to current with a reverse bias is");
Io = 10;// in µA
V = 0.1;// in V
// The value of I1
I1 = Io*( (%e^(V/V_T))-1 );// in µA
disp(I1,"The value of I1 in µA is");
V = 0.2;// in V
// The value of I2
I2 = Io*( (%e^(V/V_T))-1 );// in µA
I2 = I2 * 10^-3;// in mA
disp(I2,"The value of I2 in mA is");
V = 0.3;// in V
// The value of I3
I3 = Io*( (%e^(V/V_T))-1 );// in µA
I3 = I3 * 10^-6;// in A
disp(I3,"The value of I3 in A is");
|