![Analog Devices Blackfin ADSP-BF537 Скачать руководство пользователя страница 603](http://html.mh-extra.com/html/analog-devices/blackfin-adsp-bf537/blackfin-adsp-bf537_hardware-reference-manual_2939700603.webp)
ADSP-BF537 Blackfin Processor Hardware Reference
9-91
CAN Module
and then waits for and processes CAN TX and RX interrupts. This
example assumes that the
CAN_RX_HANDLER
and
CAN_TX_HANDLER
have been
properly registered in the system interrupt controller and that the inter-
rupts are enabled properly in the
SIC_IMASK
register.
Listing 9-4. CAN Transfers and Interrupts
CAN_SetupIRQs_and_Transfer:
P0.H = HI(CAN_MBIM1);
P0.L = LO(CAN_MBIM1);
R0 = 0;
BITSET(R0, BITPOS(MBIM8));
/* Enable Mailbox Interrupts */
BITSET(R0, BITPOS(MBIM9));
/* for Mailboxes 8 and 9 */
W[P0] = R0;
SSYNC;
/* Leave CAN Configuration Mode (Clear CCR) */
P0.L = LO(CAN_CONTROL);
R0 = W[P0](Z);
BITCLR(R0, BITPOS(CCR));
W[P0] = R0;
P0.L = LO(CAN_STATUS);
/* Wait for CAN Configuration Acknowledge (CCA) */
WAIT_FOR_CCA_TO_CLEAR:
R1 = W[P0](Z);
CC = BITTST (R1, BITPOS(CCA));
IF CC JUMP WAIT_FOR_CCA_TO_CLEAR;
P0.L = LO(CAN_TRS1);
R0 = TRS8;
/* Transmit Request MB08 */
W[P0] = R0;
/* Issue Transmit Request */
SSYNC;
Wait_Here_For_IRQs:
NOP;
NOP;
NOP;
Содержание Blackfin ADSP-BF537
Страница 42: ...Contents xlii ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 90: ...Development Tools 1 32 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 138: ...Programming Examples 4 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 340: ...SDC Programming Examples 6 84 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 606: ...Programming Examples 9 94 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 660: ...Programming Examples 10 54 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 720: ...Electrical Specifications 11 60 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 840: ...Programming Examples 13 42 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 876: ...Programming Examples 14 36 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 938: ...Programming Examples 15 62 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 958: ...Programming Examples 17 12 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 986: ...Programming Examples 18 28 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 1162: ...G 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 1218: ...Index I 56 ADSP BF537 Blackfin Processor Hardware Reference ...