Skip to main content
Visitor II
December 16, 2019
Question

Lsm6dsox interrupt on every sample?

  • December 16, 2019
  • 2 replies
  • 784 views

Hi,

I have a lsm6dsox sensor and everything is working fine, I can read the data and I can generate interrupts for single tap, double tap... But I want to configure as following:

To set the sample rate at 52Hz, and every time it reads a sample to generate an interrupt. So in this case it will be every ~20ms. Is this possible and what I need to configure ? Thanks

    This topic has been closed for replies.

    2 replies

    ST Employee
    December 16, 2019

    Hi @suads​ , if I well understand, do you basically need a data-ready interrupt assert? I mean, when a data is available at the output chain of the ASIC internal conversion, an interrupt is asserted and can be routed on a physical pin, e.g INT1. You get this if you enable the DEN_DRDY_flag bit of the INT1_CTRL (0Dh) register, and the INT1_DRDY_G or INT1_DRDY_XL in the same register. Regards

    suadsAuthor
    Visitor II
    December 16, 2019

    Many thanks! I succeed.