English
Language : 

LSM303AH Datasheet, PDF (69/82 Pages) –
LSM303AH
Register description
8.39
CFG_REG_A_M (60h)
The configuration register is used to configure the output data rate and the measurement
configuration.
Table 95. CFG_REG_A_M register
COMP_
TEMP_EN
REBOOT
SOFT_RST
LP
ODR1
ODR0
MD1
MD0
COMP_
TEMP_EN(1)
REBOOT
SOFT_RST
LP
ODR[1:0]
MD[1:0]
Table 96. CFG_REG_A_M register description
Enable the magnetometer temperature compensation. Default value: 0
(0: temperature compensation disabled; 1: temperature compensation enabled)
Reboot magnetometer memory content. Default value: 0
(0: normal mode; 1: reboot memory content)
When this bit is set, the configuration registers and user registers are reset.
Flash registers keep their values.
Low-power mode enable. Default: 0
0: high-resolution mode 1: low-power mode enabled
Output data rate configuration (see Table 97: Output data rate configuration)
Mode select bit. These bits select the mode of operation of the device (see
Table 98: System mode)
1. For proper operation, this bit must be set to '1'.
ODR1
0
0
1
1
Table 97. Output data rate configuration
ODR0
ODR (Hz)
0
10 (default)
1
20
0
50
1
100
MD1
0
0
1
1
MD0
0
1
0
1
Table 98. System mode
Mode
Continuous mode. In continuous mode the device continuously
performs measurements and places the result in the data register.
The data-ready signal is generated when a new data set is ready to
be read. This signal can be available on the external pin by setting
the INT_MAG bit in CFG_REG_C_M (62h).
Single mode. When single mode is selected, the device performs a
single measurement, sets DRDY high and returns to idle mode.
Mode register return to idle mode bit values.
Idle mode. Device is placed in idle mode. I2C and SPI active.
Idle mode. Device is placed in idle mode. I2C and SPI active.
DocID027766 Rev 6
69/82
82