Question
LIS3DH Interrupt always high
Posted on May 24, 2017 at 22:07
With the configuration below I'm attempting to receive and interrupt from INT1 when there is acceleration along the Z axis. However INT1 alwyas stays high...Not sure whats going on
//ctrl_reg1 LIS3DH_WriteReg(LIS3DH_CTRL_REG1, 0x24); //ctrl 2 LIS3DH_WriteReg(LIS3DH_CTRL_REG2, 0x01); //ctrl_reg3 LIS3DH_WriteReg(LIS3DH_CTRL_REG3, 0x40);//set Full scale
//ctrl_reg4 LIS3DH_WriteReg(LIS3DH_CTRL_REG4, 0x88); //ctrl_reg5 LIS3DH_WriteReg(LIS3DH_CTRL_REG5, 0x00); //int_tsh LIS3DH_WriteReg(LIS3DH_INT1_THS, 0x7F); //dur LIS3DH_WriteReg(LIS3DH_INT1_DURATION, 0x32);//Zhi interrupt
LIS3DH_WriteReg(LIS3DH_INT1_CFG, 0xA0);#lis3dh-interrupt #lis3dh