38.6.1.1 Resetting the TEF

TEF can be reset by:
  • Setting FRESET (CxTEFCON[10]) or
  • Placing the module in Configuration mode (OPMOD[2:0] = 100).

Resetting the FIFO will reset the head and tail pointers, and the CxTEFSTA register. The settings in the CxTEFCON register will not change.

Table 38-8. Transmit Event FIFO Object
ByteBit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
0SID[7:0]
1EID[4:0]SID[10:8]
2EID[12:5]
3--SID11EID[17:13]
4FDFBRSRTRIDEDLC[3:0]
5SEQ[6:0]ESI
6SEQ[14:7]
7SEQ[22:15]
8TXMSGTS[7:0]
9TXMSGTS[15:8]
10TXMSGTS[23:16]
11TXMSGTS[31:24]

bit 15-11 EID[4:0]: Extended Identifier bits

bit 10-0 SID[10:0]: Standard Identifier bits

bit 15-14 Unimplemented: Read as ‘x

bit 13 SID11: In FD mode, the Standard ID can be Extended to 12 Bits using r1 bit

bit 12-0 EID17:5: Extended Identifier bits

bit 15-9 SEQ[6:0]: Bits 6-0 of the sequence to keep track of transmitted messages in Transmit Event FIFO

bit 8 ESI: Error Status Indicator bit

In CAN-to-CAN Gateway mode (ESIGM (CxCON[17]) = 1), the transmitted ESI flag is a “logical OR” of ESI and the 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 7 FDF: FD Frame bit - distinguishes between CAN and CAN FD formats

bit 6 BRS: Bit Rate Switch bit - selects if Data Bit Rate is switched

bit 5 RTR: Remote Transmission Request bit (not used in CAN FD)

bit 4 IDE: Identifier Extension bit - distinguishes between base and extended format.

bit 3-0 DLC[3:0]: Data Length Code bits

bit 15-0 SEQ[22:7]: Bits 22-7 of the sequence to keep track of transmitted messages in Transmit Event FIFO

bit 15-0 TXMSGTS[15:0] Transmit Message Timestamp bits

bit 15-0 TXMSGTS[31:16]: Transmit Message Timestamp bits

Note:
  1. TE4 and TE5 (TXMSGTSx) only exist in objects where TEFTSEN (CxTEFCON[5]) is set.