![Analog Devices Blackfin ADSP-BF537 Скачать руководство пользователя страница 636](http://html.mh-extra.com/html/analog-devices/blackfin-adsp-bf537/blackfin-adsp-bf537_hardware-reference-manual_2939700636.webp)
Programming Model
10-30
ADSP-BF537 Blackfin Processor Hardware Reference
only when operating in
TIMOD
=
00
or
TIMOD
=
10
mode. With
TIMOD
=
01
or
TIMOD
=
11
, the interrupt is requested while the transfer is still in
progress.
Master Mode DMA Operation
When enabled as a master with the DMA engine configured to transmit or
receive data, the SPI interface operates as follows.
1. The core writes to the
PORTF_FER
and/or
PORT_MUX
registers to
properly configure the required
PFx
and/or
PJx
pins for SPI use as
slave-select outputs and, if necessary, multimaster detection input
(
SPISS
).
2. The processor core writes to the appropriate DMA registers to
enable the SPI DMA channel and to configure the necessary work
units, access direction, word count, and so on. For more informa-
tion, see
Chapter 5, “Direct Memory Access”
3. The processor core writes to the
SPI_FLG
register, setting one or
more of the SPI flag select bits (
FLSx
).
4. The processor core writes to the
SPI_BAUD
and
SPI_CTL
registers,
enabling the device as a master and configuring the SPI system by
specifying the appropriate word length, transfer format, baud rate,
and so on. The
TIMOD
field should be configured to select either
“receive with DMA” (
TIMOD = 10
) or “transmit with DMA”
(
TIMOD = 11
) mode.
5. If configured for receive, a receive transfer is initiated upon
enabling of the SPI. Subsequent transfers are initiated as the SPI
reads data from the
SPI_RDBR
register and writes to the SPI DMA
FIFO. The SPI then requests a DMA write to memory. Upon a
DMA grant, the DMA engine reads a word from the SPI DMA
FIFO and writes to memory.
Содержание Blackfin ADSP-BF537
Страница 42: ...Contents xlii ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 90: ...Development Tools 1 32 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 138: ...Programming Examples 4 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 340: ...SDC Programming Examples 6 84 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 606: ...Programming Examples 9 94 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 660: ...Programming Examples 10 54 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 720: ...Electrical Specifications 11 60 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 840: ...Programming Examples 13 42 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 876: ...Programming Examples 14 36 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 938: ...Programming Examples 15 62 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 958: ...Programming Examples 17 12 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 986: ...Programming Examples 18 28 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 1162: ...G 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Страница 1218: ...Index I 56 ADSP BF537 Blackfin Processor Hardware Reference ...