Functional Description
18-18
ADSP-BF50x Blackfin Processor Hardware Reference
Master Mode Operation (Non-DMA)
When the SPI is configured as a master (and DMA mode is not selected),
the interface operates in the following manner.
1. The core writes to the appropriate port register(s) to properly con-
figure the SPI interface for master mode operation. The required
pins are configured for SPI use as slave-select outputs.
2. The core writes to
SPI_FLG
, setting one or more of the SPI flag
select bits (
FLSx
). This ensures that the desired slaves are properly
deselected while the master is configured.
3. The 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 other nec-
essary information.
4. If the
CPHA
bit in the
SPI_CTL
register = 1, the core activates the
desired slaves by clearing one or more of the SPI flag bits (
FLGx
) of
SPI_FLG
.
5. The
TIMOD
bits in
SPI_CTL
determine the SPI transfer initiate
mode. The transfer on the SPI link begins upon either a data write
by the core to the
SPI_TDBR
register or a data read of the
SPI_RDBR
register.
6. The SPI then generates the programmed clock pulses on
SCK
and
simultaneously shifts data out of
MOSI
and shifts data in from
MISO
.
Before a shift, the shift register is loaded with the contents of the
SPI_TDBR
register. At the end of the transfer, the contents of the
shift register are loaded into the
SPI_RDBR
register.
7. With each new transfer initiate command, the SPI continues to
send and receive words, according to the SPI transfer initiate mode.
See
Table 18-8 on page 18-30
for additional information.
Summary of Contents for EZ-KIT Lite ADSP-BF506F
Page 50: ...Contents l ADSP BF50x Blackfin Processor Hardware Reference ...
Page 92: ...Development Tools 1 30 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 110: ...Interface Overview 3 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 236: ...Internal Flash Memory Control Registers 6 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 650: ...Programming Examples 15 56 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 804: ...Programming Examples 17 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1194: ...Programming Examples 24 90 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1256: ...ACM Registers A 50 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1264: ...Boundary Scan Architecture B 8 ADSP BF50x Blackfin Processor Hardware Reference ...