diff options
Diffstat (limited to '911/CH10/EX10.8')
-rw-r--r-- | 911/CH10/EX10.8/ex_10_8.pdf | bin | 0 -> 113121 bytes | |||
-rw-r--r-- | 911/CH10/EX10.8/ex_10_8.sce | 22 |
2 files changed, 22 insertions, 0 deletions
diff --git a/911/CH10/EX10.8/ex_10_8.pdf b/911/CH10/EX10.8/ex_10_8.pdf Binary files differnew file mode 100644 index 000000000..df9e56d42 --- /dev/null +++ b/911/CH10/EX10.8/ex_10_8.pdf diff --git a/911/CH10/EX10.8/ex_10_8.sce b/911/CH10/EX10.8/ex_10_8.sce new file mode 100644 index 000000000..fa176e875 --- /dev/null +++ b/911/CH10/EX10.8/ex_10_8.sce @@ -0,0 +1,22 @@ +//example 10.8//
+clc
+//clears the screen//
+clear
+//clears all existing variables//
+vt=.001;
+//voltage threshold in V//
+aiv=4.012;
+//analog input voltage in V//
+qe=10/2/1000;
+//quantization error = 1/2LSB in (V)//
+aiv2=aiv+vt;
+//analog input voltage at other input//
+o=aiv2-qe;
+//D/A converter voltage//
+n=o/(10*10^-3);
+//number of steps//
+n1=round(n);
+//rounding off for number of steps//
+dob=dec2bin(n1);
+//digital output in binary equivalent//
+disp(dob,'Digital output in digital form =')
\ No newline at end of file |