IIS2DLPC interrupts not generated
Hello
I have been trying to setup 6D orientation interrupt using IIS2DLPC and I am not getting any interrupts on INT1 pin when the orientation changes beyond threshold.
For debugging I tried printing SIXD_SRC (3Ah) and ALL_INT_SRC (3Bh) registers. In the SIXD_SRC register I am seeing the bit 6D_IA (a change in position is detected) is set and in register ALL_INT_SRC I am seeing the bit 6D_IA (a change in position detected) is also set but no interrupts are generated.
I have also tried changing Interrupt active high/low and Latched Interrupt settings both didnt work. Also tried adding internal pullup and pulldown from the micro controller that also didn't work.
I2C settings done for 6D orientation interrupt:
1. Write 64h in CTRL1 // Turn on the accl // ODR = 200 Hz, High-Performance
2. Write 04h in CTRL6 // FS ±2 g, LOW_NOISE enabled
3. Write 20h in CTRL7 // Do not use low-pass filter for 6D, enable interrupts
4. Write 40h in TAP_THS_X // Set 6D threshold (6D_THS[1:0] = 10b = 60 degrees)
5. Write 80h in CTRL4_INT1_PAD_CTRL // 6D interrupt driven to INT1 pin
Am I missing something or should I be doing anything extra?
