Programming Model
18-30
ADSP-BF50x Blackfin Processor Hardware Reference
Figure 18-8. Core-Driven SPI Flow Chart
MASTER OR SLAVE?
CPHA = 1
AND
MSTR = 1
TIMOD = 00
MASTER
SLAVE, MSTR = 0
N
MULTISLAVE
SUPPORT?
Y
WRITE SPI_FLG TO SET APPROPRIATE FLSx BITS
WRITE SPI_BAUD TO SET DESIRED SPI BIT RATE
MSTR = 1
WRITE SPI_CTL TO CONFIGURE SPI HARDWARE AND ENABLE SPI PORT
Y
N
WRITE SPI_FLG
TO SELECT SLAVE(S)
USING FLGx BITS
WRITE SPI_TBDR WITH DATA TO SEND OVER SPI
Y
N
READ SPI_RDBR
TO START
TRANSFER
WAIT FOR TRANSFER COMPLETE
LAST TRANSFER?
Y
N
TIMOD = 01
Y
N
READ NEW DATA
FROM SPI_RDBR
CPHA = 1
AND
MSTR = 1
N
Y
WRITE SPI_FLG
TO DESELECT
SLAVE(S) USING
FLGx BITS
WRITE SPI_CTL TO DISABLE SPI PORT
WRITE TO PORT REGISTERS TO ENABLE
AND SELECT THE APPROPRIATE SLAVE
SELECT SIGNALS.
WRITE TO PORT REGISTERS TO ENABLE SPI
SIGNALS AND SELECT THE REQUIRED SIGNALS.
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 ...