Datasheet

DocID023312 Rev 2 31/52
LSM303D Register description
52
8.3 OUT_X_L_M (08h), OUT_X_H_M (09h)
X-axis magnetic data. The value is expressed in 16-bit as two’s complement.
8.4 OUT_Y_L_M (0Ah), OUT_Y_H_M (0Bh)
Y-axis magnetic data. The value is expressed in 16-bit as two’s complement.
8.5 OUT_Z_L_M (0Ch), OUT_Z_H_M (0Dh)
Z-axis magnetic data. The value is expressed in 16-bit as two’s complement.
8.6 WHO_AM_I (0Fh)
Device identification register.
8.7 INT_CTRL_M (12h)
Table 19. WHO_AM_I register
010 01001
Table 20. INT_CTRL_M register
XMIEN YMIEN ZMIEN PP_OD IEA MIEL 4D MIEN
Table 21. INT_CTRL_M register description
XMIEN Enable interrupt recognition on X-axis for magnetic data. Default value: 0.
(0: disable interrupt recognition; 1: enable interrupt recognition)
YMIEN Enable interrupt recognition on Y-axis for magnetic data. Default value: 0.
(0: disable interrupt recognition; 1: enable interrupt recognition)
ZMIEN Enable interrupt recognition on Z-axis for magnetic data. Default value: 0.
(0: disable interrupt recognition; 1: enable interrupt recognition)
PP_OD Interrupt pin configuration. Default value: 0.
(0: push-pull; 1: open drain)
IEA Interrupt polarity. Default value: 0.
(0: interrupt active-low; 1: interrupt active-high)
MIEL Latch interrupt request on INT_SRC_M (13h) register. Default value: 0.
(0: interrupt request not latched; 1: interrupt request latched)
Once the MIEL is set to ‘1’, the interrupt is cleared by reading the INT_SRC_M (13h)
register.
4D 4D enable: 4D detection on acceleration data is enabled when 6D bit in IG_CFG1 (30h) is
set to 1. Default value: 0.
MIEN Enable interrupt generation for magnetic data. Default value: 0.
(0: disable interrupt generation; 1: enable interrupt generation)