![]() ![]() ![]() Hope I wont bother to much and wander if you can help me with some additional information. I've been looking for a solution for weeks now and you really made my day I really appreciate your time and effort and I would like to say : THANK YOU VERY MUCH !!! I have tried in a old fashion way by converting the bits in Boolean but it doesn't really work. Tmp1 = (chks & 0x08) ^ (tmp2 > 1 ( Shift checksum right 1 bit)Ĭhks = chks & tmp2 ( Rotate calculated bit 0 into bit 7) Tmp2 = chks & 0x01 ( Get checksum bit 0)Ĭhks = (chks & 0xFE) & tmp2 ( Put the XOR result in checksum bit 0) Instructions by manufacture to calculate the checksum also in the attached picture:Įach bit of a byte coming is XOR with the bit 0 of CRC check register, the result of the XOR is used to change the bit 4 and 3 with a XOR as well then all bits are shifted to the right for the next bit. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |