summaryrefslogtreecommitdiff
path: root/2582/CH6/EX6.6/Ex6_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '2582/CH6/EX6.6/Ex6_6.sce')
-rwxr-xr-x2582/CH6/EX6.6/Ex6_6.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/2582/CH6/EX6.6/Ex6_6.sce b/2582/CH6/EX6.6/Ex6_6.sce
new file mode 100755
index 000000000..6b94fc0fb
--- /dev/null
+++ b/2582/CH6/EX6.6/Ex6_6.sce
@@ -0,0 +1,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");