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
;
;
;
;
Содержание DM6210
Страница 2: ......
Страница 9: ...i 1 INTRODUCTION...
Страница 10: ...i 2...
Страница 14: ...1 2...
Страница 22: ...1 10...
Страница 24: ...2 2...
Страница 28: ...2 6...
Страница 30: ...3 2...
Страница 34: ...4 2...
Страница 44: ...5 2...
Страница 48: ...5 6...
Страница 50: ...6 2...
Страница 56: ...6 8...
Страница 57: ...7 1 CHAPTER 7 TIMER COUNTERS This chapter explains the 8254 timer counter circuits on the DM6210...
Страница 58: ...7 2...
Страница 61: ...8 1 CHAPTER 8 DIGITAL I O This chapter explains the digital I O circuitry on the DM6210...
Страница 62: ...8 2...
Страница 65: ...9 1 CHAPTER 9 EXAMPLE PROGRAMS This chapter discusses the example programs included with the DM6210...
Страница 66: ...9 2...
Страница 68: ...9 4...
Страница 70: ...10 2...
Страница 74: ...10 6...
Страница 75: ...A 1 APPENDIX A DM6210 SPECIFICATIONS...
Страница 76: ...A 2...
Страница 78: ...A 4...
Страница 79: ...B 1 APPENDIX B CN3 CONNECTOR PIN ASSIGNMENTS...
Страница 80: ...B 2...
Страница 82: ...B 4...
Страница 83: ...APPENDIX C COMPONENT DATA SHEETS C 1...
Страница 84: ......
Страница 85: ...Intel 82C54 Programmable Interval Timer Data Sheet Reprint...
Страница 86: ......
Страница 88: ...D 2...
Страница 90: ...D 4 RTD Embedded Technologies Inc 103InnovationBlvd StateCollegePA16803 0906 USA Ourwebsite www rtd com...
Страница 91: ...DM6210 User Settings Base I O Address hex decimal IRQ Channel...