MAX32600 User’s Guide
CRC16 and CRC32 Hardware Accelerator
12.4 CRC-16-CCITT Example Calculation
12.4
CRC-16-CCITT Example Calculation
1. If an initial seed value other than 0xFFFF is desired, write initial seed value into
2. Set
to apply new initial seed value.
3. Write first data value to
. This data value may be 8-bits, 16-bits, or 32-bits wide. Pad upper bits with zeroes if less than 32-bits.
4. Read from
to obtain the CRC result.
5.
OPTIONAL
: Repeat steps 3 and 4 if additional data needs to be included in the CRC calculation.
Note
When computing the CRC over a range of data, step 3 may be repeated until all values have been written prior to proceeding to step 4 and reading
the final CRC value from the
register.
12.5
CRC-32 Example Calculation
1. If an initial seed value other than 0xFFFFFFFF is desired, write initial seed value into
2. Set
to apply new initial seed value.
3. Write first data value to
. This data value may be 8-bits, 16-bit, or 32-bits wide. Pad upper bits with zeroes if less than 32-bits.
4. Read from
to obtain the CRC result.
5.
OPTIONAL
: Repeat steps 3 and 4 if additional data needs to be included in the CRC calculation.
Note
When computing the CRC over a range of data, step 3 may be repeated until all values have been written prior to proceeding to step 4 and reading
the final CRC value from the
register.
12.6
Registers (CRC)
12.6.1
Module CRC Registers
Rev.1.3 April 2015
Maxim Integrated
Page 632
Содержание MAX32600
Страница 1: ...MAX32600 User s Guide April 2015...