Omega CN1166 Video Game Controller User Manual


 
ii. Because only the remainder is of interest, the MSB (the rightmost bit)
may be discarded.
This means the polynomial has the value Hex A001. The CRC algorithm is as
follows:
4-6 Volume II O077-4
XOR 1st 8 bits
of data with MSB
of result
Pre-load 16-bit
result with 0x0FF
XOR next 8 bits of
data with MSB of
result
All
8 bits
shifted?
Yes
Yes
No
No
Data
finished?
No
Yes
Shift result
right 1 bit
Is
bit shifted
out set?
XOR result
with
polynomial
Append
16 bits of
result to
data
Least significant byte
Most significant byte
Normal Bit Order
Most
significant
bit
Least
significant
bit
Least significant byte
Most significant byte
Reversed Bit Order
Most
significant
bit
Least
significant
bit
REVER
S
ED BIT ORDER U
S
ED