Fujitsu FR81S User Manual

Page of 2342
CHAPTER 38: CRC 
 
 
5. Operation 
 
FUJITSU SEMICONDUCTOR LIMITED 
CHAPTER
 : CRC 
FUJITSU SEMICONDUCTOR CONFIDENTIAL 
16 
5.5.  CRC Calculation Sequence 
The CRC calculation sequence is shown below. 
The sequence for the CRC calculation is shown below. In the following explanation, the initial value register 
(CRCINIT) setting, CRC16/32 selection (CRCCR.CRC32), byte order and bit order settings 
(CRCCR.LTLEND, CRCCR.LSBFST) have been done. (When the initial value of ALL "H" is acceptable, the 
setting for the initial value register (CRCINIT) can be omitted.) 
Figure 5-1 CRC Calculation Sequence 
 
 
To initialize, write "1" to the initialization bit (CRCCR.INIT). The value of the initial value register will 
be loaded to the CRC register (CRCR). 
 
Input data is written to the Input Data register (CRCIN). The writing operation starts the CRC 
calculation. Input data can be written continuously. In addition, there can be different bit widths of 
writing in a sequence. 
 
The CRC code is obtained with the readout of the CRC register (CRCR). 
Data write ()   
Data write ()   
Data write ()   
Initialization () 
CRC read () 
Start ()   
CRC calculation ()   
MB91520 Series
MN705-00010-1v0-E
1285