English
Language : 

LSM303DLH Datasheet, PDF (40/47 Pages) STMicroelectronics – Sensor module: 3-axis accelerometer and 3-axis magnetometer
Registers description
LSM303DLH
9.2.2
Table 59.
MS1
0
0
1
1
CRA_REG_M description
MS0
Magnetic sensor operating mode
0
Normal measurement configuration (default). In normal measurement
configuration the device follows normal measurement flow.
1
Positive bias configuration.
0
Negative bias configuration.
1
This configuration is not used
CRB_REG_M (01h)
The configuration register B for setting the device gain. CRB0 through CRB7 indicate bit
locations, with CRB denoting the bits that are in the configuration register. CRB7 denotes
the first bit of the data stream. The number in parentheses indicates the default value of that
bit.
Table 60. CRA_REG register
GN2
GN1
GN0
0
0
0
0
0
Table 61. CRA_REG description
CRB7 to CRB5
Gain configuration bits. These bits configure the gain for the device. The gain
configuration is common for all channels
CRB7 to CRB5 This bit must be cleared for correct operation
9.2.3
Table 62. Gain setting
GN2 GN1 GN0
Sensor input
field range
[Gauss]
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
±1.3
±1.9
±2.5
±4.0
±4.7
±5.6
±8.1
Gain X/Y and
Z
[LSB/Gauss]
Gain Z
[LSB/Gauss]
1055
950
795
710
635
570
430
385
375
335
320
285
230
205
Output range
0xF800–0x07FF
(-2048–2047)
MR_REG_M (02h)
The mode register is an 8-bit register from which data can be read or to which data can be
written. This register is used to select the operating mode of the device. MR0 through MR7
indicate bit locations, with MR denoting the bits that are in the mode register. MR7 denotes
40/47
Doc ID 16941 Rev 1