
Register-Level Programming
183
To read the current source, use the
olDiagReadReg()
command as follows:
OLSTATUS olStatus = olDiagReadReg(m_hDev, I2C_ME
EEPROM_OFFSET_CURRENT_ channelNumber, currentSource, 1);
To update the Sync Bus termination on the DT9857E module, use the
olDiagWriteReg()
command as follows:
OLSTATUS olStatus = olDiagWriteReg(m_hDev, I2C_ME
EEPROM_OFFSET_SYNC_TERMINATION, syncBusTermination, 1);
To read the Sync Bus termination on the DT9857E module, use the olDiagReadReg() command
as follows:
OLSTATUS olStatus = olDiagReadReg(m_hDev, I2C_ME
EEPROM_OFFSET_SYNC_TERMINATION, &syncBusTermination, 1);
The parameters of these commands are defined as follows:
•
m_hDev
is the handle to the device that is being opened.
•
channelNumber
is the A/D channel whose EEPROM location is to be updated.
•
couplingType
is either COUPLING_TYPE_AC (for AC coupling) or COUPLING_TYPE_DC
(for DC coupling)
•
currentSource
is either EXCITATION_CURRENT_SRC_INTERNAL (to enable the internal
excitation source) or EXCITATION_CURRENT_SRC_DISABLED (to disable the excitation
current source).
•
syncBusTermination
is 0x01 for enabling termination; if any other value is specified, Sync
Bus termination is disabled.
Note:
These settings take effect the next time the driver loads (either when the USB plug is
removed and plugged back in or the module is powered up).
Содержание DT9857
Страница 1: ...DT9857 and DT9857E UM 25656 N User s Manual Title Page ...
Страница 4: ......
Страница 10: ...Contents 10 ...
Страница 14: ...About this Manual 14 ...
Страница 15: ...15 1 Overview Hardware Features 16 Supported Software 19 Supported Accessories 22 Getting Started Procedure 24 ...
Страница 25: ...Part 1 Getting Started ...
Страница 26: ......
Страница 40: ...Chapter 2 40 ...
Страница 61: ...61 4 Verifying the Operation of a Module Select the Device 63 Acquire Data from an Analog Output Channel 65 ...
Страница 64: ...Chapter 4 64 ...
Страница 71: ...Part 2 Using Your Module ...
Страница 72: ......
Страница 75: ...Principles of Operation 75 Figure 32 Block Diagram of the DT9857E Module ...
Страница 126: ...Chapter 6 126 ...
Страница 127: ...127 7 Troubleshooting General Checklist 128 Technical Support 130 If Your Module Needs Factory Service 131 ...
Страница 132: ...Chapter 7 132 ...
Страница 140: ...Chapter 8 140 ...
Страница 180: ...Appendix B 180 ...
Страница 181: ...181 C Register Level Programming Writing to the EEPROM Register 182 ...
Страница 184: ...Appendix C 184 ...
Страница 192: ...Index 192 ...