2019-02-04 09:26 PM
Hello,
I have configured LIS2DH12 to generate interrupt on INT2 pin on activity as well as a strong impact using the register values as follows:
CTRL_REG1 - 0x37
CTRL_REG2 - 0x00
CTRL_REG3 - 0x40
CTRL_REG4 - 0x88
CTRL_REG5 - 0x0A
CTRL_REG6 - 0x28
INT1_THS - 0x16
INT1_DUR - 0x0C
INT1_CFG - 0x95
INT2_THS - 0x70
INT2_DUR - 0x01
INT2_CFG - 0x2A
ACT_THS - 0x10
ACT_DUR - 0x20
With this configuration, I would like to know regarding the interrupt generation for activity. 1. Does the interrupt get generated for both sleep to wake transition event as well as wake to sleep transition event?
2. Also, when the sleep to wake transition occurs, does the INT2_SRC register set the one or more of the bits ZH, YH & XH?
3. And when the wake to sleep transition occurs, does the INT2_SRC register set one or more of the bits ZL, YL & XL?
4. Does duration set in ACT_DUR apply for both sleep to wake event and wake to sleep event?
Can you please provide your inputs on this?
Thanks in advance.
Regards,
Anusha