CAN BUS - algorithm for fast CRC calculation

Discussion in 'The Projects Forum' started by Krzysztof Bieda, May 25, 2016.

  1. Krzysztof Bieda

    Thread Starter Member

    Jan 5, 2016
    32
    0
    Hello Everyone!

    I have to develop a code that will calculate CRC for CAN BUS?

    Would you recommend me any fast algorithm?
    I would be happy not to calculate but to use somehow a lookup table.

    Best,
    Chris
     
  2. Papabravo

    Expert

    Feb 24, 2006
    10,135
    1,786
    All CAN controllers compute the CRC in hardware. No processor is fast enough to compute it in time to throw an error if one occurs; it is part of the CAN protocol. BTW I've never seen one and I can't even tell you how to create one. The usual methods produce bit errors which cause the transmitter to throw ERROR frames.
     
Loading...