Question
Failed to enable interrupt mode
Posted on February 07, 2018 at 14:53
Hi,
I am working on some motion detection product.
LIS2HH12 is chosen as the motion detector. We want to use it in interrupt mode.
Unfortunately, we failed to get any signal on INT1 pin, observing by an o
scilloscope
. What a shame T_T.My configuration sequence is as follow, could you please help to give some advice?
// startup checking SPI bus
GSENSOR::LIS2HH_set_mode: WHO_AM_I = 41 [spi] // reset the chip GSENSOR::LIS2HH_set_mode: RESET // read regs to check reset status GSENSOR::LIS2HH_set_mode: STATUS = FF [spi] GSENSOR::LIS2HH_set_mode: CTRL5 = 00 [spi]// setup
GSENSOR::LIS2HH_set_mode: CTRL1 = 3F [spi] GSENSOR::LIS2HH_set_mode: CTRL2 = 00 [spi] GSENSOR::LIS2HH_set_mode: CTRL3 = 09 [spi] GSENSOR::LIS2HH_set_mode: CTRL4 = 04 [spi] GSENSOR::LIS2HH_set_mode: CTRL5 = 00 [spi] GSENSOR::LIS2HH_set_mode: CTRL7 = 0C [spi] // check GSENSOR::LIS2HH_set_mode: STATUS = FF [spi] GSENSOR::LIS2HH_set_mode: INT_SRC1 = 25 [spi] GSENSOR::LIS2HH_set_mode: INT_SRC2 = 00 [spi] GSENSOR::LIS2HH_set_mode: STATUS = FF GSENSOR::LIS2HH_set_mode: val[0] = -437, x = -26.657000 mg GSENSOR::LIS2HH_set_mode: val[1] = -169, y = -10.309000 mg GSENSOR::LIS2HH_set_mode: val[2] = -16427, z = -1002.047000 mg♯♯#interrupt-driven #lis2hh12