Skip to main content
Visitor II
June 3, 2022
Solved

IIS3DWB in fifo mode does not work

  • June 3, 2022
  • 2 replies
  • 1647 views

Hello

I am using an IIS3DWB mems for continuous acquisition.

So I configured it to use fifo and interrupt.

But, during transfert, I see INT1 going high, and transfert aborts.See Capture.png.

Please find IIS3DWB configuration in Config.c, is it good?

Thank you for help

    This topic has been closed for replies.
    Best answer by DLafo.1

    Hello,

    In fact, I just want to retrieve more than 10s signal, without sample loss, without any 'wake up' event.

    I throught that the more suitable mode was 'continouous' : I use watermark interrupt, with threshold set to 128.

    As I did not found any code example example from st, I used this one:

    https://github.com/kriswiner/IIS3DWB

    But maybe we have solved our problem : according to datasheet table 2 : INT1 must be set to 0 during power up. We put a pull down on INT1, an now it works.

    Regards

    2 replies

    ST Employee
    June 10, 2022

    Hi @DLafo.1​ ,

    I see you are configuring the "Continuous Mode", which is however not so suggested for working with interrupts.

    You should use Continuous-to-FIFO mode for managing the FIFO interrupt.

    0693W00000NrdMYQAZ.pngPlease have a look to the AN5444 application note, from p. 32.

    -Eleon

    DLafo.1AuthorAnswer
    Visitor II
    June 13, 2022

    Hello,

    In fact, I just want to retrieve more than 10s signal, without sample loss, without any 'wake up' event.

    I throught that the more suitable mode was 'continouous' : I use watermark interrupt, with threshold set to 128.

    As I did not found any code example example from st, I used this one:

    https://github.com/kriswiner/IIS3DWB

    But maybe we have solved our problem : according to datasheet table 2 : INT1 must be set to 0 during power up. We put a pull down on INT1, an now it works.

    Regards