summaryrefslogtreecommitdiff
path: root/1757/CH11/EX11.4/EX11_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '1757/CH11/EX11.4/EX11_4.sce')
-rwxr-xr-x1757/CH11/EX11.4/EX11_4.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1757/CH11/EX11.4/EX11_4.sce b/1757/CH11/EX11.4/EX11_4.sce
new file mode 100755
index 000000000..4e142f31f
--- /dev/null
+++ b/1757/CH11/EX11.4/EX11_4.sce
@@ -0,0 +1,13 @@
+//Example11.4 // determine the number of bit required to design a 4-bit D/A converter
+clc;
+clear;
+close;
+VFS = 5 ;
+Resolution = 10*10^-3 ; // A
+
+// the resolution of 4-bit D/A converter is defined as
+// Resolution = VFS/(2^N-1) ;
+N = (VFS/Resolution)+1 ;
+N = log10(N)/log10(2);
+disp('the number of bit required to design a 4-bit D/A converter is = '+string(N)+ ' = 9 ');
+