summaryrefslogtreecommitdiff
path: root/74/CH12/EX12.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /74/CH12/EX12.3
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/CH12/EX12.3')
-rwxr-xr-x74/CH12/EX12.3/example3_sce.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/74/CH12/EX12.3/example3_sce.sce b/74/CH12/EX12.3/example3_sce.sce
new file mode 100755
index 000000000..da3d02cdc
--- /dev/null
+++ b/74/CH12/EX12.3/example3_sce.sce
@@ -0,0 +1,12 @@
+// chapter 12
+// example 12.3
+// page 414
+n=8;// 8 bit DAC
+R=20*10^-3;//resolution V/LSB
+inpt=10000000;
+Vofs=R*(2^n-1);
+disp(Vofs)
+D=1*2^7+0*2^6+0*2^5+0*2^4+0*2^3+0*2^2+0*2^1+0*2^0;
+disp(D)
+Vout=R*D;//output voltage
+disp(Vout) \ No newline at end of file