Can anybody help me in calculating CRC for stream of bytes using lookup table?

I need to calculate CRC for a given stream of bytes. I was asked to follow the table method so that it consumes less number of machine cycles. So, I have created a lookup table which has all the remainders of 0x to 0xff. My calculations are correct only for one byte. How to cumulatively calculate the value for any number of bytes using the same table? Can anybody help me in calculating CRC for stream of bytes (atleast for two bytes)?

For example, if input data stream (in hex) is 0x0A, 0x75, then the CRC value for it using the polynomial 0x01864CFB is 0x306B8E.

✅ Answers

? Best Answer

  • Perhaps you need to make much bigger tables… tables of bytes.

    You’re thinking too small. You should be created tables of 16 bytes by 16 bytes. (then you can process your stream 16 bytes at a time)

  • Other Related Questions

    Learning Visual Basic ?

    Answers Favorite AnswerTry using "System.Diagnostics.Process. GetProcessesByName( "iwmp" ).Length > " for your check.

    Microsoft Office word Fast answer needed its urgent?

    Answers Favorite AnswerTry this:http://www.techsupport.com///microsoft-wo...Here is another thread re: the same issue with instructions:http://www.pcreview.co.uk/forums/modification-not-...http://www.techsupport.com///microsoft-wo...http://support.microsoft.com/kb/http://answers.microsoft.com/en-us/office/forum/of...

    Can I download a whole city android google maps?

    Answers Favorite Answer:) Yes!!!Interesting question. I wonder why it has blocked in this way especially considering that Google Earth is very detailed and has good maps of Israel.

    What is meant by ROM ? Explain in simple but elaborate terms.What about mobile ROM’s?

    Answers Favorite AnswerHi Diva below is a link that will give a simple answer.http://wiki.answers.com/Q/What_does_ROM_stand_for_...Hope this helps.Source(s): Experience and wiki answers.ROM is Read only memory. i.e data can write only once.There two types of ROM..ROM.PROMThe difference between ROM and PROM.that is ROM is programmed during manufacturing it means data stored by manufacturing company.PROM is blank memory that a user programmable memory.user can store content on PROM.both ROM and PROM are Read only memory Data can write only once.and its not possible to write so many time.Memories of PROM and ROM are Non-volatile in nature. Its that stored informations can retain even power goes off.

    See also  NFC (Near Field Communication) Technology in the future?

    Leave a Comment