summaryrefslogtreecommitdiff
path: root/2582/CH6/EX6.3/Ex6_3.sce
blob: 04c423d74667312eb69e7dc87bea585dfc4679eb (plain)
1
2
3
4
5
6
7
8
9
10
11
//Ex 6.3
clc;clear;close;
format('v',5)
n=8;//no. of bits
Range=0:10;//range
LSB=max(Range)/2^n;//V
MSB=max(Range)/2^0;//V
VFS=MSB-LSB;//V
disp(LSB*1000,"LSB(mV)");
disp(MSB,"MSB(V)");
disp(VFS,"VFS(V)");