Datasheet
Bits 10:8 – DLEC[2:0] Data Phase Last Error Code (set to 1
11 on read)
Type of last error that occurred in the data phase of a CAN FD format frame with its BRS flag set. Coding is the same
as for LEC. This field will be cleared to zero when a CAN FD format frame with its BRS flag set has been transferred
(reception or transmission) without error.
Bit 7 – BO Bus_Off Status
Value Description
0
The MCAN is not Bus_Off.
1
The MCAN is in Bus_Off state.
Bit 6 – EW W
arning Status
Value Description
0
Both error counters are below the Error_Warning limit of 96.
1
At least one of error counter has reached the Error_Warning limit of 96.
Bit 5 – EP Error Passive
Value Description
0
The MCAN is in the Error_Active state. It normally takes part in bus communication and sends an
active error flag when an error has been detected.
1
The MCAN is in the Error_Passive state.
Bits 4:3 – ACT[1:0] Activity
Monitors the CAN communication state of the CAN module.
Value Name Description
0
SYNCHRONIZING Node is synchronizing on CAN communication
1
IDLE Node is neither receiver nor transmitter
2
RECEIVER Node is operating as receiver
3
TRANSMITTER Node is operating as transmitter
Bits 2:0 – LEC[2:0] Last Error Code (set to 1
11 on read)
The LEC indicates the type of the last error to occur on the CAN bus. This field is cleared when a message has been
transferred (reception or transmission) without error.
Value Name Description
0
NO_ERROR No error occurred since LEC has been reset by successful reception or
transmission.
1
STUFF_ERROR More than 5 equal bits in a sequence have occurred in a part of a received message
where this is not allowed.
2
FORM_ERROR A fixed format part of a received frame has the wrong format.
3
ACK_ERROR The message transmitted by the MCAN was not acknowledged by another node.
4
BIT1_ERROR During transmission of a message (with the exception of the arbitration field), the
device tried to send a recessive level (bit of logical value ‘1’), but the monitored bus
value was dominant.
5
BIT0_ERROR During transmission of a message (or acknowledge bit, or active error flag, or
overload flag), the device tried to send a dominant level (data or identifier bit logical
value ‘0’), but the monitored bus value was recessive. During Bus_Of
f recovery, this
status is set each time a sequence of 11 recessive bits has been monitored. This
enables the processor to monitor the proceeding of the Bus_Off recovery sequence
(indicating the bus is not stuck at dominant or continuously disturbed).
6
CRC_ERROR The CRC check sum of a received message was incorrect. The CRC of an incoming
message does not match the CRC calculated from the received data.
7
NO_CHANGE Any read access to the Protocol Status Register re-initializes the LEC to ‘7’. When
the LEC shows value ‘7’, no CAN bus event was detected since the last processor
read access to the Protocol Status Register.
SAM E70/S70/V70/V71 Family
Controller Area Network (MCAN)
© 2019 Microchip T
echnology Inc.
Datasheet
DS60001527D-page 1451










