cancel
Showing results for 
Search instead for 
Did you mean: 

LSM6DS33 FIFO watermark interrupt issue

Aleksander Savin
Associate
Posted on June 04, 2018 at 23:53

Good day everyone!

I am trying to use a FIFO watermark interrupt on LSM6DS33 accelerometer. For some reason, the interrupt doesn't happen. Other interrupts (Free-fall, movement, significant motion) work just fine, so it's not a hardware issue. 

Here is how I set up my LSM6DS33:

/* Turn on the accelerometer ODR_XL = 26 Hz, FS_XL = 2g */

CTRL1_XL = 0x24;

/* Latch interrupt */

TAP_CFG = 0x01;

/* set FIFO threshold level */

FIFO_CTRL1 = LSM6DS_THRESHOLD & 0x00FF;

FIFO_CTRL2 = (LSM6DS_THRESHOLD & 0x0F00) >> 8;

/* enable FIFO depth limitation */

CTRL4_C = 0x01;

/* reset FIFO */

FIFO_CTRL5 = 0x00;

/* enable accelerometer and gyro readings */

FIFO_CTRL3 = 0x09;

/* set FIFO mode, ODR 26Hz */

FIFO_CTRL5 = 0x11;

/* FIFO watermark reach interrupt driven to INT2 pin */

INT2_CTRL = 0x08;

I tried different values for a threshold (30 - 600), but the interrupt just never happens.

Any ideas about the issue?

Thanks!

#fifo-buffer-interrupt #fifo-buffer #lsm6ds33
0 REPLIES 0