CRC preset and residue?

You initialize the CRC register with the preset before feeding in your message The residue is what should be left in the CRC register after feeding through a message, plus its correct CRC If you just want to send a message, you won't see the residue value. But when the device runs your message+CRC through the CRC algorithm again, it'll see a final value of 0x1D0F if there were no transmission errors You can also demonstrate this to yourself without getting the device involved. This can help you confirm that your algorithm is doing something that, at least, resembles a CRC First, calculate the CRC for your message Append your message and that CRC, then pass the whole thing through a new CRC calculation (remember to reset to the preset value first.) If all went well, your CRC register should contain the residue value The best CRC explanation I've ever found is here: http://www.repairfaq.org/filipg/LINK/F_crc_v31.html#CRCV_001.

You initialize the CRC register with the preset before feeding in your message. The residue is what should be left in the CRC register after feeding through a message, plus its correct CRC. If you just want to send a message, you won't see the residue value.

But when the device runs your message+CRC through the CRC algorithm again, it'll see a final value of 0x1D0F if there were no transmission errors. You can also demonstrate this to yourself without getting the device involved. This can help you confirm that your algorithm is doing something that, at least, resembles a CRC.

First, calculate the CRC for your message. Append your message and that CRC, then pass the whole thing through a new CRC calculation (remember to reset to the preset value first. ) If all went well, your CRC register should contain the residue value.

The best CRC explanation I've ever found is here: http://www.repairfaq.org/filipg/LINK/F_crc_v31.html#CRCV_001.

The difference is in what the algorithm does with the two values. I just looked at a CRC algorithm myself and it looks pretty simple. Preset is the value it starts with and residue is XOR'd with the value at the end.

Now, the reason for choosing particular values for preset and residue, that I don't know.

Something's not right here. You're looking for a 16-bit CRC, but you've specified a 24-bit Preset and Residue. Post a link to the datasheet for the device you're looking at.

The best source for CRC information is, by the way, is Ross Williams' guide to CRC. Edit: Ah-hah, I see the "24-bit" preset was just the formatting of the table.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions