Analog Devices ADSP-2106x SHARC User Manual page 354

Table of Contents

Advertisement

9 Link Ports
r0=destination_2;
dm(II5)=r0; /* Set DMA rx index to start of dest buffer
r0=1;
dm(IM5)=r0;
/* Set modify to 1
r0=@destination_2;
dm(C5)=r1;
/* real DMA Rx size should be got from master
r0=0x00003000;
/* LCTL Register:32-bit data,
dm(LCTL)=r0;
/* enable DMA on LBUF3
/* This will start off the DMA transfer
/* Always write LCTL after LAR
bit clr irptl LP3I;
bit set imask LP3I;
rti;
/*_______________Start of Original Slave Routine________________________*/
start_as_slave:
r0=destination_1;
dm(II4)=r0; /* Set DMA rx index to start of dest buffer
r0=1;
dm(IM4)=r0;
/* Set DMA modify (stride) to 1
r0=@destination_1;
dm(C4)=r0;
/* real DMA Rx size should be from master */
r0=0xc000;
/* LCOM Register: 2x rate,
dm(LCOM)=r0;
/* note:use r0=0x10000 on rev. 0.X silicon
/* original :
r0=0x3fe3f;
/* LAR Register:
dm(LAR)=r0; /* All others inactive
Listing 9.3 Link Token Passing Example (continues)
9 – 44
www.BDTIC.com/ADI
*/
/* clear pending Link buffer 3 interrupt.
/* Enable Link buffer 3 interrupt
0x0000c000
*/
LBUF2->port 0
*/
*/
*/
LBUF3=Rx
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADSP-2106x SHARC and is the answer not in the manual?

Questions and answers

Table of Contents