Closed tico-tico closed 8 years ago
I have tested the 16-bit Version on an atmega328 @16MHz with 254 bytes payload:
You mean you used asm function _crc16_update(uint16_t __crc, uint8_t __data)
and you liked it?
indeed, i did. and it returned the right value too. could you imagine?
could you imagine?
ah! the magic indeed! https://github.com/PaulStoffregen/OneWire/pull/13
They have a nice implementation of crc8 in assembly language. The result is smaller and (i guess) faster. They have crc16 as well, but i can't understand what you are doing in the code, so i can't propose any changes for crc16.