During the bus off recovery sequence, the configuration mode request bit
in the
CAN_CONTROL
CAN core module does not automatically come out of the bus off mode.
The
bit cannot be reset until the bus off recovery sequence is finished.
CCR
This behavior can be over-ridden by setting the auto-bus on (
bit in the
ration modes, the CAN error counters are reset.
Debug and Test Modes
The CAN module contains test mode features that aid in the debugging of
the CAN software and system.
enabling CAN debug features.
When these features are used, the CAN module may not be com-
pliant to the CAN specification. All test modes should be enabled
or disabled only when the module is in configuration mode (
1 in the
CAN_STATUS
The
bit is used to gain access to all of the debug features. This bit
CDE
must be set to enable the test mode, and must be written first before sub-
sequent writes to the
debug features are disabled.
Listing 17-1. Enabling CAN Debug Features in C
#include <cdefBF537.h>
/* Enable debug mode, CDE must be set before other flags can be
changed in register */
*pCAN_DEBUG |= CDE ;
ADSP-BF50x Blackfin Processor Hardware Reference
register is set by the internal logic (
register. After exiting the bus off or configu-
CAN_CONTROL
Listing 17-1
register) or in suspend mode (
CAN_STATUS
).
register. When the
CAN_DEBUG
CAN Module
=
CCR
1
provides an example of
=
CSA
bit is cleared, all
CDE
), thus the
)
ABO
=
CCA
in
1
17-33
Need help?
Do you have a question about the ADSP-BF506F and is the answer not in the manual?