AnsweredAssumed Answered

ADXL362 Activity and Inactivity interrupt problem

Question asked by ANK@123 on Jun 20, 2016
Latest reply on Jul 8, 2016 by STallur

Hi,

I am Interfacing ADXL362 with nrf52 of nordic semiconductors. I have  written the ADXL362 registers with the values required for activity and inactivity detection.I am operating ADXL362 in loop mode.following are the register contents.

 

THRESH_ACT_L=0x1C  ,THRESH_ACT_H=0x00, THRESH_INACT_L=0x80,THRESH_INACT_H=0x00

TIME_ACT=0x20, TIME_INACT_L=0x10, TIME_INACT_H=0x01, ACT_INACT_CTL=0x3F, INTMAP2=0xB0

FILTER_CTL=0x83, POWER_CTL=0x02

 

When I am moving the accelerometer activity interrupt is generated and after some time when ADXL362 is stationary inactivity interrupt also triggered. But when I read the status register in ISR it indicates 0x01 and 0x41 in both cases.

When activity interrupt generated awake bit should be 1 and status register should show 0x40 and similarly 0x00 for inactivity interrupt.but I am not getting these values.

 

Also why the activity interrupt bit is not setting when activity interrupt is generated.

Outcomes