I've never contributed anything and I'm not really good at this but here is something I was searching for and ended up writing myself. It works as shown but could be condensed.
// C Code to calculate 8 bit DOW CRC on characters in a buffer.
// The chars must be terminated with a <CR> 0x0D which is not
// included in the checksum.
// Test values: The CRC for characters "A7X2" = 0xC8
// Written and tested on CCS PIC C Compiler.
// It's not elegent but it works. Don Ware 7/2/09
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum