summaryrefslogtreecommitdiff
path: root/569/CH6/EX6.31/6_31.sci
blob: e5b69f53c2cd87d384739252ee26512d3a2d0802 (plain)
1
2
3
4
5
6
7
8
9
// Calculating the value of resistance and smallest output current
clc;
ER=10;
n=6;
Imax=10*10^-3;
R=ER*((2^n)-1)/[(2^(n-2))*Imax];
disp(R,'resistance (ohm)=')
LSB=ER/[(2^(n-1))*R];
disp(LSB,'smallest output current (A)')