![Texas Instruments TMS320x281 series Скачать руководство пользователя страница 42](http://html1.mh-extra.com/html/texas-instruments/tms320x281-series/tms320x281-series_reference-manual_1095203042.webp)
2.13 Error and Status Register (CANES)
Error and Status Register (CANES)
www.ti.com
The status of the CAN module is shown by the Error and Status Register (CANES) and the error counter
registers, which are described in this section.
The error and status register comprises information about the actual status of the CAN module and
displays bus error flags as well as error status flags. If one of these error flags is set, then the current
state of all other error flags is frozen. i.e. Only the first error is stored. In order to update the CANES
register subsequently, the error flag which is set has to be acknowledged by writing a 1 to it. This action
also clears the flag bit.
Figure 2-13. Error and Status Register (CANES)
31
25
24
23
22
21
20
19
18
17
16
Reserved
FE
BE
SA1
CRCE
SE
ACKE
BO
EP
EW
R-0
RC-0
RC-0
R-1
RC-0
RC-0
RC-0
RC-0
RC-0
RC-0
15
6
5
4
3
2
1
0
Reserved
SMA
CCE
PDA
Rsvd
RM
TM
R-0
R-0
R-1
R-0
R-0
R-0
R-0
LEGEND: R = Read; C = Clear; -
n
= value after reset
Table 2-13. Error and Status Register (CANES) Field Descriptions
Bit
Field
Value
Description
31:25
Reserved
Reads are undefined and writes have no effect.
24
FE
Form error flag
1
A form error occurred on the bus. This means that one or more of the fixed-form bit fields had the
wrong level on the bus.
0
No form error detected; the CAN module was able to send and receive correctly.
23
BE
Bit error flag
1
The received bit does not match the transmitted bit outside of the arbitration field or during
transmission of the arbitration field, a dominant bit was sent but a recessive bit was received.
0
No bit error detected.
22
SA1
Stuck at dominant error. The SA1 bit is always at 1 after a hardware reset, a software reset, or a
Bus-Off condition. This bit is cleared when a recessive bit is detected on the bus.
1
The CAN module never detected a recessive bit.
0
The CAN module detected a recessive bit.
21
CRCE
CRC error.
1
The CAN module received a wrong CRC.
0
The CAN module never received a wrong CRC.
20
SE
Stuff error.
1
A stuff bit error occurred.
0
No stuff bit error occurred.
19
ACKE
Acknowledge error.
1
The CAN module received no acknowledge.
0
All messages have been correctly acknowledged.
18
BO
Bus-off status. The CAN module is in bus-off state.
1
There is an abnormal rate of errors on the CAN bus. This condition occurs when the transmit error
counter (CANTEC) has reached the limit of 256. During Bus Off, no messages can be received or
transmitted. The bus-off state can be exited by clearing the CCR bit in CANMC register or if the
Auto Bus On (ABO) (CANMC.7) bit is set, after 128 * 11 receive bits have been received. After
leaving Bus Off, the error counters are cleared.
0
Normal operation
42
eCAN Registers
SPRU074F – May 2002 – Revised January 2009