ADSP-BF50x Blackfin Processor Hardware Reference
7-93
Direct Memory Access
Listing 7-1. Register-Based 2-D Memory DMA
#include <defBF527.h>/*For ADSP-BF527 product, as an example.*/
#define X 5
#define Y 6
.section L1_data_a;
.byte2 aSource[X*Y] =
1,
7, 13, 19, 25,
2,
8, 14, 20, 26,
3,
9, 15, 21, 27,
4, 10, 16, 22, 28,
5, 11, 17, 23, 29,
6, 12, 18, 24, 30;
.section L1_data_b;
.byte2 aDestination[X*Y];
.section L1_code;
.global _main;
_main:
p0.l = lo(MDMA_S0_CONFIG);
p0.h = hi(MDMA_S0_CONFIG);
call memdma_setup;
call memdma_wait;
_main.forever:
jump _main.forever;
_main.end:
The setup routine shown in
Listing 7-2
initializes either MDMA0 or
MDMA1, depending on whether the MMR address of
MDMA_S0_CONFIG
or
MDMA_S1_CONFIG
is passed in the
P0
register. Note that the source channel
is enabled before the destination channel. Also, it is common to synchro-
nize interrupts with the destination channel because only those interrupts
indicate completion of both DMA read and write operations.
Summary of Contents for EZ-KIT Lite ADSP-BF506F
Page 50: ...Contents l ADSP BF50x Blackfin Processor Hardware Reference ...
Page 92: ...Development Tools 1 30 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 110: ...Interface Overview 3 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 236: ...Internal Flash Memory Control Registers 6 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 650: ...Programming Examples 15 56 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 804: ...Programming Examples 17 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1194: ...Programming Examples 24 90 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1256: ...ACM Registers A 50 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1264: ...Boundary Scan Architecture B 8 ADSP BF50x Blackfin Processor Hardware Reference ...