16.9.13 Error and Status Register (CANES)
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, that is, 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 16-21. 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 16-20. 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.
Controller Area Network (CAN)
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
TMS320x2806x Microcontrollers
1037
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......