I-7565M-HS USB to CAN converter User Manual (version 1.0.0)
Page: 84
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
7.3. CAN Status Register
Bit Symbol Value
Description
2:0
LEC
Last error code
Type of the last error to occur on the CAN Bus.The LEC field holds
a code which indicates the type of the last error to occur on the CAN
Bus.
0x0
No error.
0x1
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 error
: A fixed format part of a received frame has the wrong
format.
0x3
AckError
: The message this CAN core transmitted was not
acknowledged.
0x4
Bit1Error
: During the transmission of a message (with the
exception of the arbitration field), the device wanted to send a
HIGH/recessive level (bit of logical value ‘1’), but the monitored bus
value was LOW/dominant.
0x5
Bit0Error
: During the transmission of a message (or acknowledge
bit, or active error flag, or overload flag), the device wanted to send
a LOW/dominant level (data or identifier bit logical value ‘0’), but the
monitored Bus value was HIGH/recessive.
0x6
CRCError
: The CRC checksum was incorrect in the message
received.
0x7
Unused
: No CAN Bus event was detected
3
TXOK
Transmitted a message successfully.
0
No message has been successfully transmitted.
1
A message has been successfully transmitted.
4
RXOK
Received a message successfully
0
No message has been successfully received
1
A message has been successfully received independent of the
result of acceptance filtering.
5
EPASS
Error passive
0
The CAN controller is in the error active state.
1
The CAN controller is in the error passive state as defined in the
CAN 2.0 specification.
6
EWARN
Warning status
0
Both error counters are below the error warning limit of 96.
1
At least one of the error counters in the Error Counter Register has
reached the error warning limit of 96.
7
BOFF
Busoff status
0
The CAN module is not in busoff state.
1
The CAN controller is in busoff state.
31:8
-
-
Reserved