S
9.5 CRC16 calculation algorythm :
FFFF
→
CRC
CRC
⊕
BYTE
→
CRC
END
yes
no
n = 0
n = n + 1
yes
no
shifting by 1 bit to the
right of CRC
carry
CRC
⊕
poly
→
CRC
n > 7
next byte
yes
no
Note 1
:
⊕
= exclusive or.
Note 2
: POLY = A001 (hex).
Note 3
:
The CRC 16 calculation applies to all bytes in the pattern (except CRC16).
Note 4
:
Caution ! In the CRC 16, the 1st sent byte is the LSB.
Example
: Pattern 1-3-0-75-0-2 CRC16 = 180-29 (values are decimal).
end of pattern