TI论坛
直播中

李玉兰

8年用户 1562经验值
私信 关注
[问答]

求助,关于ADS125H02数据通讯格式及CRC校验问题求解


  • 一、根据手册关于CRC部分的介绍:
    The following is a general procedure to compute the CRC value:
    1. Left shift the concatenated 1-, 2-, 3-, or 4-byte argument (if required) to create a new 40-bit data value
    (the starting data value). The shifted data are padded with ones to the right of the argument.
    2. Align the MSB of the CRC polynomial (100000111) to the left-most, logic-one value of the data.
    3. Perform an XOR operation on the data value with the aligned CRC polynomial. The XOR operation
    creates a new, shorter length value. The bits of the data values that are not in alignment with the CRC
    polynomial drop down and append to the right of the new XOR result.
    4. When the XOR result is less than 100000000b, the procedure ends, yielding the 8-bit CRC value.
    Otherwise, continue with the XOR operation shown in step 2 using the current data value. The number of
    loop iterations depends on the value of the initial data.
    第1条中,将所有数据“左移扩展为40bit,最右边用1补齐”,与传统的crc计算方法不一致,传统的计算方法是在数据末尾补8个0。是手册笔误还是本就与正常的crc计算方法不同。
    二、数据手册中就spi数据的通讯格式没有给出详细的描述。该AD的通讯方式是lsb优先还是msb优先?例如要传输0xABCD,是按照“1010 1011 1100 1101”传输还是按照“1011 0011 1101 0101”传输呢?
    请相关专家解释一下,感谢。

回帖(2)

李勇进

2024-12-3 11:19:50
关于CRC的问题,我需要确认下,感谢您的反馈。
关于SPI通信格式,您可以参看数据手册表21和图81。
举报

林霆景

2024-12-3 11:20:00
是msb优先,参考数据手册9.5.3.2 Conversion Data Format。
举报

更多回帖

发帖
×
20
完善资料,
赚取积分