CRC Calculator Help

This is a discussion on CRC Calculator Help within the C Programming forums, part of the General Programming Boards category; I'm trying to verify the CRC Calculation in my code and all I can find is this site: http://www.zorc.breitbandkatze.de/crc.html Can ...

  1. #1
    Registered User
    Join Date
    Sep 2007
    Location
    Boston
    Posts
    25

    CRC Calculator Help

    I'm trying to verify the CRC Calculation in my code and all I can find is this site:

    http://www.zorc.breitbandkatze.de/crc.html

    Can anyone verify if this is printing out the correct values? I am interesting in the CRC-CCITT method.

    Website Inputs:

    CRC Order: 16
    CRC polynom: 1021
    Initial value: 0000
    Final XOR value: 0000

    Data Sequence: %FF%FF%FF%FF%FF%FF%FF%FF

    Result: A6E1h or 42,721.

    I'm trying to pass FF in 8 times, getting a final value of 45,906 or B352h in my code.


    Thanks in advance

    -Duke
    Last edited by Dukefrukem; 09-21-2007 at 01:12 PM.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,494
    Post your actual code, and your actual test code perhaps?
    If you did mess it up, we can't possibly guess how.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Sep 2007
    Location
    Boston
    Posts
    25
    My code is just a CRC register that does the calculation for me. I was hoping someone could confirm the website to be wrong. I think it is tho.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. CRC Check
    By silentkarma in forum C++ Programming
    Replies: 8
    Last Post: 03-01-2008, 03:20 AM
  2. question in CRC arithmetic
    By mycount in forum C Programming
    Replies: 4
    Last Post: 08-22-2006, 06:30 PM
  3. CRC problem
    By NewGuy100 in forum C Programming
    Replies: 6
    Last Post: 09-11-2005, 08:57 AM
  4. Crc error
    By Oluf in forum Tech Board
    Replies: 21
    Last Post: 04-30-2004, 09:57 AM
  5. CRC / checksum
    By Zoltarc in forum C++ Programming
    Replies: 0
    Last Post: 11-30-2002, 10:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21