Writing To Eeprom To Change The High Power Mode - Data Translation DT9837A User Manual

Dt9837 series high-performance, multifunction data acquisition modules for the usb (ver. 2.0 or ver. 1.1) bus.
Table of Contents

Advertisement

Appendix C
Programmatically, you can read this EEPROM location using the olDiagReadReg() function,
and write to the EEPROM location using the olDiagWriteReg() function. To change a single
bit requires a read/modify/write operation.
The following constants define the location of the registers in EEPROM:
#define EEPROM_MEM_BASE 0x100000
const ULONG EEPROM_OFFSET_SETTINGS = 15;
This example shows how to read the current source and coupling type from the EEPROM:
ULONG olddata;
OLSTATUS
This example shows how to write values to EEPROM to change the current source and
coupling type:
ULONG newdata;
OLSTATUS
EEPROM_OFFSET_SETTINGS, newdata, 1);
Note: The data must be read and written as a 32-bit value, but only the lower 8-bits of this
value is actually transferred.

Writing to EEPROM to Change the High Power Mode

For the high power mode setting, you can keep high power mode always turned on or turn off
high power mode (the default setting) by writing to the
EEPROM_OFFSET_POWER_OVERRIDE_REG (0x000E) control in the EEPROM.
Turning off the high-power circuitry (writing a value of 0 to this control) helps to conserve
power, which may be useful when the module is used with a laptop. However, to ensure that
the module is warmed up and that any settling time errors of the IEPE current source are
minimized, it is recommended that you keep the module's high-power circuitry always
turned on by writing a value of 1 to this control.
Programmatically, you can read the EEPROM location using the olDiagReadReg() function,
and write to the EEPROM location using the olDiagWriteReg() function. To change a single
bit requires a read/modify/write operation.
The following constants define the location of the registers in EEPROM:
#define EEPROM_MEM_BASE 0x100000
#define EEPROM OFFSET_POWER_OVERRIDE_REG 0x000E
138
olStatus = olDiagReadReg(m_hDev, EEPROM_MEM_BASE +
EEPROM_OFFSET_SETTINGS, &olddata, 1);
olStatus = olDiagWriteReg(m_hDev, EEPROM_MEM_BASE +

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dt9837Dt9837bDt9837 seriesDt9837c

Table of Contents