Skip to main content
basavanagouda
Associate III
November 13, 2018
Question

LIS2DW12 sensor FIFO not working properly

Hi,

We are using sensor LI2DW sensor in our project. Sensor is connected to MC using SPI interface. We have configured the device as below.

  1. fifo en 0x3f
  2. odr
  3. sample rate : 50 hz.

we are reading data every 500 msec, so we are expecting 25 - 26 samples of x,y,z samples.

we are getting data for the first read, after that fifo size showing always 0.

We need atleast 25 samples for every 500 msec. how to enable this requirement in the code and register settings?

is there any suggestion to read fifo values?

Please let me know how fifo behaves with different settings and Please send register settings for different fifo modes.

Thanks and reagards,

Basavanagouda

This topic has been closed for replies.

3 replies

basavanagouda
Associate III
December 6, 2018

Hi,

Thank you for the response.

What is the max SPI frequency we can give to the LIS2DW12 sensor?

Thanks,

Basavanagouda.

ST Employee
December 7, 2018

Maximum SPI clock frequency is 10Mhz.