I have a protocol spec sheet for a TWI device which states:
The CRC bytes are an eight bit cyclic redundancy check using an initial seed of 0x5A and a polynomial XOR value of 0x18.
The spec gives some example commands:
and also later an additional example with CRC 0x07 resulting from Command 0x15
It also states
Data are sent bit-serially with the most significant bit first.
I tried to calculate CRC values for the command examples given using http://www.sunshine2k.de/coding/javascript/crc/crc_js.html
playing with reflected and non-reflected inputs and results, but I can't get the calculated CRC to match the command examples.
Am I missing something obvious?