summaryrefslogtreecommitdiff
path: root/74/CH8/EX8.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /74/CH8/EX8.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 '74/CH8/EX8.5')
-rwxr-xr-x74/CH8/EX8.5/example5_sce.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/74/CH8/EX8.5/example5_sce.sce b/74/CH8/EX8.5/example5_sce.sce
new file mode 100755
index 000000000..c3683131d
--- /dev/null
+++ b/74/CH8/EX8.5/example5_sce.sce
@@ -0,0 +1,25 @@
+//chapter8
+//example8.5
+//page301
+T=10*10^-3;//for proper operation of LED which remain ON for 10msec
+C=.22*10^-6//choose
+Vcc=15;Vbe=.7;Vcesat=.2;//given
+Vled=1.4;Iled=20*10^-3;
+//T=1.1RC
+R=T/(1.1*C);
+disp(R)
+Vo=Vcc-2*Vbe-Vcesat;//output of timer
+disp(Vo)
+Rled=(Vo-Vled)/Iled;
+disp(Rled)//this resistance must be in series whit LED
+f=1000;D=95;//for an astable timer
+C1=.01*10^-6;
+R1=%s;R2=%s;
+f=1.44/(R1+2*R2)*C;//frequency--------------eq(1)
+D=(R1+R2)/(R1+2*R2)//duty cycle-------------eq(2)
+R2=.0555*R1;//from eq(2)
+//put it in eq(1)
+R1=144*10^3/(1+2*.0555);
+disp(R1)
+R2=.0555*R1;
+disp(R2) \ No newline at end of file