IIS2DH - multiple interrupts
I've changed from LIS2DH to IIS2DH, without changing the drivers sources. According to the datasheet, there should be no problem doing this.
In the application the accelerator is used to detect each motion of the device. If the device keeps un-motioned, it will channge an internal state into deepsleep. Once motioned again, the device will be waked up. When woken up, some other actions will be done.
Now I have the problem, that the IIS2DH sets multiple interrupts on INT1. Reading the INT1_SRC register multiple times don't effect, that the IA bit is cleared (as described in the datasheet).
My configuration:
STATUS_REG_AUX: 0x07
OUT_ADC1_L : 0x08
OUT_ADC1_H : 0x09
OUT_ADC2_L : 0x0A
OUT_ADC2_H : 0x0B
OUT_ADC3_L : 0x0C
OUT_ADC3_H : 0x0D
WHO_AM_I : 0x0F
CTRL_REG0 : 0x1E
TEMP_CFG_REG : 0x1F
CTRL_REG1 : 0x20
CTRL_REG2 : 0x21
CTRL_REG3 : 0x22
CTRL_REG4 : 0x23
CTRL_REG5 : 0x24
CTRL_REG6 : 0x25
REFERENCE : 0x26
STATUS_REG : 0x27
OUT_X_L : 0x28
OUT_X_H : 0x29
OUT_Y_L : 0x2A
OUT_Y_H : 0x2B
OUT_Z_L : 0x2C
OUT_Z_H : 0x2D
FIFO_CTRL_REG : 0x2E
FIFO_SRC_REG : 0x2F
INT1_CFG : 0x30
INT1_SRC : 0x31
INT1_THS : 0x32
INT1_DURATION : 0x33
INT2_CFG : 0x34
INT2_SRC : 0x35
INT2_THS : 0x36
INT2_DURATION : 0x37
CLICK_CFG : 0x38
CLICK_SRC : 0x39
CLICK_THS : 0x3A
TIME_LIMIT : 0x3B
TIME_LATENCY : 0x3C
TIME_WINDOW : 0x3D
ACT_THS : 0x3E
ACT_DUR : 0x3FSometimes just one interrupt accurs, but often there are upto 6 interrupts caused by a single event. The Interrupts come up cyclic every 3 seconds.
Is there a known issue? If so: Is there a known workarround?
Thanks for helping!
