CRC-8 checksum function

Also search this forum. E.g. Help on CRC-8 function - #9 by Steve-Mcl