Pages: 1 ... 6 7 [8]
Author Topic: MED 17 , EDC 17 EEPROM CHECKSUM  (Read 89510 times)
Team dz
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


« Reply #105 on: December 09, 2023, 03:26:49 PM »

ALGO  SIMPLE CRC  Xor
Logged
doot47
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


« Reply #106 on: December 13, 2023, 01:25:40 PM »


thank you friend  Smiley Smiley Smiley
Logged
beginner
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


« Reply #107 on: March 06, 2024, 07:48:29 PM »

does any one have a working c# for this algo ?
Logged
deutsch1988
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 3


« Reply #108 on: April 22, 2024, 12:03:16 PM »

Hello.
And i am interessing abouth here. Will up this theme!
Logged
deutsch1988
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 3


« Reply #109 on: April 23, 2024, 12:13:59 PM »

6 days i am trying to fix this , buth CR1 dont work. here pascal code, what its wrong?


Code:

[codefunction CRC32T(Initial: LongWord; Data: array of Byte; DataSize: LongWord): LongWord;
const
 poly = $EDB88320;
var
 j: Integer;
 tmp1, tmp2, crc, i: LongWord;
begin
 crc := Initial;
 i := 0;
 while i < DataSize do
 begin
   tmp1 := 0;
   tmp2 := crc xor Data[i];
   for j := 0 to 7 do
   begin
     if tmp2 and 1 = 1 then
       tmp1 := tmp1 xor poly;
     tmp2 := tmp2 shr 1;
   end;
   crc := (crc shr 8) xor tmp1;
   Inc(i);
 end;
 Result := not crc;
end;
« Last Edit: April 23, 2024, 12:16:25 PM by deutsch1988 » Logged
deutsch1988
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 3


« Reply #110 on: April 23, 2024, 02:54:25 PM »

Problem fixed CS1.
Special Thanks to Anton from group. he have writed code in Visual Studio, and i have converted this code to Pascal!
SPECIAL THANKS ANTON!!!
Great mann.helped very very goood!!!


after finish program i will share the direct basic exe file, just put datas and get CS1 and CS2 or automatic edit CS on file with cheking!
Logged
Pages: 1 ... 6 7 [8]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.038 seconds with 16 queries. (Pretty URLs adds 0s, 0q)