5-4
Reading the Converted Data
The converted data is read from the register at BA + 0. This is a 16-bit register with the A/D data in the upper
12 bits. The bottom 4 bits have no meaning and should be diregarded.
To convert the data to a voltage value, you must scale the digital value properly. First you must shift the
data right 4 places. This can be done by either using a shift right command or by dividing the value by 16.
Once the data is shifted, it must be multiplied by a scaling factor to convert the value to a voltage. This
scaling factor will change depending on the input range you have selected and the gain you have installed in
the resistor configurable gain. The formulas for calculating voltage are shown below.
+/- 5 volt range:
(A/D
Value
-
2048)
bits
*
(10
volts
/
4096
bits)
=
input
volts
For example, if the A/D reading is 1024, the analog input voltage is calculated as follows:
(1024
-
2048)
bits
*
2.4414
mV/bit
=
-2.5
volts.
+/- 10 volt range:
(A/D
Value
-
2048)
bits
*
(20
volts
/
4096
bits)
=
input
volts
For example, if the A/D reading is 1024, the analog input voltage is calculated as follows:
(1024
-
2048)
bits
*
4.8828
mV/bit
=
-5.0
volts.
0 to +10 volt range:
(A/D
Value)
bits
*
(10
volts
/
4096
bits)
=
input
volts
For example, if the A/D reading is 1024, the analog input voltage is calculated as follows:
(1024)
bits
*
2.4414
mV/bit
=
+2.5
volts.
The key digital codes and their input voltage values are given in the following table.
' ' ' ' ' '
'
'
'
'
'
'
'
'
'
'
%LW
%LW
%LW
%LW
%LW
%LW
%LW
%LW
%LW
%LW
%LW
%LW
;
;
;
;
Summary of Contents for DM6210
Page 2: ......
Page 9: ...i 1 INTRODUCTION...
Page 10: ...i 2...
Page 14: ...1 2...
Page 22: ...1 10...
Page 24: ...2 2...
Page 28: ...2 6...
Page 30: ...3 2...
Page 34: ...4 2...
Page 44: ...5 2...
Page 48: ...5 6...
Page 50: ...6 2...
Page 56: ...6 8...
Page 58: ...7 2...
Page 61: ...8 1 CHAPTER 8 DIGITAL I O This chapter explains the digital I O circuitry on the DM6210...
Page 62: ...8 2...
Page 66: ...9 2...
Page 68: ...9 4...
Page 70: ...10 2...
Page 74: ...10 6...
Page 75: ...A 1 APPENDIX A DM6210 SPECIFICATIONS...
Page 76: ...A 2...
Page 78: ...A 4...
Page 79: ...B 1 APPENDIX B CN3 CONNECTOR PIN ASSIGNMENTS...
Page 80: ...B 2...
Page 82: ...B 4...
Page 83: ...APPENDIX C COMPONENT DATA SHEETS C 1...
Page 84: ......
Page 85: ...Intel 82C54 Programmable Interval Timer Data Sheet Reprint...
Page 86: ......
Page 88: ...D 2...
Page 91: ...DM6210 User Settings Base I O Address hex decimal IRQ Channel...