Hi,
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.