Programming Model
10-36
ADSP-BF537 Blackfin Processor Hardware Reference
Figure 10-7. Core-Driven SPI Flow Chart
WRITE PORTF_FER TO ENABLE SPI SIGNALS
MASTER OR SLAVE?
CPHA = 1
AND
MSTR = 1
TIMOD = 00
MASTER
SLAVE, MSTR = 0
N
WRITE PORT_MUX
TO ENABLE PORT J
SLAVES AND/OR
MORE PORT F SLAVES
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)
VIA 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) VIA
FLGx BITS
WRITE SPI_CTL TO DISABLE SPI PORT
Summary of Contents for Blackfin ADSP-BF537
Page 42: ...Contents xlii ADSP BF537 Blackfin Processor Hardware Reference ...
Page 90: ...Development Tools 1 32 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 138: ...Programming Examples 4 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 340: ...SDC Programming Examples 6 84 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 606: ...Programming Examples 9 94 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 660: ...Programming Examples 10 54 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 720: ...Electrical Specifications 11 60 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 840: ...Programming Examples 13 42 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 876: ...Programming Examples 14 36 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 938: ...Programming Examples 15 62 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 958: ...Programming Examples 17 12 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 986: ...Programming Examples 18 28 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1162: ...G 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1218: ...Index I 56 ADSP BF537 Blackfin Processor Hardware Reference ...