Figure 2-6 shows what parameters are included in TX MSG RAM block.
The Tx buffers section can be
configured to hold dedicated Tx buffers as well as a Tx FIFO and Tx Queue. When the
Tx buffers section is shared by dedicated Tx buffers and a Tx FIFO and Tx Queue, the
dedicated Tx buffers start at the beginning of the Tx buffers section followed by
the buffers assigned to the Tx FIFO or Tx Queue. Table 2-1 shows the differences between Tx buffer mode, Tx FIFO mode and Tx queue mode.
Table 2-1 Differences Between Tx
Mode
| Tx Mode |
Description |
| Tx buffer mode |
Dedicated Tx buffers are intended for message transmission under
complete control of the host CPU. |
| Tx FIFO mode |
Tx FIFO allows transmission of messages with the same Message ID
from different Tx buffers in the order these messages have been
written to the Tx FIFO. |
| Tx queue mode |
The stored in the Tx Queue messages are transmitted starting with
the highest priority message (lowest Message ID). |
- TX Buffers Start Address: the
start address of Tx buffers in message RAM.
- Number of Dedicated Transmit
Buffers: defines how many elements are configured as dedicated Tx buffers.
- No of TX FIFO Elements: defines
how many elements are configured as Tx FIFO or Tx queue.
- TX FIFO Operation Mode: defines
the Tx FIFO mode or Tx queue mode.
- TX Buffer Element Size: defines
the Tx buffer data field size. In case the data length code DLC of a Tx Buffer
element is configured to a value higher than the Tx Buffer data field size, the
bytes not defined by the Tx Buffer are transmitted as 0xCC (padding
bytes).
- TX Event FIFO Start Address: the
Tx Event FIFO stores information about transmitted messages. To support Tx event
handling, the Message RAM has implemented a Tx Event FIFO section. By reading
the Tx Event FIFO, the Host CPU gets this information in the order the messages
were transmitted. After message transmission on the CAN bus, Message ID and
Timestamp are stored in a Tx Event FIFO element. To link a Tx Event to a Tx
Event FIFO element, the Message Marker from the transmitted Tx Buffer is copied
into the Tx Event FIFO element.
- TX Event FIFO Size: up to 32 Tx
Event FIFO elements can be configured.
- TX Event FIFO Watermark INT
Level: defines Tx Event FIFO fill level threshold. The Tx Event FIFO watermark
can be configured to avoid a Tx Event FIFO overflow.