Post Go back to editing

AXDL355 Activity Detection Enable

Category: Choose a category
Product Number: ADXL355

I want to know if I want to enable activity detection, what value 1 or 0 I shall set for x, y, z bi in ACT_EN register (0x24).

The data sheet only says 0 for reset. Reset means disable? And 1 for enable?

Another issue:

For INT polarity, what does "active 0" mean? Is it that if interrupt occurs, the pin goes from Hight to Low?



Need clarification for interrupt pin polarity
[edited by: DJSG at 9:52 AM (GMT -4) on 22 Sep 2022]
Parents
  • Hi, 

    yes, reset means disable for activity detection, and active 0 (or active low) means that when the interrupt occurs the pin goes from high to low. 

    Regards, 

    Pablo. 

  • Hi Pablo,

    Thanks for your reply.

    I still cannot get the expected interrupt. Here are my settings:

    {2C 0x02} Fast Mode, INT1,2 active low, Range 4G

    {2D 0x00} Measure Mode

    {24 0x07} x, y, and z activity all enabled

    {25 0x4B} {26 0x00} (0x4B00 << 3) is about 1.5G

    {27 0x01} One reading > 1.5G, trigger

    In my test code, I continuously read x, y, and z value, and value of Status register 0x04. When I shake the chip, I can see sometimes those readings bigger than the threshold and Activity bit becomes 1. However, I don't see the expected interrupt.

    I did one thing to make sure that my code for interrupt works: I manually connect the interrupt pin to GND and I can see interrupt function is called.

    Can you help me on what I did wrong or what I missed? Many thx.

  •  Hi  , 

    I see that in your configs is not the INT_MAP register (0x2A). 

    this register needs to be configured to map the desired interrupt pin. 

    I hope this helps, 

    Pablo 

Reply Children