English
Language : 

LSM330D Datasheet, PDF (22/66 Pages) STMicroelectronics – Low power mode
Functionality
LSM330D
4.1.8
4.1.9
4.1.10
Stream mode
In Stream mode, data from X, Y and Z measurement are stored into the FIFO. A watermark
interrupt can be enabled and set as in FIFO mode.The FIFO continues filling until it is full (32
slots of data for X, Y and Z). When full, the FIFO discards the older data as the new data
arrives.
Stream-to-FIFO mode
In Stream-to-FIFO mode, data from X, Y and Z measurement is stored in the FIFO. A
watermark interrupt can be enabled (FIFO_WTMK_EN bit in the FIFO_CTRL_REG_A
register) in order to be raised when the FIFO is filled to the level specified in the
FIFO_WTMK_LEVEL bits of the FIFO_CTRL_REG_A register. The FIFO continues filling
until it is full (32 slots of 8 -bit data for X, Y and Z). When full, the FIFO discards the older
data as the data new arrives. Once trigger event occurs, the FIFO starts operating in FIFO
mode.
Retrieve data from FIFO
FIFO data is read through OUT_X_L_A, OUT_X_H_A, OUT_Y_L_A, OUT_Y_H_A and
OUT_Z_L _A, OUT_Z_H_A. When the FIFO is in Stream, Trigger or FIFO mode, a read
operation to the OUT_X_L_A, OUT_X_H_A, OUT_Y_L_A, OUT_Y_H_A or OUT_Z_L _A,
OUT_Z_H_A 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, OUT_X_H_A,
OUT_Y_L_A, OUT_Y_H_A and OUT_Z_L _A, OUT_Z_H_A registers and both single read
and read_burst operations can be used.
22/66
Doc ID 022562 Rev 2