LSM6DSLTR interrupt configuration
Hi,
I am trying to configure interrupt on LSM6DSLTR module but I am not able to get any interrupt on the pin INT1.
I am using nrf52 dk for setting interrupt on pin.
err_code = nrf_drv_mpu_write_single_register(LSM6DSL_ACC_GYRO_INT1_CTRL, 0x03);
if(err_code != NRF_SUCCESS) return err_code;
err_code = nrf_drv_mpu_write_single_register(LSM6DSL_ACC_GYRO_TAP_CFG1, 0x90);
if(err_code != NRF_SUCCESS) return err_code;
err_code = nrf_drv_mpu_write_single_register(LSM6DSL_ACC_GYRO_WAKE_UP_DUR, 0x00);
if(err_code != NRF_SUCCESS) return err_code;
err_code = nrf_drv_mpu_write_single_register(LSM6DSL_ACC_GYRO_WAKE_UP_THS, 0x02);
if(err_code != NRF_SUCCESS) return err_code;
err_code = nrf_drv_mpu_write_single_register(LSM6DSL_ACC_GYRO_MD1_CFG, 0x20);
if(err_code != NRF_SUCCESS) return err_code;
After configuring interrupt my values becomes repeated or same
<info> app: 251781.25, 231621.25, 231621.25, 1755.82, 1755.82, 1755.82
<info> app: 33643.75, 13483.75, 13483.75, 235.09, 235.09, 235.09
Can you please guide me, if what I am doing is right or not ? If its not right please let me know how can i configure the interrupt properly.
