BAT32G1x9 user manual | Chapter 22 CAN control
898 / 1149
Rev.1.02
22.7.8
CAN Module Last Error Code Register (CnLEC).
The CnLEC register provides error messages for the CAN protocol.
Figure22-31. Format
of the LAST Error Code Register for can modules
(CnLEC
).
Note 1 When CAN switches from operating mode to initialization mode, the contents of
the CnLEC register are not cleared
2. If you try to write a value other than 00H to the CnLEC register through the
software, the access will be ignored.
LEC2
LEC1
LECn
Last CAN protocol error message
0
0
0
No errors
0
0
1
Fill errors
0
1
0
Malformation
0
1
1
ACK error
1
0
0
Bit error (the CAN module attempts to transmit recessive bits as part of
the transmitted message (except for the Arbitration field), but the value on
the CAN bus is the dominant bit)
1
0
1
Bit error (the CAN module attempted to transmit the dominant bit as part
of the transmitted message, ACK bit, error frame, or overloaded frame,
but the value on the CAN bus is the recessive bit).
1
1
0
CRC error
1
1
1
There is no definition