English
Language : 

LSM303DLHTR Datasheet, PDF (41/47 Pages) STMicroelectronics – Sensor module: 3-axis accelerometer and 3-axis magnetometer
LSM303DLH
Registers description
the first bit of the data stream. The number in parentheses indicates the default value of that
bit.
Table 63. MR_REG
0
0
0
0
0
0
MD1
MD0
Table 64. MR_REG description
MR7 to MR2 These bits must be cleared for correct operation
MR1 to MR0 Mode select bits. These bits select the operation mode of this device.
Obsolete Product(s) - Obsolete Product(s) 9.2.4
Table 65. Magnetic sensor operating mode
MD1 MD0
Mode
Continuous-conversion mode: the device continuously performs conversions
and places the result in the data register. RDY goes high when new data is
0
0
placed in all three registers. After a power-on or a write to the mode or
configuration register, the first measurement set is available from all three data
output registers after a period of 2/fDO, and subsequent measurements are
available at a frequency of fDO, where fDO is the frequency of data output.
Single-conversion mode: the device performs a single measurement, sets RDY
0
1
high and returns to sleep mode. Mode register returns to sleep mode bit values.
The measurement remains in the data output register and RDY remains high
until the data output register is read or another conversion is performed.
1
0 --
1
1 Sleep mode. Device is placed in sleep mode
OUT_X_M (03-04h)
The data output X registers are two 8-bit registers, data output register H and data output
register L. These registers store the measurement result from channel X.
Data output X register H contains the MSB from the measurement result, and data output X
register L contains the LSB from the measurement result.
The value stored in these two registers is a 16-bit value in 2’s complement form, whose
range is 0xF800 to 0x07FF. DXRH0 through DXRH7 and DXRL0 through DXRL7 indicate bit
locations, with DXRH and DXRL denoting the bits that are in the data output X registers.
DXRH7 and DXRL7 denote the first bit of the data stream.
In the event the ADC reading overflows or underflows for the given channel, or if there is a
math overflow during the bias measurement, this data register will contain the value -4096 in
2’s complement form. This register value clears after the next valid measurement is made.
Table 66. OUTXH_M register
DXRH7 DXRH6 DXRH5 DXRH4
DXRH3
DXRH2
DXRH1
DXRH0
The content of this register is the MSB magnetic field data for X-axis.
Doc ID 16941 Rev 1
41/47