Content originally posted in LPCWare by starblue on Sat Mar 12 04:33:43 MST 2016
Quote: vdlsaranya
As you have told that there is difference between 8-bit, 16-bit, or 32-bit access. But in the user manual of LPC11U67 microcontroller, there is no such register to differentiate the input given to CRC engine.
You don't need to configure it beforehand, as it is done for each access to the WR_DATA register, see the documentation for WR_DATA.
Quote:
Then, how can we get the CRC for packet with byte count which is not multiple of 4 (32 bit register accessing).
As far as I understand you need to write bytes to LPC_CRC->WRDATA8.
Quote: vtw.433e
I thought that for an n-bit CRC, the data length had to be a multiple of n bits.
No, in mathematical theory it can be any number of bits. Implementations usually support at least any number of bytes.