Renesas M16C/64A Series User Manual page 687

Table of Contents

Advertisement

M16C/64A Group
29.2.2
CRC Mode Register (CRCMR)
CRC Mode Register
b7 b6 b5 b4
b3
b2
29.2.3
CRC Data Register (CRCD)
CRC Data Register
(b15)
b7
Write 0000h to the CRCD register and then write the first data to the CRCIN register. Execute this
operation every time CRC calculation is performed. Refer to the setting procedures described in Figure
29.2 "CRC Calculation When Using CRC-CCITT" and Figure 29.3 "CRC Calculation When Using CRC-
16".
29.2.4
CRC Input Register (CRCIN)
CRC Input Register
b7
R01UH0136EJ0210 Rev.2.10
Jul 31, 2012
b1
b0
Symbol
CRCMR
Bit Symbol
Bit Name
CRC polynomial select
CRCPS
bit
No register bits. If necessary, set to 0. The read value is undefined.
(b6-b1)
CRCMS
CRC mode select bit
(b8)
b0
b7
b0
When data is written to the CRCIN register after setting the
initial value in the CRCD register, the CRC code can be
read from this register.
b0
Symbol
CRCIN
Data input
Address
03B6h
16
12
0: X
+ X
16
15
1: X
+ X
0: LSB first
1: MSB first
Symbol
Address
CRCD
03BDh to 03BCh
Function
Address
03BEh
Function
29. CRC Calculator
Reset Value
0XXX XXX0b
Function
5
+ X
+ 1 (CRC-CCITT)
2
+ X
+ 1 (CRC-16)
Setting Range
0000h to FFFFh
Reset Value
Undefined
Setting Range
00h to FFh
RW
RW
RW
Reset Value
Undefined
RW
RW
RW
RW
Page 654 of 800

Advertisement

Table of Contents
loading

Table of Contents