Post Go back to editing

cna't get sensor data by spi

Category: Hardware
Product Number: ADIS16446

I can get product_ID and gSENS_AVG by spi ,but i can't get the sensor data(including gygo and accelrator). Is any solution I can repair this 

hello WangBoAn, Could you please let me know what project you are working on and how you are implementing the SPI signal communication with the ADIS16446? Additionally, could you capture the SPI signals (CS, SCLK, MOSI, and MISO) and share the timing details to ensure they align with the device’s requirements?

  • the project is to use IMU to implement the INS , I just send DIAG_STAT(0x3C),and I get the message 0x0008 .It means that the data is overrange. doesn't it  cause the error haapen

  • FormerMember
    0 FormerMember on Aug 26, 2024 12:26 PM in reply to WangBOAn

    The DIAG_STAT register (address 0x3C) is designed to flag various operational errors that might occur during the use of the ADIS16446. Each bit in this register corresponds to a different error condition. When you read 0x0008, it means that Bit 3 is set, which corresponds to an SPI communication failure.

    • 0x0008 = 0000 0000 0000 1000 in binary.

    Table 25 in the datasheet outlines the specific meanings of each bit in the DIAG_STAT register:

    • Bit 3 (SPI communication failure): This bit indicates that the number of SCLK cycles in an SPI sequence did not equal a multiple of 16 SCLKs, which is necessary for proper data transfer.

    To troubleshoot this issue:

    1. Ensure the number of clock cycles (SCLK) during each SPI transaction is a multiple of 16.

    2. Check the power supply voltage: Ensure the ADIS16446 receives the correct power supply voltage (typically +3.3V). An inadequate power supply can lead to communication issues.

    3. Monitor the SPI data lines: Use an oscilloscope or logic analyzer to monitor the SPI data lines (MOSI, MISO, SCLK) during communication. This can help identify signal integrity issues or incorrect data being transmitted.

    4. Set your SPI clock speed appropriately:

    • Normal mode: Up to 2 MHz
    • Burst read mode: Up to 1 MHz

    I hope this helps troubleshoot your issue.