English
Language : 

LM3S5G51 Datasheet, PDF (838/1266 Pages) Texas Instruments – Stellaris® LM3S5G51 Microcontroller
Controller Area Network (CAN) Module
Bit/Field
2:0
Name
LEC
Type
R/W
Reset
0x0
Description
Last Error Code
This is the type of the last error to occur on the CAN bus.
Value
0x0
0x1
0x2
0x3
0x4
0x5
0x6
0x7
Description
No Error
Stuff Error
More than 5 equal bits in a sequence have occurred in a part
of a received message where this is not allowed.
Format Error
A fixed format part of the received frame has the wrong
format.
ACK Error
The message transmitted was not acknowledged by another
node.
Bit 1 Error
When a message is transmitted, the CAN controller monitors
the data lines to detect any conflicts. When the arbitration
field is transmitted, data conflicts are a part of the arbitration
protocol. When other frame fields are transmitted, data
conflicts are considered errors.
A Bit 1 Error indicates that the device wanted to send a High
level (logical 1) but the monitored bus value was Low (logical
0).
Bit 0 Error
A Bit 0 Error indicates that the device wanted to send a Low
level (logical 0), but the monitored bus value was High (logical
1).
During bus-off recovery, this status is set each time a
sequence of 11 High bits has been monitored. By checking
for this status, software can monitor the proceeding of the
bus-off recovery sequence without any disturbances to the
bus.
CRC Error
The CRC checksum was incorrect in the received message,
indicating that the calculated value received did not match
the calculated CRC of the data.
No Event
When the LEC bit shows this value, no CAN bus event was
detected since this value was written to the LEC field.
838
January 23, 2012
Texas Instruments-Production Data