Typical Usage Example - NXP Semiconductors PN7462 series User Manual

Table of Contents

Advertisement

NXP Semiconductors
• CRC value is read MSB first on the APB interface
Note: The same equations are used for LSB first and for MSB first. A simple serial shift is
performed on the input data, preset value and calculated CRC to output the correct CRC
value.

9.4 Typical Usage Example

For an input buffer size of 7 bytes and required output of 32-bit CRC with LSB first input,
the CRC_CONTROL_REG is configured with 0x00000015. The first 4 bytes of the buffer
is written to CRC_DAT32, the next 2 bytes is written to CRC_DAT16 and the last byte is
written to CRC_DAT8. The CRCDAT_CALC is returned that contains the computed CRC
Alternatively, after writing 4 bytes of buffer to CRC_DAT32 and the next 3 bytes can be
recursively written to CRC_DAT8 also.
CRC-16 set-up
Polynomial = x
Seed Value = 0xFFFF
Bit order reverse for data input: YES
1's complement for data input: NO
Bit order reverse for CRC sum: YES
1's complement for CRC sum: NO
CRC_MODE = 0x0000 0015
CRC_SEED = 0x0000 0000
CRC-32 set-up
Polynomial = x
Seed Value = 0xFFFF FFFF
Bit order reverse for data input: YES
1's complement for data input: NO
Bit order reverse for CRC sum: YES
1's complement for CRC sum: YES
CRC_CONTROL_REG = 0x0000 0015
CRC_SEED = 0xFFFF FFFF
UM10858
User manual
COMPANY PUBLIC
+ x
+ x
+ 1
16
15
2
+ x
+ x
+ x
+ x
+ x
32
26
23
22
16
12
All information provided in this document is subject to legal disclaimers.
Rev. 1.4 — 14 May 2018
314514
PN7462 family HW user manual
+ x
+ x
+ x
+ x
+ x
+ x
11
10
8
7
5
UM10858
+ x
+ x + 1
4
2
© NXP B.V. 2018. All rights reserved.
121 of 345

Advertisement

Table of Contents
loading

Table of Contents