Skip to main content
Graduate
June 27, 2024
Question

ISM330DHCX GDA only set once

  • June 27, 2024
  • 2 replies
  • 879 views

I have an application using the XL function, it works fine, no issues.

Now I need to read the gyroscope output data.

After I finish configuring the registers:

CTRL9_XL 01
INT1_CTRL 03
INT2_CTRL 06
CTRL1_XL 30
CTRL2_G 32
CTRL3_C 04
CTRL6_C 80
CTRL8_XL 00
MD1_CFG 02
MD2_CFG 02
CTRL9_XL 01

I get the 1st interuption. I read the status register and both GDA and XLDA are set.

Then I read XL data, followed by gyro data.

 

So far so good. My problem is that I keep getting interrupts for XL but reading the status register, GDA remains 0. 

I tried to read gyro output but it never changes.

Is there something I'm missing?

 

 

 

    This topic has been closed for replies.

    2 replies

    ClaudeAuthor
    Graduate
    June 27, 2024

    Additional note: I never get INT2, only INT1.

    I use the I2C interface

    Technical Moderator
    July 10, 2024

    Hi @Claude ,

    Can you try to implement our official PID examples and let me know if you solve? So that you can exclude some errors in the code.