![Texas Instruments TMS320x281 series Скачать руководство пользователя страница 13](http://html1.mh-extra.com/html/texas-instruments/tms320x281-series/tms320x281-series_reference-manual_1095203013.webp)
CAN Bus
CAN controller
Message Controller
CAN Protocol Kernel (CPK)
CAN Transceiver
RX
TX
CPU
Receive Buffer
A
Transmit Buffer
A
1.3
eCAN Controller Overview
www.ti.com
eCAN Controller Overview
Figure 1-3. Architecture of the eCAN Module
A
The receive and transmit buffers are transparent to the user and are not accessible by user code.
Two functions of the CPK are to decode all messages received on the CAN bus according to the CAN
protocol and to transfer these messages into a receive buffer. Another CPK function is to transmit
messages on the CAN bus according to the CAN protocol.
The message controller of a CAN controller is responsible for determining if any message received by the
CPK must be preserved for the CPU use or be discarded. At the initialization phase, the CPU specifies to
the message controller all message identifiers used by the application. The message controller is also
responsible for sending the next message to transmit to the CPK according to the message’s priority.
The eCAN is a CAN controller with an internal 32-bit architecture.
The eCAN module consists of:
•
The CAN protocol kernel (CPK)
•
The message controller comprising:
–
The memory management unit (MMU), including the CPU interface and the receive control unit
(acceptance filtering), and the timer management unit
–
Mailbox RAM enabling the storage of 32 messages
–
Control and status registers
After the reception of a valid message by the CPK, the receive control unit of the message controller
determines if the received message must be stored into one of the 32 message objects of the mailbox
RAM. The receive control unit checks the state, the identifier, and the mask of all message objects to
determine the appropriate mailbox location. The received message is stored into the first mailbox passing
the acceptance filtering. If the receive control unit could not find any mailbox to store the received
message, the message is discarded.
A message is composed of an 11- or 29-bit identifier, a control field, and up to 8 bytes of data.
SPRU074F – May 2002 – Revised January 2009
Architecture
13