14.7.3 Loading Messages Into Transmit Queue

Loading transmit message objects into the TXQ works similarly to loading message objects into a transmit FIFO. The application must check the CxTXQSTA register to see if there is space in the TXQ. The CxTXQUA registers should be used instead of the CxFIFOUAx registers to calculate the address to load the message and set the UINC bit (CxTXQCON[8]) to increment the head of the TXQ.

Table 14-9. Transmit Message Object (TXQ and TX FIFO)
WordsBitsBits 31/23/5/7Bit 30/22/14/6Bit 29/21/13/5Bit 28/20/12/4Bit 27/19/11/3Bit 26/18/10/2Bit 25/17/9/1Bit 24/16/8/0
T031:24SID11EID[17:6]
23:16EID[12:5]
15:8EID[4:0]SID[10:8]
7:0SID[7:0]
T131:24SEQ[22:15]
23:16SEQ[14:7]
15:8SEQ[6:0]ESI
7:0FDFBRSRTRIDEDLC[3:0]
T231:24Transmit Buffer Data Byte 3
23:16Transmit Buffer Data Byte 2
15:8Transmit Buffer Data Byte 1
7:0Transmit Buffer Data Byte 0
T331:24Transmit Buffer Data Byte 7
23:16Transmit Buffer Data Byte 6
15:8Transmit Buffer Data Byte 5
7:0Transmit Buffer Data Byte 4
Ti31:24Transmit Buffer Data Byte n
23:16Transmit Buffer Data Byte n - 1
15:8Transmit Buffer Data Byte n - 2
7:0Transmit Buffer Data Byte n - 3
bit T0.31-30Unimplemented: Read as ‘x’
bit T0.29SID11: In FD mode, the standard ID can be extended to 12 bit using r1.
bit T0.28-11EID[17:0]: Extended Identifier
bit T0.10-0SID[10:0]: Standard Identifier
bit T1.31-9SEQ[22:0]: Sequence to keep track of transmitted messages in Transmit Event FIFO
bit T1.8

ESI: Error Status Indicator

In CAN to CAN Gateway mode (CiCON.EXIGM=1), the transmitted ESI flag is a “logical OR” of T1.ESI and error passive state of the CAN controller; In Normal mode ESI indicates the error status.

1 = Transmitting node is error passive.

0 = Transmitting node is error active.

bit T1.7FDF: FD Frame; distinguishes between CAN and CAN FD formats.
bit T1.6BRS: Bit Rate Switch; selects if data bit rate is switched.
bit T1.5RTR: Remote Transmission Request; not used in CAN FD.
bit T1.4IDE: Identifier Extension Flag; distinguishes between the base and extended format.
bit T1.3-0DLC[3:0]: Data Length Code