Skip to main content
Visitor II
May 13, 2020
Solved

Using INT2 on LIS3DSH for DRDY signal

  • May 13, 2020
  • 1 reply
  • 858 views

Hi,

I'm using a STM32F4 board which has a LIS3DSH. This board has PE0 connected to the INT1 of the LIS3DSH and PA0 connected to the user Button B1. Due to this, I won't be able to use interrupts to sample and interrupt for button press. I'm trying to find if there is any way to get the DRDY signal on INT2?

Thanks

    This topic has been closed for replies.
    Best answer by Eleon BORLINI

    Hi @GTS.1​ , unfortunately the DRDY signal cannot be directly routed on INT2 physical pad... but you could manage the DRDY via software by polling the the DRDY bit in STAT (18h) register. Regards

    1 reply

    ST Employee
    May 14, 2020

    Hi @GTS.1​ , unfortunately the DRDY signal cannot be directly routed on INT2 physical pad... but you could manage the DRDY via software by polling the the DRDY bit in STAT (18h) register. Regards

    GTS.1Author
    Visitor II
    May 14, 2020

    Hi @Eleon BORLINI​ ,

    Thanks for clearing this up

    Just to clarify, am I correct in assuming that the DRDY bit is set only when ZYXDA bit is set?

    Also, I noticed that sometimes the ZYXDA bit is set while the XDA or YDA bit is cleared.

    ST Employee
    May 15, 2020

    Hi @GTS.1​ , yes, it is correct

    Regards