summaryrefslogtreecommitdiff
path: root/1757/CH11/EX11.4/EX11_4.sce
blob: 4e142f31fa44fa24177401d0c86716411ca5aeec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 ');