cancel
Showing results for 
Search instead for 
Did you mean: 

Lsm6dsox interrupt on every sample?

suads
Associate III

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

2 REPLIES 2
Eleon BORLINI
ST Employee

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

suads
Associate III

Many thanks! I succeed.