summaryrefslogtreecommitdiff
path: root/2609/CH7/EX7.4
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2609/CH7/EX7.4
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 '2609/CH7/EX7.4')
-rwxr-xr-x2609/CH7/EX7.4/ex_7_4.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2609/CH7/EX7.4/ex_7_4.sce b/2609/CH7/EX7.4/ex_7_4.sce
new file mode 100755
index 000000000..d6b27132c
--- /dev/null
+++ b/2609/CH7/EX7.4/ex_7_4.sce
@@ -0,0 +1,19 @@
+////Ex 7.4
+clc;
+clear;
+close;
+format('v',9);
+fo=2;//kHz
+D=50;//%(duty cycle)
+T=1/fo;//ms
+VCC=10;//V
+tC=D*T/100;//ms
+tD=T-tC;//ms
+C=0.1;//micro F(choosen between 0.01<=C<=1)
+RB=tD*10^-3/(0.69*C*10^-6)/1000;//kohm
+RA=T*10^-3*1.45/(C*10^-6)/1000-RB;//kohm
+disp("Design values are : ");
+disp(C,"Capacitance C(micro F)");
+disp(RA,"Resistance RA(kohm)");
+disp(RB,"Resistance RB(kohm)");
+disp("RA & RB should be equal for 50% duty cycle.")