Need CRC for RF PIC2PIC Bit arrayed interface


Results 1 to 11 of 11

Threaded View

  1. #4
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default Another approach...

    Here is a ECC idea based on hamming code used for flash memory. It may be something you can apply to your situation. It has the advantage of being able to correct a single bit error, in addition to detecting multiple bit errors.
    Hamming Codes for NAND Flash Memories.pdf

    I have some ideas about how to implement this if you think it would be useful in your situation. The bigger the data packet, the more efficient the technique, but the more likely, in a noisy environment, that you will have more than one single bit error, and then be required to retransmit. Here is an example of one way you could use this: Send 6 * 10 bit ADC values + 12 bits of ECC for a total of 72 bits (9 bytes) of data. Since you are using only 60 of the first 64 bits, the top 4 ECC bits could be loaded into the 4 bits not used by the ADC values. When calculating the ECC, those 4 bits could always be 0, then filled with the ECC values before transmission. At the receiving end, the ECC values are replaced with 0s again before the ECC recalculation.

    I have played with this a little bit on 256 Byte (2048 bit) data packets, so I might have some code you could use as a starting place.

    HTH,
    Steve
    Last edited by SteveB; - 23rd August 2006 at 00:45.

Similar Threads

  1. Dallas CRC8 Routines
    By Tom Estes in forum Code Examples
    Replies: 23
    Last Post: - 8th May 2018, 18:07
  2. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07:55
  3. Doubt with interrupt on change
    By lugo.p in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th March 2010, 15:22
  4. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts