cancel
Showing results for 
Search instead for 
Did you mean: 

IIS3DWB in fifo mode does not work

DLafo.1
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
DLafo.1
Associate II

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

View solution in original post

2 REPLIES 2
Eleon BORLINI
ST Employee

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.1
Associate II

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