Operation - NEC V850E/RS1 User Manual

32-/16-bit single-chip microcontroller with can interface
Table of Contents

Advertisement

26.4 Operation

An example of the CRC operation circuit is shown below.
The code when 01H is sent LSB first is (1000 0000). Therefore, the CRC code from generation polyno-
mial X
0001) using the modulo-2 operation formula.
The modulo-2 operation is performed based on the following formula.
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 0
Therefore, the CRC code becomes
Since LSB first is used, this corresponds to 1189H in hexadecimal notation.
Downloaded from
Elcodis.com
electronic components distributor
Figure 26-4: CRC Operation Circuit Operation Example (LSB First)
(1) Setting of CRCIN = 01H
(2) CRCD register read
16
12
5
+ X
+ X
+ 1 becomes the remainder when (1000 0000) X
− 1 = 1
1 0001 0000 0010 0001 1000 0000 0000 0000 0000 0000
User's Manual U16702EE3V2UD00
Chapter 26 CRC Function
b15
1189H
LSB
1000 1000
1000 1000 0001 0000 1
1000 0001 0000 1000 0
1000 1000 0001 0000 1
1001 0001 1000 1000
LSB
9
8
1
1
1001
0001 1000 1000
b7
b0
b0
CRC code is stored
16
is divided by (1 0001 0000 0010
MSB
MSB
795

Advertisement

Table of Contents
loading

Table of Contents