
ADSP-BF59x Blackfin Processor Hardware Reference
5-91
Direct Memory Access
instruction memory and SDRAM. For the case where the destination
array resided in SDRAM, it is a good idea to let the source channel re-sort
elements and to let the destination buffer store linearly.
Listing 5-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 5-2
initializes either MDMA0 or
MDMA1, depending on whether the MMR address of
MDMA_S0_CONFIG
or
Содержание ADSP-BF59x Blackfin
Страница 64: ...Development Tools 1 22 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 74: ...Processor Specific MMRs 2 10 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 204: ...Unique Information for the ADSP BF59x Processor 5 104 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 244: ...Programming Examples 6 40 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 345: ...ADSP BF59x Blackfin Processor Hardware Reference 9 9 Core Timer Unique Information for the ADSP BF59x Processor None...
Страница 346: ...Unique Information for the ADSP BF59x Processor 9 10 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 398: ...Unique Information for the ADSP BF59x Processor 11 42 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 622: ...Unique Information for the ADSP BF59x Processor 15 38 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 700: ...Programming Examples 16 78 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 738: ...Boundary Scan Architecture B 8 ADSP BF59x Blackfin Processor Hardware Reference...