Programming Examples
18-46
ADSP-BF50x Blackfin Processor Hardware Reference
* TIMOD [1:0] = 00 : Transfer On RDBR Read.
* SZ [2]
= 0 : Send Last Word When TDBR Is Empty
* GM [3]
= 1 : Overwrite Previous Data If RDBR Is Full
* PSSE [4]
= 0 : Disables Slave-Select As Input (Master)
* EMISO [5]
= 0 : MISO Disabled For Output (Master)
* [7] and [6] = 0 : RESERVED
* SIZE [8]
= 1 : 16 Bit Word Length Select
* LSBF [9]
= 0 : Transmit MSB First
* CPHA [10]
= 0 : Hardware Controls Slave-Select Outputs
* CPOL [11]
= 1 : Active LOW Serial Clock
* MSTR [12]
= 1 : Device Is Master
* WOM [13]
= 0 : Normal MOSI/MISO Data Output (No Open Drain)
* SPE [14]
= 1 : SPI Module Is Enabled
* [15]
= 0 : RESERVED
*************************************************/
P0.H = hi(SPI_CTL) ;
P0.L = lo(SPI_CTL) ;
R0 = 0x5908;
W[P0] = R0.L; ssync;
/* Enable SPI as MASTER */
Starting a Transfer
After the initialization procedure in the given master mode, a transfer
begins following a dummy read of
SPI_RDBR
. Typically, known data which
is desired to be transmitted to the slave is preloaded into the
SPI_TDBR
. In
the following code,
P1
is assumed to point to the start of the 16-bit trans-
mit data buffer and
P2
is assumed to point to the start of the 16-bit receive
data buffer. In addition, the user must ensure appropriate interrupts are
enabled for SPI operation.
Содержание 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 ...