summaryrefslogtreecommitdiff
path: root/1514/CH2/EX2.8/ch2_2_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '1514/CH2/EX2.8/ch2_2_8.sce')
-rwxr-xr-x1514/CH2/EX2.8/ch2_2_8.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/1514/CH2/EX2.8/ch2_2_8.sce b/1514/CH2/EX2.8/ch2_2_8.sce
new file mode 100755
index 000000000..871d0db67
--- /dev/null
+++ b/1514/CH2/EX2.8/ch2_2_8.sce
@@ -0,0 +1,22 @@
+//chapter 2
+//example 2.8
+//page 52
+clear;
+clc ;
+//given
+T1=25;//degreeC
+T2=65;//degreeC
+deltaT=T2-T1;
+P1=700;//max power dissipationin mw
+DF=5;//derating factor in mW/degree celcius
+VF=0.7;//forward voltage drop across diode
+
+//maximum forward current at 25 degreeC
+If1=P1/VF*10^-3;
+
+//maximum forward current at 65 degreeC
+P2=P1-(deltaT*DF);//mW
+If2=P2/VF;
+
+printf('maximum forward current at 25 degreeC=%d A\n',If1);
+printf(' maximum forward current at 65 degreeC=%d mA',If2);