Thread: CRC Calculator Help

  1. #1
    Registered User
    Join Date
    Sep 2007

    CRC Calculator Help

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

    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

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

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    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.

  3. #3
    Registered User
    Join Date
    Sep 2007
    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, 04: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, 11:05 PM