Post Go back to editing

EVAL-AD594-ELCZ , ADICUP and R pi5

Thread Summary

The user encountered issues reading the ADIID register (0x0400) from the EVAL-AD594-ELCZ shield via SPI on a Raspberry Pi 5, receiving 0x80 on every byte. The solution involved ensuring proper Chip Select (CS) toggling between commands. The correct ADIID value is 0x0552. The user confirmed the issue was resolved and the output data now looks correct.
AI Generated Content
Category: Hardware

Hello,

My final goal is measure is impedance and EIS, and for now it is not even possible to setup a simple read.

I am trying to communicate the EVAL-AD594-ELCZ shield directly from a Raspberry Pi 5 via SPI, without the ADICUP3029 to try to get impedance data. I tried with ADICUP3029 I could not get output data even I tried for days.

My problems:

Reading ADIID register (0x0400) always returns 0x80 on every byte regardless of SPI mode (0,1,2,3), speed (200kHz-1MHz), or library used (spidev, python-periphery). I tried to remove the MISO (DS12) wire gives 0x00, confirming the board is driving MISO but stuck at 0x80.


1. Are there known SPI compatibility issues with Raspberry Pi 5?
2. 
Is 0x80 a known error state for the AD5941 SPI interface?
3. Does the AD5941 require firmware initialization before responding to external SPI?


Thanks in advance :) !

Thread Notes

  • Hello  ,

    There shouldn't be an incompatibility issue with the Raspberry Pi, but from what you are encountering it seems that there might be a Chip Select handling issue. The 0x80 fixed pattern indicates the device is driving MISO. The SPI command sequence or CS timing is wrong. I don't think it needs a firmware initialization, but rather adjust the CS toggling, as the AD5941 SPI requires CS to go high between commands.

    To read the ADIID register (or any other register), could you try these steps?

    1. Assert CS low

    2. Send SPICMD_SETADDR (0x20), send the 16 bit address

    3. Deassert CS high

    4. Assert CS low again

    5. Send SPCMD_READREG(0x6D), clock dummy bytes to receive data

    6. Deassert CS high


    For AD5940 / AD5941: ADIID = 0x0552. If things are working correctly, you should read: 0x05 0x52 or 0x0552 once combined.

    Let us know if this fixed your issue.

    Kind regards,

    Stanca

  • Hello  ,

    Do you have any updates on this thread?

    Kind regards,

    Stanca

  • Hello Stanca!
    Sorry for my late answer and thank you for your fast answer.
    The issue with rpi with AD5941 are solved now.
    Currently, The output data looks good to me, at least not obviously impossible.
    All the best and thanks again!

  • Hi Maria,

    Glad it works now. I will close this thread. If you encounter other issues, feel free to open a new thread.

    Best regrds,

    Stanca

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.