Hello, I am trying to use the LSM to detect taps . I use the default configuration which suggested in the application notes : 1. Write 60h to CTRL1_XL // Turn on the accelerometer
// ODR_XL = 417 Hz, FS_...
I found my problem. I configured the MCU to interrupt on the falling edge of the interrupt line instead of the rising edge. This caused the firmware to get the interrupt at the end of the TAP event so when i was reading the TAP_SRC register it wasn't...