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----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Benjamin Menk|c Sent: 17 October 2001 09:55 To: PICLIST@MITVMA.MIT.EDU Subject: [PIC]: Checksum of a hexfile 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 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 listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body