Datasheet

Table Of Contents
Value Name Description
0x0
SYNC Node is synchronizing on CAN communication.
0x1
IDLE Node is neither receiver nor transmitter.
0x2
RX Node is operating as receiver.
0x3
TX Node is operating as transmitter.
Bits 2:0 – LEC[2:0] Last Error Code
The LEC indicates the type of the last error to occur on the CAN bus. This field will be cleared to ‘0’ when
a message has been transferred (reception or transmission) without error.
This field is set on read access.
Value Name Description
0x0
NONE No Error: No error occurred since LEC has been reset by successful reception or
transmission.
0x1
STUFF Stuff Error: More than 5 equal bits in a sequence have occurred in a part of a
received message where this is not allowed.
0x2
FORM Form Error: A fixed format part of a received frame has the wrong format.
0x3
ACK Ack Error: The message transmitted by the CAN was not acknowledged by another
node.
0x4
BIT1 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 was dominant.
0x5
BIT0 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 (data or
identifier bit logical value ‘0’), but the monitored bus value was recessive. During
Bus_Off recovery this status is set each time a sequence of 11 recessive bits have
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).
0x6
CRC CRC Error: The CRC checksum of a received message was incorrect. The CRC of
an incoming message does not match with the CRC calculated from the received
data.
0x7
NC No Change: Any read access to the Protocol Status Register re-initializes the LEC
to ‘7’. When the LEC shows the value ‘7’, no CAN bus event was detected since the
last CPU read access to the Protocol Status Register.
SAM D5x/E5x Family Data Sheet
CAN - Control Area Network
© 2019 Microchip Technology Inc.
Datasheet
DS60001507E-page 1252