Texas Instruments Development Kit for TM4C129x,Tiva™ ARM® Cortex™ -M4 Microcontroller DK-TM4C129X DK-TM4C129X Datenbogen

Produktcode
DK-TM4C129X
Seite von 2182
NEWDAT
while
EOB
is clear, the message object is locked and cannot be written to by the message
handler until the CPU has cleared the
NEWDAT
bit. Messages are stored into a FIFO buffer until the
last message object of this FIFO buffer is reached. Until all of the preceding message objects have
been released by clearing the
NEWDAT
bit, all further messages for this FIFO buffer are written into
the last message object of the FIFO buffer and therefore overwrite previous messages.
23.3.11.3 Reading from a FIFO Buffer
When the CPU transfers the contents of a message object from a FIFO buffer by writing its number
to the CANIFnCRQ register, the
TXRQST
and
CLRINTPND
bits in the CANIFnCMSK register should
be set such that the
NEWDAT
and
INTPEND
bits in the CANIFnMCTL register are cleared after the
read. The values of these bits in the CANIFnMCTL register always reflect the status of the message
object before the bits are cleared. To assure the correct function of a FIFO buffer, the CPU should
read out the message objects starting with the message object with the lowest message number.
When reading from the FIFO buffer, the user should be aware that a new received message is
placed in the message object with the lowest message number for which the
NEWDAT
bit of the
CANIFnMCTL register is clear. As a result, the order of the received messages in the FIFO is not
guaranteed. Figure 23-3 on page 1545 shows how a set of message objects which are concatenated
to a FIFO Buffer can be handled by the CPU.
December 13, 2013
1544
Texas Instruments-Advance Information
Controller Area Network (CAN) Module