>-----Original Message----- >From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] >Sent: 08 April 2005 00:10 >To: 'Microcontroller discussion list - Public.' >Subject: RE: [PIC] Hamming ECC again... In C, this time > > >> Correct, James. With my simple Hamming code, it's impossible >> to differentiate between a correctable one-bit error and a >> non- correctable two-bit error (or, for that matter, between >> zero errors and three errors). > >Still and all, when bit 7 is set, you know there was an error >and the data may, or may not be corrected. A single bit error >will always be detected (and corrected) and the percentage >chance that a multibit error could get through undetected is >next to nothing. > >A very nice thing to have. Agreed. I suppose the addition of a checksum at the end of a data packet would allow you to essentialy ignore bit 7. If any single bit errors have been corrected, the checksum will match. A little more overhead, but with Scott et al's equally cunning CRC functions it won't be a great deal. I'm planning on having a play with some of the cheap wireless modules sometime soon, this sounds perfect for a simple error correction scheme. Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist