Functional Operation
17-34
ADSP-BF50x Blackfin Processor Hardware Reference
/* 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.
The mode auto acknowledge bit (
MAA
) allows the CAN module to generate
its own acknowledge during the ACK slot of the CAN frame. No external
devices or connections are necessary to read back a transmit message. In
this mode, the message that is sent is automatically stored in the internal
receive buffer. In auto acknowledge mode, the module itself transmits the
acknowledge. This acknowledge can be programmed to appear on the
CANTX
pin if
DIL=1
and
DTO=0
. If the acknowledge is only going to be used
internally, then these test mode bits should be set to
DIL=0
and
DTO=1
.
Summary of Contents for EZ-KIT Lite ADSP-BF506F
Page 50: ...Contents l ADSP BF50x Blackfin Processor Hardware Reference ...
Page 92: ...Development Tools 1 30 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 110: ...Interface Overview 3 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 236: ...Internal Flash Memory Control Registers 6 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 650: ...Programming Examples 15 56 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 804: ...Programming Examples 17 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1194: ...Programming Examples 24 90 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1256: ...ACM Registers A 50 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1264: ...Boundary Scan Architecture B 8 ADSP BF50x Blackfin Processor Hardware Reference ...