the new generator polynomial, with result stored in the16-bit register. Return to step 4.
5b) If the bit shifted out to the right is zero, return to step 4.
6) Repeat steps 4 and 5 until 8 shifts have been performed.
7) Exclusive OR the next data byte with the 16-bit register.
8) Repeat steps 4 through 7 until all bytes of the packet have been calculate by XOR
9) The content of the 16-bit register is CRC-16
Procedure for Calculating the 6403 Bytes of 16 Hex.
Step
Byte
Action
Register
Bit#
Shift
2
Initial Value
1111 1111 1111 1111
1
Load the first byte
0000 0000 0110
0100
3
XOR
1111 1111 1001 1011
4
SHIFT 1 bit to the right
0111 1111 1100 1101
1
1
5a
XOR polynomial
1101 1111 1100 1100
4
SHIFT 1 bit to the right
0110 1111 1110 0110
2
0
4
SHIFT 1 bit to the right
0011 0111 1111 0011
3
0
4
SHIFT 1 bit to the right
0001 1011 1111
1001
4
1
39