$ 0 0 Take a look at the CRC functions in the BASCOM manual. For something so simple it works very well.