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.

Can anybody explain the CRC calculation method using Polynomial and seed value?

Hi TI,

Can anybody explain the procedure followed in the following diagram.? I really can not find anything meaningful from this?

Or else Please explain the steps to calculate the CRC value using the Polynomial and Seed value and Message?


Expecting a good guidance to understand this.


Thanks in advance.

Regards,

Karthikeyan.K

  • Hi Karthikeyan,

    Richard's post here e2e.ti.com/.../104764 contains a lot of information on the CRC mechanism. Have a look and see if it helps.

    Regards, Tony

  • For N2HET - you need to serialize the CRC algorithm in the SENT standard - because of memory limitations.

    Here's a program I used a while back to compare the parallel algo from the standard w. it's serialized version:

    2311.crc.cpp

    Here's HET code for the CRC:

    CRC4_SEED .equ 05h
    CRC4_POLY .equ 0Dh
    MOV32 {type=IMTOREG, reg=T, data=0, hr_data=8h} CRC4: ADD {src1=R, src2=R, dest=R, data=DUMMY} AND {src1=S, src2=T, dest=NONE} BR {event=Z, cond_addr=CRC4_a} OR {src1=R, src2=IMM, dest=R, data=0, hr_data=1h} CRC4_a: AND {src1=R, src2=IMM, dest=NONE, data=0, hr_data=10h} BR {event=Z, cond_addr=CRC4_b} XOR {src1=R, src2=IMM, dest=R, data=0, hr_data=CRC4_POLY} CRC4_b: AND {src1=R, src2=IMM, dest=R, data=0, hr_data=0Fh} ADD {src1=T, src2=ZERO, dest=T, smode=LSR, scount=1, data=DUMMY} BR {event=NZ, cond_addr=CRC4}

    Sorry for the bad indentation - copied it out of a PDF file.