Renesas RL78/G1P Hardware User Manual page 667

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P
20.4.2 CRC data register (CRCD)
This register is used to store the CRC operation result of the general-purpose CRC.
The setting range is 0000H to FFFFH.
After 1 clock of CPU/peripheral hardware clock (f
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.
Address: F02FAH
After reset: 0000H
Symbol
15
14
CRCD
Cautions 1. Read the value written to CRCD register before writing to CRCIN register.
2. If conflict between writing and storing operation result to CRCD register occurs, the writing is
ignored.
20.4.3 Operation flow
Figure 20-6 shows the CRC operation function (general-purpose CRC).
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
Figure 20-5. Format of CRC Data Register (CRCD)
R/W
13
12
11
10
Figure 20-6. CRC Operation Function (General-Purpose CRC)
START
Specify the start and end addresses
Write CRCD register to 0000H
Read data
Store data to CRCIN register
Address+1
Last address?
No
CHAPTER 20 SAFETY FUNCTIONS
) has elapsed from the time CRCIN register is written, the CRC
CLK
9
8
7
6
Store the start and end addresses in a
;
general-purpose register.
;
; Initialize CRCD register
; Read 8-bit data of corresponding address
; Execute CRC calculation for 8-bit data
Yes
1 clock wait (f
Read CRCD register
5
4
3
2
)
CLK
; Get CRC result
; Compare the value
; with the stored
End
; expected value and
; make sure that the
; values match.
1
0
648

Advertisement

Table of Contents
loading

Table of Contents