National Semiconductor CP3BT26 User Manual page 112

Reprogrammable connectivity processor with bluetooth, usb, and can interfaces
Table of Contents

Advertisement

Data Length Code (DLC)
The DLC field indicates the number of bytes in the data field.
It consists of four bits. The data field can be of length zero.
The admissible number of data bytes for a data frame rang-
es from 0 to 8.
Data Field
The Data field consists of the data to be transferred within a
data frame. It can contain 0 to 8 bytes. A remote frame has
no data field.
Cyclic Redundancy Check (CRC)
The CRC field consists of the CRC sequence followed by
the CRC delimiter. The CRC sequence is derived by the
transmitter from the modulo 2 division of the preceding bit
fields, starting with the SOF up to the end of the data field,
excluding stuff-bits, by the generator polynomial:
15
14
10
x
+ x
+ x
Arbitration Field
11
d
IDENTIFIER
10 ... 0
Note:
d = dominant
r = recessive
Arbitration Field
11
d
IDENTIFIER
28 ... 18
Note:
d = dominant
r = recessive
www.national.com
8
7
4
3
+ x
+ x
+ x
+ x
+ 1
STANDARD DATA FRAME (number of bits = 44 + 8N)
8N (0 < N < 8)
Control Field
4
8
d d d
DATA
LENGTH CODE
Bit Stuffing
Figure 36. Standard Data Frame
EXTENDED DATA FRAME (number of bits = 64 + 8N)
Control Field
18
4
r r
d d d
IDENTIFIER
DATA
17 ... 0
LENGTH CODE
Figure 37. Extended Data Frame
The remainder of this division is the CRC sequence trans-
mitted over the bus. On the receiver side, the module di-
vides all bit fields up to the CRC delimiter excluding stuff
bits, and checks if the result is zero. This will then be inter-
preted as a valid CRC. After the CRC sequence a single "re-
cessive" bit is transmitted as the CRC delimiter.
ACK Field
The ACK field is two bits long and contains the ACK slot and
the ACK delimiter. The ACK slot is filled with a "recessive"
bit by the transmitter. This bit is overwritten with a "domi-
nant" bit by every receiver that has received a correct CRC
sequence. The second bit of the ACK field is a "recessive"
bit called the acknowledge delimiter.
The End of Frame field closes a data and a remote frame. It
consists of seven "recessive" bits.
19.2.3
CAN Frame Formats
Data Frame
The structure of a standard data frame is shown in
Figure 36. The structure of an extended data frame is
shown in Figure 37.
Data Field
8
8N (0 < N < 0)
Data Field
8
Bit Stuffing
112
16
CRC Field
END OF
FRAME
15
CRC
r
r r
r r
16
CRC Field
END OF
FRAME
8
15
CRC
r
r r
r r
r r
r r
DS020
r r
r r
DS021

Advertisement

Table of Contents
loading

Table of Contents