summaryrefslogtreecommitdiff
path: root/2582/CH6/EX6.6/Ex6_6.sce
blob: 6b94fc0fb1af80edb060872ed2440b047f1f7e15 (plain)
1
2
3
4
5
6
7
8
9
10
//Ex 6.6
clc;clear;close;
n=12;//no. of bits
Eoff=0.05;//%//maximum offset error
Vref=10.24;//V
Voffset=Eoff/100*Vref;//V
disp(round(Voffset*1000),"(a) Offset voltage(mV)");
delVo=Vref/2^n;//V/bit
Voff_dash=Voffset/delVo;//in terms of LSB
disp(round(Voff_dash),"(b) Offset voltage in terms of LSB");