
ADSP-BF59x Blackfin Processor Hardware Reference
13-23
SPI-Compatible Port Controller
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 trans-
fer 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.
Summary of Contents for ADSP-BF59x Blackfin
Page 64: ...Development Tools 1 22 ADSP BF59x Blackfin Processor Hardware Reference...
Page 74: ...Processor Specific MMRs 2 10 ADSP BF59x Blackfin Processor Hardware Reference...
Page 244: ...Programming Examples 6 40 ADSP BF59x Blackfin Processor Hardware Reference...
Page 700: ...Programming Examples 16 78 ADSP BF59x Blackfin Processor Hardware Reference...
Page 738: ...Boundary Scan Architecture B 8 ADSP BF59x Blackfin Processor Hardware Reference...