summaryrefslogtreecommitdiff
path: root/1850/CH8/EX8.9/exa_8_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '1850/CH8/EX8.9/exa_8_9.sce')
-rwxr-xr-x1850/CH8/EX8.9/exa_8_9.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/1850/CH8/EX8.9/exa_8_9.sce b/1850/CH8/EX8.9/exa_8_9.sce
new file mode 100755
index 000000000..c18c36718
--- /dev/null
+++ b/1850/CH8/EX8.9/exa_8_9.sce
@@ -0,0 +1,18 @@
+// Exa 8.9
+clc;
+clear;
+close;
+//given data
+V_REF= 10;// in V
+MSB2= V_REF/2;// in volt
+disp(MSB2,"The second MSB weight in volt")
+MSB3= V_REF/4;// in volt
+disp(MSB3,"The third MSB weight in volt")
+MSB4= V_REF/8;// in volt
+disp(MSB4,"The forth MSB (or LSB) weight in volt")
+DAC= MSB4;
+disp(DAC,"The resolution of the DAC in volt")
+FullScaleOutput= V_REF+MSB2+MSB3+MSB4;//in volt
+disp(FullScaleOutput,"Full scale output in volt");
+disp("If Rf is reduced to one-forth, each input will be 4 times smaller than the values above. Thus the full scale output will be reduced")
+disp(" in the same ratio and becomes "+string(FullScaleOutput/4)+" volt")