6/4/2019 10:24 AM | |
Joined: 4/11/2012 Last visit: 12/4/2023 Posts: 176 Rating: (34) |
I think I got it now. (Edit: I had not gotten it. Check next post.) Earlier I used too small sample size but when I started doing tests with 2+ different input words, I noticed the issue. The LSB means different things when calculating the CRC versus when checking the value. The CRC specification says "In the CRC 16, the 1st byte transmitted is the least significant one", but a better wording would actually be something like this: If I type the content of a word here, 0x1234, the "12" is the first byte I type, but the "34" is the least significant byte to the word value. But since the "12" is the first byte I typed / transmitted, that is the byte from which the CRC calculation starts. Now it makes sense. Edit: An issue came up, link to the discussion is here: |
Last edited by: Elonen at: 06/11/2019 11:30:44Added link to an issue that came up. Last edited by: Elonen at: 06/12/2019 09:34:14This post was incorrect, modified to reflect that. Check the next post. |
|
Follow us on