Programming Model
18-24
ADSP-BF50x Blackfin Processor Hardware Reference
software performs a dummy read from the
SPI_RDBR
register to initiate the
first transfer. If the first transfer is used for data transmission, software
should write the value to be transmitted into the
SPI_TDBR
register before
performing the dummy read. If the transmitted value is arbitrary, it is
good practice to set the
SZ
bit in the
SPI_CTL
register to ensure zero data is
transmitted rather than random values. When receiving the last word of
an SPI stream, software should ensure that the read from the
SPI_RDBR
register does not initiate another transfer. It is recommended that the SPI
port be disabled before the final
SPI_RDBR
read access. Reading the
SPI_SHADOW
register is not sufficient, as it does not clear the interrupt
request.
In master mode with the
CPHA
bit set, software should manually assert the
required slave select signal before starting the transaction. After all data
has been transferred, software typically releases the slave select again. If the
SPI slave device requires the slave select line to be asserted for the
complete transfer, this can be done in the SPI interrupt service routine
only when operating in
TIMOD
=
b#00
or
TIMOD
=
b#10
mode. With
TIMOD
=
b#01
or
TIMOD
=
b#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 appropriate port register(s) to properly con-
figure the SPI for master mode operation. The appropriate pins can
be configured for SPI use as slave-select outputs.
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 the
Direct Memory Access
chapter.
Содержание EZ-KIT Lite ADSP-BF506F
Страница 50: ...Contents l ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 92: ...Development Tools 1 30 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 110: ...Interface Overview 3 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 132: ...Unique Information for the ADSP BF50x Processor 4 22 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 236: ...Internal Flash Memory Control Registers 6 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 342: ...Unique Information for the ADSP BF50x Processor 7 106 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 484: ...Unique Information for the ADSP BF50x Processor 10 60 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 493: ...ADSP BF50x Blackfin Processor Hardware Reference 11 9 Core Timer Unique Information for the ADSP BF50x Processor None ...
Страница 494: ...Unique Information for the ADSP BF50x Processor 11 10 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 506: ...Unique Information for the ADSP BF50x Processor 12 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 544: ...Unique Information for the ADSP BF50x Processor 13 38 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 650: ...Programming Examples 15 56 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 712: ...Unique Information for the ADSP BF50x Processor 16 62 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 804: ...Programming Examples 17 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 972: ...Unique Information for the ADSP BF50x Processor 20 38 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 1194: ...Programming Examples 24 90 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 1256: ...ACM Registers A 50 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 1264: ...Boundary Scan Architecture B 8 ADSP BF50x Blackfin Processor Hardware Reference ...