Functional Operation
9-34
ADSP-BF537 Blackfin Processor Hardware Reference
Listing 9-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 ;
/* Set debug flags */
*pCAN_DEBUG &= ~DTO ;
*pCAN_DEBUG |= MRB | MAA | DIL ;
/* Run test code */
/* Disable debug mode */
*pCAN_DEBUG &= ~CDE ;
When the
CDE
bit is set, it enables writes to the other bits of the
CAN_DEBUG
register. It also enables these features, which are not compliant with the
CAN standard:
• Bit timing registers can be changed anytime, not only during con-
figuration mode. This includes the
CAN_CLOCK
and
CAN_TIMING
registers.
• Allows write access to the read-only transmit/receive error counter
register
CAN_CEC
.
The mode read back bit (
MRB
) is used to enable the read back mode. In this
mode, a message transmitted on the CAN bus (or via an internal loop
back mode) is received back directly to the internal receive buffer. After a
correct transmission, the internal logic treats this as a normal receive mes-
sage. This feature allows the user to test most of the CAN features without
an external device.
Summary of Contents for Blackfin ADSP-BF537
Page 42: ...Contents xlii ADSP BF537 Blackfin Processor Hardware Reference ...
Page 90: ...Development Tools 1 32 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 138: ...Programming Examples 4 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 340: ...SDC Programming Examples 6 84 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 606: ...Programming Examples 9 94 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 660: ...Programming Examples 10 54 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 720: ...Electrical Specifications 11 60 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 840: ...Programming Examples 13 42 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 876: ...Programming Examples 14 36 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 938: ...Programming Examples 15 62 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 958: ...Programming Examples 17 12 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 986: ...Programming Examples 18 28 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1162: ...G 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1218: ...Index I 56 ADSP BF537 Blackfin Processor Hardware Reference ...