cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2DS12 Single Tap Event Not Detected when Double Tap Recognition is Enabled

SK.32
Associate

I want to detect both single and double tap and distinguish between them. For example, if I tap the device once, the device knows it is a single tap. If I tap the device twice, the device knows it is a double tap. But the current register configuration can only detect double tap event, not single tap event.

Single tap event does trigger INT1, but it is not latched and cannot be detected in TAP_SRC and STATUS pins.

Could you please let me know which register configuration I am missing?

+) If it is impossible to detect both single and double tap in INT1 and distinguish between them, is it possible to separate them so that INT1 detects single tap and INT2 detects double tap?

Register Configuration:

Image attached

0693W00000UnlIjQAJ.png 

Test Steps :

Single tap on the LIS2DS12 board

0693W00000UnlJ8QAJ.pngExpected output :

1. Interrupt 1 triggered and latched.

2. The value of "STATUS (27h)" pin is 49 (WU_IA, SINGLE_TAP, and DRDY turned ON)

3. The value of "TAP_SRC (38h)" pin is 6* (TAP_IA and SINGLE_TAP turned ON).

  

Actual Observation :

1. Interrupt 1 triggered and NOT latched.

2. The value of "STATUS (27h)" pin is 41 (WU_IA and DRDY turned ON. SINGLE_TAP turned OFF)

3. The value of "TAP_SRC (38h)" pin is 00 (nothing turned on).

--------------------

Test Steps :

Double tap on the LIS2DS12 board

0693W00000UnlJ3QAJ.pngExpected output :

1. Interrupt 1 triggered and latched. 

2. The value of "STATUS (27h)" pin is 51 (WU_IA, DOUBLE_TAP, and DRDY turned ON)

3. The value of "TAP_SRC (38h)" pin is 5* (TAP_IA and DOUBLE_TAP turned ON).

  

Actual Observation :

1. Interrupt 1 triggered and latched. 

2. The value of "STATUS (27h)" pin is 51 (as expected)

3. The value of "TAP_SRC (38h)" pin is 59 (as expected).

0 REPLIES 0