ADSP-BF537 Blackfin Processor Hardware Reference
5-23
Direct Memory Access
When
DMAx_CONFIG
is written directly by software, the DMA controller
recognizes this as the special startup condition that occurs when starting
DMA for the first time on this channel or after the engine has been
stopped (
FLOW = 0
).
When the descriptor fetch is complete and
DMAEN = 1
, the
DMACFG
descrip-
tor element that was read into
DMAx_CONFIG
assumes control. Before this
point, the direct write to
DMAx_CONFIG
had control. In other words, the
WDSIZE
,
DI_EN
,
DI_SEL
,
SYNC
, and
DMA2D
fields will be taken from the
DMACFG
value in the descriptor read from memory, while these field values
initially written to the
DMAx_CONFIG
register are ignored.
As
show, at startup
the
FLOW
and
NDSIZE
bits in
DMAx_CONFIG
determine the course of the
DMA setup process. The
FLOW
value determines whether to load more cur-
rent registers from descriptor elements in memory, while the
NDSIZE
bits
detail how many descriptor elements to fetch before starting DMA. DMA
registers not included in the descriptor are not modified from their prior
values.
If the
FLOW
value specifies small or large descriptor list modes, the
DMAx_
NEXT_DESC_PTR
is copied into
DMAx_CURR_DESC_PTR
. Then, fetches of new
descriptor elements from memory are performed, indexed by
DMAx_CURR_
DESC_PTR
, which is incremented after each fetch. If
NDPL
and/or
NDPH
is
part of the descriptor, then these values are loaded into
DMAx_NEXT_DESC_
PTR
, but the fetch of the current descriptor continues using
DMAx_CURR_
DESC_PTR
. After completion of the descriptor fetch,
DMAx_CURR_DESC_PTR
points to the next 16-bit word in memory past the end of the descriptor.
If neither
NDPH
nor
NDPL
are part of the descriptor (that is, in descriptor
array mode,
FLOW = 4
), then the transfer from
NDPH
/
NDPL
into
DMAx_CURR_
DESC_PTR
does not occur. Instead, descriptor fetch indexing begins with
the value in
DMAx_CURR_DESC_PTR
.
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 ...