Datasheet

Register description LSM303D
30/52 DocID023312 Rev 2
8 Register description
The device contains a set of registers which are used to control its behavior and to retrieve
acceleration and magnetic data. The register address, consisting of 7 bits, is used to identify
them and to write the data through the serial interface.
8.1 TEMP_OUT_L (05h), TEMP_OUT_H (06h)
Temperature sensor data. Temperature data is stored as two’s complement data in 12-bit
format, right-justified.
Refer to Section 4.2 for details on how to enable and read the temperature sensor output
data.
8.2 STATUS_M (07h)
Table 17. STATUS_M register
ZYXMOR/ Tempor ZMOR YMOR XMOR ZYXMDA / Tempda ZMDA YMDA XMDA
Table 18. STATUS_M register description
ZYXMOR/
Tempor
Magnetic X, Y and Z-axis and temperature data overrun. Default value: 0
(0: no overrun has occurred; 1: a new set of data has overwritten the previous data)
Temperature data overrun if T_ONLY bit in CTRL7 (26h) is set to ‘1’. Default value: 0.
ZMOR Z-axis data overrun. Default value: 0
(0: no overrun has occurred; 1: new data for the Z-axis has overwritten the previous
data)
YMOR Y-axis data overrun. Default value: 0
(0: no overrun has occurred; 1: new data for the Y-axis has overwritten the previous
data)
XMOR X-axis data overrun. Default value: 0
(0: no overrun has occurred; 1: new data for the X-axis has overwritten the previous
data)
ZYXMDA/
Tempda
X, Y and Z-axis and temperature new data available. Default value: 0
(0: a new set of data is not yet available; 1: a new set of data is available)
Temperature new data available if the T_ONLY bit in CTRL7 (26h) is set to ‘1’.
ZMDA Z-axis new data available. Default value: 0
(0: new data for the Z-axis is not yet available; 1: new data for the Z-axis is available)
YMDA Y-axis new data available. Default value: 0
(0: new data for the Y-axis is not yet available; 1: new data for the Y-axis is available)
XMDA X-axis new data available. Default value: 0
(0: new data for the X-axis is not yet available; 1: new data for the X-axis is available)