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
− 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).