AnsweredAssumed Answered

debounce counter not decrementing in orientation detection -acceleromter(FXOS8700CQ)

Question asked by Naman Sharma on Aug 9, 2018
Latest reply on Aug 10, 2018 by Naman Sharma


I have configured my FXOS8700CQ to give an interrupt at pin 1 whenever there is a change in orientation.I am receiving the interrupt at pin 1 but the interrupt flag once set is not getting cleared as debounce counter(PL_count) is not decremented can you just look into the problem,I have done all the configurations as mentioned in NXP
application note AN4068.

here's the configuration part of the code:



here's the interrupt service routine:


The problem is I enter the ISR and read PL status and interrupt source register but after that the debounce counter is not decrementing.

Please look into this problem.