Hi,
sorry I posted this first in the wrong forum (software)
maybe somebody can give me an hint what I'm doing wrong here. I used this to calculate a CRC checksum:
test_string:='teststring';
CRCstreamInit($0810);
tst_crc:= CRCstreamAddP(@test_string, 10);
WriteLn(SerOut, 'CRC: ['+IntToHex(tst_crc)+']');
What I get is a "D91C", but the correct result should be "C02A" ( assuming the CRC start value is $0000, but even if I calculate with a start value of $FFFF and a seed/ poly of $0810 I should get $6068) so it doesn't add up.
I'm using Compiler Version 4.93.08 Date 080501
Any Ideas?
Uli
sorry I posted this first in the wrong forum (software)
maybe somebody can give me an hint what I'm doing wrong here. I used this to calculate a CRC checksum:
test_string:='teststring';
CRCstreamInit($0810);
tst_crc:= CRCstreamAddP(@test_string, 10);
WriteLn(SerOut, 'CRC: ['+IntToHex(tst_crc)+']');
What I get is a "D91C", but the correct result should be "C02A" ( assuming the CRC start value is $0000, but even if I calculate with a start value of $FFFF and a seed/ poly of $0810 I should get $6068) so it doesn't add up.
I'm using Compiler Version 4.93.08 Date 080501
Any Ideas?
Uli