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
.
Содержание EZ-KIT Lite ADSP-BF506F
Страница 50: ...Contents l ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 92: ...Development Tools 1 30 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 110: ...Interface Overview 3 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 132: ...Unique Information for the ADSP BF50x Processor 4 22 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 236: ...Internal Flash Memory Control Registers 6 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 342: ...Unique Information for the ADSP BF50x Processor 7 106 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 484: ...Unique Information for the ADSP BF50x Processor 10 60 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 493: ...ADSP BF50x Blackfin Processor Hardware Reference 11 9 Core Timer Unique Information for the ADSP BF50x Processor None ...
Страница 494: ...Unique Information for the ADSP BF50x Processor 11 10 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 506: ...Unique Information for the ADSP BF50x Processor 12 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 544: ...Unique Information for the ADSP BF50x Processor 13 38 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 650: ...Programming Examples 15 56 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 712: ...Unique Information for the ADSP BF50x Processor 16 62 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 804: ...Programming Examples 17 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 972: ...Unique Information for the ADSP BF50x Processor 20 38 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 1194: ...Programming Examples 24 90 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 1256: ...ACM Registers A 50 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 1264: ...Boundary Scan Architecture B 8 ADSP BF50x Blackfin Processor Hardware Reference ...