Skip to main content
Visitor II
November 13, 2018
Question

LIS2DW12 sensor FIFO not working properly

  • November 13, 2018
  • 1 reply
  • 994 views

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.

    1 reply

    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.