diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /74/CH12/EX12.5 | |
download | Scilab-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.5')
-rwxr-xr-x | 74/CH12/EX12.5/example5_sce.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/74/CH12/EX12.5/example5_sce.sce b/74/CH12/EX12.5/example5_sce.sce new file mode 100755 index 000000000..3e22dbda6 --- /dev/null +++ b/74/CH12/EX12.5/example5_sce.sce @@ -0,0 +1,12 @@ +//chapter 12
+//example 12.5
+// page 414
+n=12;//12-bit DAC
+R=8*10^-3;// step size
+Vofs=R*(2^n-1);
+disp(Vofs)
+RESpercentage=(R/Vofs)*100
+D=0*2^11+1*2^10+0*2^9+1*2^8+0*2^7+1*2^6+1*2^5+0*2^4+1*2^3+1*2^2+0*2^1+1*2^0;// decimal value of 010101101101
+disp(D)
+Vout=R*D;
+disp(Vout)
\ No newline at end of file |