17.2.11 Get CRC (GET_CRC
)
Command
GET_CRC
calculates the CRC of the buffer from the specified address to
the specified length, using the table look-up method. The CRC details are as follows:- CRC-CCITT, 16-bit
- Polynomial: X^16+X^12+X^5+1, hex 0x00011021
- Seed: 0xFFFF
- MSB shifted in first
Note:
-
In the response, only the CRC LSb, 16 bits are valid.
-
The PE will automatically determine if the hardware CRC is available and uses it by default. The hardware CRC is not used on PIC32MX1XX/2XX devices.
Field | Description |
---|---|
Op code | 0x8 |
Operand | Not used |
Address | Address where to start calculating the CRC |
Length | Length of buffer on which to calculate the CRC, in number of bytes |
Expected Response (2 words):