RL78/G1H CHAPTER 24 SAFETY FUNCTIONS
R01UH0575EJ0120 Rev. 1.20 Page 782 of 920
Dec 22, 2016
24.3.2.2 CRC data register (CRCD)
This register is used to store the general-purpose CRC operation result.
The possible setting range is 0000H to FFFFH.
After 1 clock of CPU/peripheral hardware clock (f
CLK) has elapsed from the time CRCIN register is written, the
CRC operation result is stored to the CRCD register.
The CRCD register can be set by a 16-bit memory manipulation instruction.
Reset signal generation clears this register to 0000H.
Figure 24 - 5 Format of CRC data register (CRCD)
Caution 1. Read the value written to CRCD register before writing to CRCIN register.
Caution 2. If writing and storing operation result to CRCD register conflict, the writing is ignored.
<Operation flow>
Figure 24 - 6 CRC Operation Function (General-Purpose CRC)
Address: F02FAH After reset: 0000H R/W
Symbol1514131211109876543210
CRCD
START
Write 0000H to CRCD register
Yes
No
Last address?
Address + 1
Specify the start and end addresses
; Store the start and end addresses in a
; general-purpose register.
Store data to CRCIN register
Read data
; Initialize CRCD register
; Read 8-bit data of corresponding address
; Execute CRC calculation for 8-bit data
; Compare the value
; with the stored
; expected value and
; make sure that the
; values match.
End
; Get CRC result
Read CRCD register
1 clock wait (fCLK)