The recommended power-on sequence is to first power on the voltage regulator (VDD) and then the interface voltage (VDDIO). This ensures that the internal voltage regulators are properly initialized.
The LSM303DLMTR has a built-in temperature sensor that can be used to compensate for temperature effects on the magnetometer. You can use the temperature data to adjust the magnetometer readings accordingly. Additionally, you can use the device's built-in temperature compensation feature, which can be enabled through the CTRL_REG1_M register.
The maximum sampling rate for the accelerometer is 1.344 kHz, and for the magnetometer, it is 6.76 Hz. However, the actual sampling rate may be limited by the interface bandwidth and the system's processing capabilities.
Calibration involves adjusting the device's internal registers to compensate for manufacturing variations and environmental factors. You can use the device's built-in self-test feature to perform a basic calibration. Additionally, you can perform a more detailed calibration by collecting data from the device and adjusting the registers accordingly. STMicroelectronics provides a calibration guide and software tools to assist with this process.
The main difference between the two devices is the operating temperature range. The LSM303DLMTR has an operating temperature range of -40°C to 85°C, while the LSM303DLHC has an operating temperature range of -40°C to 150°C. The LSM303DLHC is designed for high-reliability applications and has additional features such as a built-in FIFO buffer and a more robust design.