Hi Tomas;Thank you very much for your suggestions. It is very helpful. We make the interrupt triggled after reduce the threshold to 0.5g.
However, 0.5g maybe is not useful for real situation. But I can't make it work even using 1.0g with my testing board. Do you have any guidline document about how to setup the parameters?
Thanks again.
Best Regards
James
-
On Fri, 29 Jul 2016 01:35:00 -0700 TomasVaverka <admin@community.freescale.com> wrote -
NXP Community
MMA8452Q sensor, Interrupt can't triggled
reply from Tomas Vaverka in Sensors - View the full discussion
Hi James,
A couple of suggestions that might help:
1. Since PP_OD = 1 (open drain), do not forget to use a pull-up resistor on the INT pin.
2. Since IPOL = 0 (active low), make sure that your MCU interrupt pin is configured as GPIO with an interrupt on falling edge.
3. Try to decrease the threshold value to 1.25g (0x14) for example.
4. In your ISR you need to acknowledge an IRQ and read the FF_MT_SRC register to clear the SRC_FF_MT bit in the INT_SOURCE register (0x0C) and deassert the INT pin.
Regards,
Tomas
PS: If this answer helps to solve your problem, please mark it as "Correct". Thank you.
Reply to this message by replying to this email, or go to the message on NXP Community
Start a new discussion in Sensors by email or at NXP Community
Following MMA8452Q sensor, Interrupt can't triggled in these streams: Inbox
This email was sent by NXP Community because you are a registered user.
You may unsubscribe instantly from NXP Community, or adjust email frequency in your email preferences