R01UH0136EJ0210 Rev.2.10
Page 654 of 800
Jul 31, 2012
M16C/64A Group
29. CRC Calculator
29.2.2
29.2.3
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
Function
Bit Symbol
Bit Name
RW
b7 b6 b5 b4
b1
b2
b3
Symbol
CRCMR
Address
03B6h
Reset Value
0XXX XXX0b
b0
CRC Mode Register
CRC polynomial select
bit
No register bits. If necessary, set to 0. The read value is undefined.
CRC mode select bit
CRCPS
—
(b6-b1)
CRCMS
0: LSB first
1: MSB first
0: X
16
+ X
12
+ X
5
+ 1 (CRC-CCITT)
1: X
16
+ X
15
+ X
2
+ 1 (CRC-16)
RW
—
RW
b7
Symbol
CRCD
Address
03BDh to 03BCh
Reset Value
Undefined
b0
Function
RW
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.
0000h to FFFFh
CRC Data Register
RW
Setting Range
b7
b0
(b8)
(b15)
b7
Symbol
CRCIN
Address
03BEh
Reset Value
Undefined
b0
Function
RW
Data input
00h to FFh
CRC Input Register
RW
Setting Range
Summary of Contents for M16C/60 Series
Page 853: ...M16C 64A Group R01UH0136EJ0210...