English
Language : 

LSM303AGR Datasheet, PDF (32/68 Pages) STMicroelectronics – ultra-low-power 3D accelerometer and 3D magnetometer
Functionality
LSM303AGR
4.4.5
When an interrupt event is configured on the INT_1_XL pin, the FIFO operates in Stream
mode if the INT_1_XL pin value is equal to ‘0’ and it operates in FIFO mode if the INT_1_XL
pin value is equal to ‘1’. Switching modes is dynamically performed according to the
INT_1_XL pin value.
Stream-to-FIFO can be used in order to analyze the sampling history that generates an
interrupt. The standard operation is to read the contents of FIFO when the FIFO mode is
triggered and the FIFO buffer is full and stopped.
Retrieving data from FIFO
FIFO data is read from the OUT_X_L_A (28h), OUT_X_H_A (29h), OUT_Y_L_A (2Ah),
OUT_Y_H_A (2Bh), and OUT_Z_L_A (2Ch), OUT_Z_H_A (2Dh) registers. A read operation
using a serial interface of the OUT_X_L_A (28h), OUT_X_H_A (29h), OUT_Y_L_A (2Ah),
OUT_Y_H_A (2Bh) or OUT_Z_L_A (2Ch), OUT_Z_H_A (2Dh) output registers provides the
data stored in the FIFO. Each time data is read from the FIFO, the oldest X, Y and Z data
are placed in the OUT_X_L_A (28h), OUT_X_H_A (29h), OUT_Y_L_A (2Ah), OUT_Y_H_A
(2Bh) and OUT_Z_L_A (2Ch), OUT_Z_H_A (2Dh) registers and both single read and
read_burst operations can be used.
32/68
DocID027765 Rev 5