summaryrefslogtreecommitdiff
path: root/135/CH2/EX2.2/EX2.sce
blob: ec101240ec333f9230a0a6610ea181b70e7afa31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Example 2.2: Change in diode voltage
clc, clear
ID1=1; // Let the initial diode current be 1 A
ID2=15*ID1; // Final diode current
VT=25e-3; // Voltage equivalent to temperatue at room temperature in volts
eta=1; // for Ge
deltaVD=eta*VT*log(ID2/ID1); // Change in diode voltage in volts
deltaVD=deltaVD*1e3; // Change in diode voltage in milivolts
disp(deltaVD,"Change in diode voltage (for Ge) (mV) = ");
eta=2; // for Si
deltaVD=eta*VT*log(ID2/ID1); // Change in diode voltage in volts
deltaVD=deltaVD*1e3; // Change in diode voltage in milivolts
disp(deltaVD,"Change in diode voltage (for Si) (mV) = ");