EasyManua.ls Logo

Cypress FM4 Series - CRC Calculation Sequence

Cypress FM4 Series
1102 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CHAPTER 13: CRC (Cyclic Redundancy Check)
744 FM4 Peripheral Manual, Doc. No. 002-04856 Rev. *E
2.1 CRC Calculation Sequence
Figure 2-1 shows the CRC calculation sequence. In this section, it is assumed that the Initial Value
Register (CRCINIT) setting, CRC16 or CRC32 mode selection (CRCCR:CRC32), and byte- or bit-order
setting (CRCCR:LTLEND, CRCCR:LSBFST) have already been configured.
If the initial value can be set to 0xFFFFFFFF, the Initial Value Register (CRCINIT) setting can be omitted.
Figure 2-1 CRC Calculation Sequence
CRC
DMAC
MCU
Initialization
CRC reading
Data writing
Data writing
Data writing
Start
CRC Calculation
To perform initialization, write 1 to the initial value bit (CRCCR.INIT). The value of the Initial Value
Register (CRCINT) is loaded to the CRC Register (CRCR).
To write input data, write to the Input Data Register (CRCIN). This then starts CRC calculation. If
necessary, input data can be written continuously. Furthermore, different bit widths can be used in a
sequence to write input data.
To obtain a CRC code, read the CRC Register (CRCR).

Table of Contents

Related product manuals