3 setvoltages, 4 readeeprom, 5 writeeeprom – Sensoray 2600 User Manual
Page 52

2600 Family Instruction Manual
47
Chapter 8 : Model 2612 Strain Gauge/RTD Module
(s[3][2]),(s[3][3]),
(n[0]),(n[1]),(n[2]),(n[3]),
s:
Each of these four 32-bit status/data values
has the following structure:
The three most significant bits of a status/data
value indicates the data polarity and conversion
state. The remaining 29 bits are the conversion
result.
Bits 31 and 30 are always LOW.
SN:
bit 29 is the conversion result sign indicator.
If VIN is >0, this bit is HIGH. If VIN is <0, this
bit is LOW.
Data:
bit 28 is the most significant bit (msb) of
the result. This bit, in conjunction with Bit 29,
also indicates an underrange or overrange
condition. If bits 29 and 28 are both HIGH, the
channel’s differential input voltage is above +FS
(full scale). If bits 29 and 28 are both LOW, the
input voltage is below –FS.
8.7.3 SetVoltages
Function
Programs the output power voltages for all four
channels.
Opcode
0x02
Command
(Volts<7:0>)
Volts
is an 8-bit value, passed LSB first, that is
composed of bit fields that specify the output
voltages. It has the following structure:
Response
none
Notes
Once set, the
output voltages
apply until they are
changed by another SetVoltanges action or a
module reset occurs.
After a module reset, all power outputs default to
1.25V output.
8.7.4 ReadEeprom
Function
Returns a byte value from the module’s
non-volatile memory.
Opcode
0x0D
Command (Adrs)
Response
(Data)
Notes
This function is used by the middleware to store
calibration data for the module. Refer to the
distribution media for details.
8.7.5 WriteEeprom
Function
Stores a byte value in the module’s non-volatile
memory.
Opcode
0x0E
Parameter
Function
s[]
Array of four 32-bit status/data
values, LSB first, associated with
analog input channels 0 (first) to 3
(last).
n[]
Array of four 8-bit sample
numbers, LSB first, associated
with analog input channels 0 (first)
to 3 (last).
Parameter
Function
Volts
Four 2-bit fields that specify the
output voltages. Each bit field
corresponds to one channel.
31
30
29
28
G10
0
msb
lsb
Data
. . .
0
0
SN
Bit Field Value
Output Voltage
00
1.25V
01
2V
10
3V
11
5V
Parameter
Function
Adrs
Memory address that is to be read from.
Parameter
Function
Data
Byte value retrieved from the
EEPROM.
7
6
Out3
5
4
Out2
3
2
Out1
1
0
Out0