regregex Preferred Member
Joined: 30 Oct 2007 Posts: 119 Location: London, UK
|
| Jun 20, 2008 1:04 am |
|
|
Hello kilobravo, welcome to the forum.
The algorithm needed is one I've only seen before on the Microchip MCRF4XX series: | Code: | Name : "CRC-16/MCRF4XX"
Width : 16
Poly : 1021
Init : FFFF
RefIn : True
RefOut : True
XorOut : 0000
Check : 6F91
| (For an explanation of this record, see A Painless Guide to CRC Error Detection Algorithms.) (Search for filename "crc_v3.txt".)
(For a generic implementation in C, see A Painless Guide or the Calculator page.)
The algorithm is related to:- HDLC (X.25) except the final result is not XORed with 0xffff.
- MODBUS except the polynomial is 0x1021.
HTH.
Greg |
|