summaryrefslogtreecommitdiff
path: root/3682/CH8/EX8.2/Ex8_2.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3682/CH8/EX8.2/Ex8_2.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3682/CH8/EX8.2/Ex8_2.sce')
-rw-r--r--3682/CH8/EX8.2/Ex8_2.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/3682/CH8/EX8.2/Ex8_2.sce b/3682/CH8/EX8.2/Ex8_2.sce
new file mode 100644
index 000000000..243f10c1d
--- /dev/null
+++ b/3682/CH8/EX8.2/Ex8_2.sce
@@ -0,0 +1,29 @@
+// Exa 8.2
+
+clc;
+clear;
+
+// Given data
+
+// Astable multivibrator
+Ra=6.8*10^3; // Ω
+Rb=3.3*10^3; // Ω
+C=0.1*10^-6; // μF
+
+// Solution
+
+disp("By using Eq. (8.11) on page no. 320 we get, tHigh as");
+
+tHigh=0.69*(Ra+Rb)*C; // Time required to charge from 1/3 Vcc to 2/3 Vcc
+printf(' tHIGH = %.1f mSec. \n',tHigh*1000);
+disp("By using Eq. (8.12) on page no. 320 we get, tLow as");
+
+tLow=0.69*(Rb)*C; // TIme required to discharge from 2/3 Vcc to 1/3 Vcc
+printf(' tLOw = %.2f mSec. \n',tLow*1000);
+
+disp("By using Eq. (8.13) on page no. 320 we get, free running frequency as");
+f= 1.45/((Ra+2*Rb)*C);
+printf(' f = %.2f kHz. \n\n',f/1000);
+
+D= Rb/(Ra+2*Rb);
+printf(' The duty cycle D = %.2f (%d percent).\n ' ,D,round(D*100));