This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AFE5801: SPI configuration of AFE5801

Part Number: AFE5801

Hello,

I am using AFE5801 in a custom board. The device(AFE5801) is SPI configurable. Each register is of 16 bit(2 byte)

At the time of SPI data transfer I am sending 32 bit per word by appending 00 at LSB side of data.

SPI data format:     Address     Data       00

                              (1 byte)     (2 byte)  (1 byte)

Will this work fine? I have appended 00 by assuming that this will be discarded by ADC.

Regards,

Gagarin

  • Thank you for using AFE5801.

    We will reply to your question soon.

    Thank you!

    Best regards,

    Chen

  • Hi,

    Yes, for your AFE5801 as long as you also need to keep

    SEN pin with 3 bytes long (=0) and the other 1 byte (=1)

    and optional as:

    SCLK pin with 3 bytes logn (=rising edge clock) and the other 1 byte (=no clock)

    (you can try this option if needed).

    Then your SPI register signal should be working fine.

    Thank you!

    Best regards,

    Chen

  • Hello ,

    Thanks for your response. In our custom board other SPI configurable devices are there which takes 4 byte data. So we want to configure ADC same as other devices without changing SPI writing code. In AFE5801 datasheet I found that in case the word length exceeds a multiple of 24 bits, the excess bits will be ignored. 

    Regards,

    Gagarin

  • Hi,

    Yes, if your total SPI writing length (ideal=24bits) is exceeded,

    then please don't just ignore these excess bits.

    Please continue to keep them in the ideal mode '0' or '1' which is needed.

    Please don't keep them (such as RESET pin, /SEN pin) floating or unexpected data.

    Thank you!

    Best regards,

    Chen