Skip to main content
Associate II
June 27, 2024
Question

ISM330DHCX GDA only set once

  • June 27, 2024
  • 2 replies
  • 880 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?

 

 

 

2 replies

ClaudeAuthor
Associate II
June 27, 2024

Additional note: I never get INT2, only INT1.

I use the I2C interface

Federica Bossi
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.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.