diff options
Diffstat (limited to '911/CH10/EX10.9/ex_10_9.sce')
-rw-r--r-- | 911/CH10/EX10.9/ex_10_9.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/911/CH10/EX10.9/ex_10_9.sce b/911/CH10/EX10.9/ex_10_9.sce new file mode 100644 index 000000000..c0db252ad --- /dev/null +++ b/911/CH10/EX10.9/ex_10_9.sce @@ -0,0 +1,17 @@ +//example 10.9//
+clc
+//clears the screen//
+clear
+//clears all existing variables//
+aiv=4.365;
+//analog input voltage in V//
+r=10*10^-3;
+//resolution//
+s=aiv/r;
+//no of steps//
+sr=round(s);
+//rounding off//
+fi=sr-1;
+//in case of successive approximation type A/D converter, the final analouge output of its D/A converter portion always settles at a value below the analogue input voltage to be digitized within the resolution of the converter//
+d=dec2bin(fi)
+disp(d,'Digital output for an analog input = ')
\ No newline at end of file |