Programming Examples
5-108
ADSP-BF537 Blackfin Processor Hardware Reference
The two arrays reside in two different L1 data memory blocks. However,
the arrays could reside in any internal or external memory, including L1
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 2D Memory DMA
#include <defBF537.h>
#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;
Figure 5-28. DMA Example, 2D Array
1
2
3
4
5
6
8
7
9
10
11
12
19
18
17
16
15
14
13
20
21
22
23
24
26
27
28
29
25
30
1
2
3
4
5 6
8
7
9 10 11 12
19
18
17
16
15
14
13
20 21 22 23 24
26 27 28 29
25
30
Summary of Contents for Blackfin ADSP-BF537
Page 42: ...Contents xlii ADSP BF537 Blackfin Processor Hardware Reference ...
Page 90: ...Development Tools 1 32 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 138: ...Programming Examples 4 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 340: ...SDC Programming Examples 6 84 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 606: ...Programming Examples 9 94 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 660: ...Programming Examples 10 54 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 720: ...Electrical Specifications 11 60 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 840: ...Programming Examples 13 42 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 876: ...Programming Examples 14 36 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 938: ...Programming Examples 15 62 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 958: ...Programming Examples 17 12 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 986: ...Programming Examples 18 28 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1162: ...G 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1218: ...Index I 56 ADSP BF537 Blackfin Processor Hardware Reference ...