Analog Devices ADSP-2106x SHARC User Manual page 348

Table of Contents

Advertisement

9 Link Ports
r0=dm(LBUF2);
/* read DMA size
dm(C4)=r0;
/* Set DMA count to length of data buffer */
r0=destination_3;
dm(II4)=r0; /* Set DMA rx index to start of destin buffer
r0=1;
dm(IM4)=r0;
/* step size
r0=0x00000300;
dm(LCTL)=r0;
/* enable LBUF2 DMA Rx
bit clr irptl LP2I;
bit set imask LP2I;
bit set mode1 IRPTEN;
rti;
second_master_mode:
token_read2:
r1=0xC0;
/* check if slave read the tokens
r0=dm(LCOM);
/* check if slave emptied fifos
r0=r0 AND r1;
/* to be sure they are in sync for the
if NE jump token_read2; /* the second DMA transfer
r0=0x3fe3f;
dm(LAR)=r0;
/* LAR Register:
r0=0x00000900;
dm(LCTL)=r0;
/* LBUF2: Tx, non DMA
r0=@source_2;
dm(LBUF2)=r0;
/* Tx size of DMA to the slave
r0=source_2;
dm(II4)=r0; /* Set DMA tx index to start of source buffer.
r0=1;
Listing 9.3 Link Token Passing Example (continues)
9 – 38
www.BDTIC.com/ADI
*/
*/
/* clear pending Link buffer 2 interrupt
/* Enable Link buffer 2 interrupt
/* Global interrupt enable
LBUF2->port0
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/

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

Subscribe to Our Youtube Channel

Table of Contents