summaryrefslogtreecommitdiff
path: root/199/CH6/EX6.13
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /199/CH6/EX6.13
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 '199/CH6/EX6.13')
-rwxr-xr-x199/CH6/EX6.13/Example_6_13.sce14
-rwxr-xr-x199/CH6/EX6.13/result_ex_6_13.txt2
2 files changed, 16 insertions, 0 deletions
diff --git a/199/CH6/EX6.13/Example_6_13.sce b/199/CH6/EX6.13/Example_6_13.sce
new file mode 100755
index 000000000..45ca1bd59
--- /dev/null
+++ b/199/CH6/EX6.13/Example_6_13.sce
@@ -0,0 +1,14 @@
+// Chapter6
+// Page.No-222, Figure.No-6.20
+// Example_6_13
+// Range of output voltage
+// Given
+clear;clc;
+R1=1*10^3;Rf=2.7*10^3;
+Vref=2;
+Io=0; // Since all the binary inputs D0 to D7 are logic zero
+Vo_min=Io*Rf; // Minimum output voltage
+printf("\n Minimum output voltage is = %.f V \n",Vo_min)
+Io=(Vref/R1)*(1/2+1/4+1/8+1/16+1/32+1/64+1/128+1/256);
+Vo_max=Io*Rf; // Maximum output voltage
+printf("\n Maximum output voltage is = %.2f V \n",Vo_max) \ No newline at end of file
diff --git a/199/CH6/EX6.13/result_ex_6_13.txt b/199/CH6/EX6.13/result_ex_6_13.txt
new file mode 100755
index 000000000..507e93367
--- /dev/null
+++ b/199/CH6/EX6.13/result_ex_6_13.txt
@@ -0,0 +1,2 @@
+* Minimum output voltage is = 0 V
+* Maximum output voltage is = 5.38 V \ No newline at end of file