Searching \ for '[PIC]: Checksum of a hexfile' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/method/errors.htm?key=checksum
Search entire site for: 'Checksum of a hexfile'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Checksum of a hexfile'
2001\10\17@045905 by 1?Q?Benjamin_Menk=FCc?=

flavicon
face
How is the checksum of a pic hexfile calculated?

ie: :020670001A2945

in this line 0x45 is CS, but i don't know why.



regards,



Ben



--------------------------
Benjamin Menküc
Auto-Intern GmbH
Haberlandstr. 125
44359 Dortmund
Tel: 0231-1893070
Fax: 0231-93699548
http://www.auto-intern.com


Meinen PGP-Schlüssel kann man unter:

http://www.auto-intern.com/php/pgp_menkuec.php

finden.

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spam_OUTlistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body


2001\10\17@051046 by Martin Hill

picon face
You add up all the byte numbers and then subtract from FF, so for this the
checksum is FF - (02 + 06 + 70 + 00 + 1A + 29) = 45.

Martin

{Original Message removed}

2001\10\17@101109 by Karl Seibert

flavicon
face
Ben,

To calculate the checksum, add all of the data bytes (exclude
the : and the checksum)
02 + 06 + 70 + 00 + 1A + 29 = BB
keep the low order byte (still BB)
take the twos complement (not BB + 1 = 44 + 1 = 45)

To use the checksum to check the result, add all the data bytes
including the checksum
02 + 06 + 70 + 00 + 1A + 29 + 45 = 100
The low byte should be (and is) 00.

Note that the Intel hex file format (like this) uses twos complement
for the checksum, while Motorola S-record format uses ones complement.

Quoting Benjamin Menk|c <.....benjaminKILLspamspam@spam@AUTO-INTERN.COM>:
{Quote hidden}

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email listservspamKILLspammitvma.mit.edu with SET PICList DIGEST in the body


More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...