![Texas Instruments TMS320x281 series Скачать руководство пользователя страница 12](http://html1.mh-extra.com/html/texas-instruments/tms320x281-series/tms320x281-series_reference-manual_1095203012.webp)
1.2
The CAN Network and Module
1.2.1 CAN Protocol Overview
Bit length
1
12 or 32
Start bit
Arbitration field which contains:
6
0-8 bytes
Data field
Control bits
16
CRC bits
7
End
2
Acknowledge
– 11-bit iden RTR bit for standard frame format
– 29-bit iden SRR bit + IDE bit + RTR bit for extended frame format
Where: RTR = Remote Transmission Request
SRR = Substitute Remote Request
IDE = Identifier Extension
Note: Unless otherwise noted, numbers are amount of bits in field.
The CAN Network and Module
www.ti.com
The controller area network (CAN) uses a serial multimaster communication protocol that efficiently
supports distributed real-time control, with a very high level of security, and a communication rate of up to
1 Mbps. The CAN bus is ideal for applications operating in noisy and harsh environments, such as in the
automotive and other industrial fields that require reliable communication.
Prioritized messages of up to eight bytes in data length can be sent on a multimaster serial bus using an
arbitration protocol and an error-detection mechanism for a high level of data integrity.
The CAN protocol supports four different frame types for communication:
•
Data frames that carry data from a transmitter node to the receiver nodes
•
Remote frames that are transmitted by a node to request the transmission of a data frame with the
same identifier
•
Error frames that are transmitted by any node on a bus-error detection
•
Overload frames that provide an extra delay between the preceding and the succeeding data frames or
remote frames.
In addition, CAN specification version 2.0B defines two different formats that differ in the length of the
identifier field: standard frames with an 11-bit identifier and extended frames with 29-bit identifier.
CAN standard data frames contain from 44 to 108 bits and CAN extended data frames contain 64 to 128
bits. Furthermore, up to 23 stuff bits can be inserted in a standard data frame, and up to 28 stuff bits in an
extended data frame, depending on the data-stream coding. The overall maximum data frame length is
then 131 bits for a standard frame and 156 bits for an extended frame.
The bit fields that make up standard/extended data frames, along with their position as shown in
include the following:
•
Start of frame
•
Arbitration field containing the identifier and the type of message being sent
•
Control field indicating the number of bytes being transmitted.
•
Up to 8 bytes of data
•
Cyclic redundancy check (CRC)
•
Acknowledgment
•
End-of-frame bits
Figure 1-2. CAN Data Frame
The eCAN controller provides the CPU with full functionality of the CAN protocol, version 2.0B. The CAN
controller minimizes the CPU’s load in communication overhead and enhances the CAN standard by
providing additional features.
The architecture of eCAN module, shown in
, is composed of a CAN protocol kernel (CPK) and
a message controller.
12
Architecture
SPRU074F – May 2002 – Revised January 2009