Programming Example - Analog Devices SHARC ADSP-21368 Hardware Reference Manual

Hide thumbs Also See for SHARC ADSP-21368:
Table of Contents

Advertisement

that channel. If the parameters configure the channel to receive, the I/O
processor transfers data words received at the buffer to the destination in
internal memory. If the parameters configure the channel to transmit, the
I/O processor transfers a word automatically from the source memory to
the channel's buffer register. These transfers continue until the I/O pro-
cessor transfers the selected number of words as determined by the count
parameter. DMA through the IDP ports occurs in internal memory only.

Programming Example

The following example demonstrates setting up a memory-to-memory
direct memory access (DMA).
/* Register Definitions */
#define MTMCTL 0x2c01
#define IIMTMW 0x2c10
#define IIMTMR 0x2c11
#define IMMTMW 0x2c0e
#define IMMTMR 0x2c0f
#define CMTMW 0x2c16
#define CMTMR 0x2c17
/* Bit Definitions */
#define MTMI
#define IRPTEN 0x00001000
#define MTMEN 0x1
#define MTMFLUSH 0x2
/* Buffer Declarations */
.section/dm seg_dmda;
.align 2;
.var dest[100];
ADSP-21368 SHARC Processor Hardware Reference
0x00040000
I/O Processor
2-49

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Table of Contents