summaryrefslogtreecommitdiff
path: root/2885/CH3/EX3.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2885/CH3/EX3.5
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2885/CH3/EX3.5')
-rwxr-xr-x2885/CH3/EX3.5/ex3_5.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/2885/CH3/EX3.5/ex3_5.sce b/2885/CH3/EX3.5/ex3_5.sce
new file mode 100755
index 000000000..acc9bbb12
--- /dev/null
+++ b/2885/CH3/EX3.5/ex3_5.sce
@@ -0,0 +1,24 @@
+//Find current through diode
+clear;
+clc;
+//soltion
+//given
+Vt=0.3;//V//Threshold voltage
+rf=25;//ohm// average resistance
+
+//assuming it to be ideal
+//from fig 3.19
+Vaa=10;//V//supply
+R1=45;//ohm
+R2=5;//ohm
+Vab=Vaa*R2/(R1+R2);
+//Vab>Vt therefore diode is forward bias and no current flow through R2
+Idi=Vaa/R1; //for ideal
+printf("The diode current (for ideal) is %.0f mA\n",Idi*1000);
+
+//assuming it to be real
+//Thevenin's equivalent circuit parameters of fig 3.19
+Vth=Vaa*R2/(R1+R2);
+Rth=R1*R2/(R1+R2);
+Idr=(Vth-Vt)/(Rth+rf); //for real
+printf("The diode current (for real) is %.1f mA",Idr*1000);