XC886/888CLM
Controller Area Network (MultiCAN) Controller
User’s Manual
15-27
V1.3, 2010-02
MultiCAN, V1.0
15.1.8
Message Object Data Handling
This section describes the handling capabilities for the Message Object Data of the
MultiCAN module.
15.1.8.1
Frame Reception
After the reception of a message, it is stored in a message object according to the
scheme shown in
. The MultiCAN module not only copies the received data
into the message object, but it provides advanced features to enable consistent data
exchange between MultiCAN and CPU.
MSGVAL
During the frame reception, information is stored only in the message object when
MOSTATn.MSGVAL = 1. If bit MSGVAL is reset by the CPU, the MultiCAN module
stops all ongoing write accesses to the message object so that the message object can
be reconfigured by the CPU with subsequent write accesses to it without being disturbed
by the MultiCAN.
RTSEL
When the CPU re-configures a message object during CAN operation (for example,
clears MSGVAL, modifies the message object and sets MSGVAL again), the following
scenario can occur:
1. The message object wins receive acceptance filtering.
2. The CPU clears MSGVAL to re-configure the message object.
3. The CPU sets MSGVAL again after re-configuration.
4. The end of the received frame is reached. As MSGVAL is set, the received data is
stored in the message object, a message interrupt request is generated, gateway and
FIFO actions are processed, etc.
After the re-configuration of the message object (after step 3 above) the storage of
further received data may be undesirable. This can be achieved through bit
MOCTRn.RTSEL (“Receive/Transmit Selected”) that allows a message object to be
disconnected from an ongoing frame reception.
When a message object wins the receive acceptance filtering, its RTSEL bit is set by the
MultiCAN module to indicate an upcoming frame delivery. The MultiCAN module checks
RTSEL whether it is set on successful frame reception to verify that the object is still
ready for receiving the frame. The received frame is then stored in the message object
(along with all subsequent actions such as message interrupts, FIFO & gateway actions,
flag updates) only if RTSEL = 1.
When a message object is invalidated during CAN operation (resetting bit MSGVAL),
RTSEL should be cleared before setting MSGVAL again (latest with the same write
access that sets MSGVAL) to prevent the storage of a frame that belongs to the old
*
Содержание XC886CLM
Страница 1: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 3: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 324: ...XC886 888CLM Serial Interfaces User s Manual 12 52 V1 3 2010 02 Serial Interfaces V 1 0...
Страница 663: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG...