kindly tell me any efficient code for generating CRC for 40 bytes data I am using the modulo 2 division method.
with thanks, karthik.
An improvement right here
int i,j; // signed 16 bit variable
40 byte and 8 bits
try unsigned char
Most implementations that are table-based comes with two compilation options.
Either use a pre-built table (already there in the source code) or call a function to built the table.
Obviously, an embedded target with very little RAM should choose to use the pre-built table but placing it in the code space.
Google will show many, many implmenetations.
The documentation (or search on this forum for how to place variables in code) will answer how to place the table where it doesn't consume RAM.