cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2DH setup for fifo and tap interrupt

chandan bhatia
Associate II
Posted on February 19, 2018 at 07:51

I want to use LIS2D for FIFO and tap interrupt. Its generating FIFO interrupt but I am not able to get single tap interrupt.My register settings are as below. I want my FIFO interrupt of INT1 and Tap interrupt on INT2. Please suggest where I am going wrong.

CTRL_REG1 : 0x37

CTRL_REG2 : 

0x00

CTRL_REG3 : 

0x04

CTRL_REG4 : 

0x10

CTRL_REG5 : 

0x40

CTRL_REG6 : 

0xA0

CLICK_CFG : 0x15

Thanks.

12 REPLIES 12
suryaa
Associate II

I'm trying to incorporate tilt detection and click detection, click detection (from ISR) is only displayed after displaying about 6 or 7 sets of raw values of all three axes.

Without FIFO enabled, I am able to detect the clicks correctly but I want to be able to obtain raw values of all axes and also have click detection.

chandan bhatia
Associate II

Hi, I implemented raw data with fifo interrupt with double click @25HZ, Below are my registers setting,

CTRL_REG1 - 0x37

CTRL_REG2 - 0x04

CTRL_REG3 - 0x04

CTRL_REG4 - 0x10

CTRL_REG5 - 0x40

CTRL_REG6 - 0x80

FIFO_CTRL_REG - 0x80 |0x19

CLICK_CFG - 0x20 (enabling only for Z axis)

suryaa
Associate II

Hi, so did you read the values from the FIFO_READ_START register by storing it in a buffer?