I am trying to calculate crc, but I always get what seems to be the wrong result.
I wrote this code to find see whats happens:
CRCINIRES = 0xFFFF;
CRCDIRB = '1';
CRCDIRB = '2';
CRCDIRB = '3';
CRCDIRB = '4';
CRCDIRB = '5';
CRCDIRB = '6';
CRCDIRB = '7';
CRCDIRB = '8';
CRCDIRB = '9';
crc = CRCINIRES;
the result suppose to be 0x29B1 according to the user guide assembly code, but I get 0x26B2 on CRCINIRES and 0x4D64 on CRCINIRES.
Am I doing something wrong?