Cannot return in Stream Mode after IT
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-04-12 6:51 AM
Posted on April 12, 2017 at 15:51
Hi,
I'm working on the LIS2DH12 and I have issues when I configure it. I want to use the Stream-to-FIFO mode, and I want INT1 to trigger when one of the acceleration axis is above the threshold. I have configured the LIS2DH12 registers to perform this.
Then i do this:
- I initialialize all the register
- I trigger the interrupt
- I read all the data in the FIFO
- When the FIFO is empty (0x20 in FIFO_SRC_REG ) I read the INT1_SRC in order to clear the IA bit, and I read 0x15.
After this the FIFO still empty and the LIS2DH12 doesn't fill him, do you have an idea why the FIFO doesn't return in stream mode?
ps: INT_1 is latched, but reading INT1_SRC must clear it.
#interrupts #lis2dh12 #stream-to-fifo
Labels:
- Labels:
-
Interrupt
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-09-29 6:46 AM
Posted on September 29, 2017 at 15:46
Do you gen any data from the FIFO (in step 3)?
Can you share complete sensor register configuration?
