Programming Examples
17-90
ADSP-BF50x Blackfin Processor Hardware Reference
**
** ===================================================
*/
CAN_TX_HANDLER:
[--SP] = (R7:6, P5:5);
/* Save Clobbered Registers */
[--SP] = ASTAT;
P5.H = HI(CAN_MBTIF1);
P5.L = LO(CAN_MBTIF1);
R7 = MBTIF8;
W[P5] = R7;
/* Clear Interrupt Request Bit for MB08 */
P5.L = LO(CAN_MB_DATA2(8));
R7 = W[P5](Z);
/* Retrieve Previously Sent Data */
R6 = 0xFF;
/* Mask Upper Byte to Check Lower */
R6 = R6 & R7;
/* Byte for Wrap */
R5 = 0xFF;
/* Check Wrap Condition */
CC = R6 == R5;
/* Check if Lower Byte Wraps */
IF CC JUMP HANDLE_COUNT_WRAP;
R7 += 1;
/* If no wrap, Increment Count */
JUMP PREPARE_TO_SEND;
HANDLE_COUNT_WRAP:
R6 = 0xFF00(Z);
/* Mask Off Lower Byte */
R7 = R7 & R6;
/* Sets Lower Byte to 0 */
R6 = 0x0100(Z);
/* Increment Value for Upper Byte */
R7 = R7 + R6;
/* Increment Upper Byte */
PREPARE_TO_SEND:
W[P5] = R7;
/* Set New TX Data */
P5.L = LO(CAN_TRS1);
R7 = TRS8;
W[P5] = R7;
/* Issue New Transmit Request */
ASTAT = [SP++];
/* Restore Clobbered Registers */
(R7:6, P5:5) = [SP++];
SSYNC;
RTI;
Содержание 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 ...