Functional Operation
/* Set debug flags */
*pCAN_DEBUG &= ~DTO ;
*pCAN_DEBUG |= MRB | MAA | DIL ;
/* Run test code */
/* Disable debug mode */
*pCAN_DEBUG &= ~CDE ;
When the
CDE
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
registers.
• Allows write access to the read-only transmit/receive error counter
register
The mode read back bit (
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 (
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
pin if
CANTX
DIL=1
internally, then these test mode bits should be set to
17-34
bit is set, it enables writes to the other bits of the
.
CAN_CEC
) is used to enable the read back mode. In this
MRB
and
. If the acknowledge is only going to be used
DTO=0
ADSP-BF50x Blackfin Processor Hardware Reference
CAN_CLOCK
) allows the CAN module to generate
MAA
CAN_DEBUG
and
CAN_TIMING
and
.
DIL=0
DTO=1
Need help?
Do you have a question about the ADSP-BF506F and is the answer not in the manual?