DCAN Control Registers
1460
SPNU563A – March 2018
Copyright © 2018, Texas Instruments Incorporated
Controller Area Network (DCAN) Module
Table 27-8. Error and Status Register (DCAN ES) Field Descriptions (continued)
Bit
Field
Value
Description
4
RxOK
Received a message successfully.
0
No message has been successfully received since the last time when this bit was read by the CPU.
This bit is never reset by DCAN internal events.
1
A message has been successfully received since the last time when this bit was reset by a read
access of the CPU (independent of the result of acceptance filtering).This bit will be reset if Error
and Status Register is read.
3
TxOK
Transmitted a message successfully.
0
No message has been successfully transmitted since the last time when this bit was read by the
CPU. This bit is never reset by DCAN internal events.
1
A message has been successfully transmitted (error free and acknowledged by at least one other
node) since the last time when this bit was reset by a read access of the CPU. This bit will be reset
if Error and Status Register is read.
2-0
LEC
Last Error Code
The LEC field indicates the type of the last error on the CAN bus. This field will be cleared to 0
when a message has been transferred (reception or transmission) without error.
0
No Error
1h
Stuff Error: More than five equal bits in a row have been detected in a part of a received message
where this is not allowed.
2h
Form Error: A fixed format part of a received frame has the wrong format.
3h
Ack Error: The message this CAN Core transmitted was not acknowledged by another node.
4h
Bit1 Error: During the transmission of a message (with the exception of the arbitration field), the
device wanted to send a recessive level (bit of logical value 1), but the monitored bus value was
dominant.
5h
Bit0 Error: During the transmission of a message (or acknowledge bit, or active error flag, or
overload flag), the device wanted to send a dominant level (logical value 0), but the monitored bus
level was recessive. During Bus-Off recovery, this status is set each time a sequence of 11
recessive bits has been monitored. This enables the CPU to monitor the proceeding of the Bus-Off
recovery sequence (indicating the bus is not stuck at dominant or continuously disturbed).
6h
CRC Error: In a received message, the CRC check sum was incorrect. (CRC received for an
incoming message does not match the calculated CRC for the received data).
7h
No CAN bus event was detected since the last time when CPU has read the Error and Status
Register. Any read access to the Error and Status Register reinitializes the LEC bit to 7.