AD7124-4 CRC

Hi

I have a question regarding AD7124-4 CRC Checksum.

I can easily turn on the CRC check for ROM and RAM but I can not understand CRC for SPI communication.

I turn on CRC SPI by enabling the SPI_CRC_ ERR_EN bit. Thereafter I expect that receive the CRC code after reading the data and status bytes. but I receive no CRC check sum afterwards.

I don't know what is the problem.

May I send the data reading command also with a CRC 8 bit to ADC.

Thank you so much for your time and consideration.

Regards

Parents
  • +1
    •  Analog Employees 
    on Nov 13, 2020 3:18 AM 3 months ago

    Hi,

    The checksum (8-bit CRC)  is appended at the end of each read and write transaction. All memory map read and write operations have a CRC check performed. So for example, when writing to a register, a CRC check failure results in the error flag being set and the write operation being aborted. However, to ensure that the register write was successful, read back the register and verify the checksum.

    I think there's a section in the datasheet that discussed how CRC checksum is calculated for the read and write transaction. So ideally you are expecting something similar to the figures below. Can you share as a scope shot of your digital interface please?  

    You can also check this sample code as I know this includes CRC computation.

    https://wiki.analog.com/resources/tools-software/uc-drivers/ad7124 

    If you have specific query regarding the no-OS driver for AD7124, I think someone from the Microcontroller no-OS Drivers community might be able to help you.

    Thanks,

    Jellenie

Reply
  • +1
    •  Analog Employees 
    on Nov 13, 2020 3:18 AM 3 months ago

    Hi,

    The checksum (8-bit CRC)  is appended at the end of each read and write transaction. All memory map read and write operations have a CRC check performed. So for example, when writing to a register, a CRC check failure results in the error flag being set and the write operation being aborted. However, to ensure that the register write was successful, read back the register and verify the checksum.

    I think there's a section in the datasheet that discussed how CRC checksum is calculated for the read and write transaction. So ideally you are expecting something similar to the figures below. Can you share as a scope shot of your digital interface please?  

    You can also check this sample code as I know this includes CRC computation.

    https://wiki.analog.com/resources/tools-software/uc-drivers/ad7124 

    If you have specific query regarding the no-OS driver for AD7124, I think someone from the Microcontroller no-OS Drivers community might be able to help you.

    Thanks,

    Jellenie

Children