SPI Data Transfer
This register is used for command/data
transfers on the SPI interface. The use of this
register is given below:
Write
The bits to be transferred are written here,
including both command and data bits. If values
are transmitted MSB (most significant bit) first,
the command is placed in the upper bits and
the data in the lower bits. Bit 0 of the data is
written to SPIDATA [0]; bit 0 of the command
follows the MSB of the data. If data is
transmitted LSB (least significant bit) first, the
command is placed in the lower bits and the
data is placed in the upper bits.
Read
The command bits are written here. Bit 0 of the
command is written to SPIDATA[0]. When the
transfer is complete, the data transferred from
the slave may be read from the lower bits of
this register.
When using SPI Flash transaction, this
SPIDATA[7:0] is used for SPI_INSTR[7:0].
177. SPIADDR0: SPI Interface 0 Address (offset: 0x0024)
SPI Flash Address
When 3-Byte SPI address is configured,
SPI_ADDR[31:8] is used.
When 4-Byte SPI address is configured,
SPI_ADDR[31:0] is used.
178. SPIBS0: SPI Interface 0 Block Size (offset: 0x0028)
179. SPIUSER0: SPI Interface 0 User Mode (offset: 0x002C)
User Manual SPI Mode Enable
0: Disable user mode
1: Enable user mode. Allows SW to set the
phase and type of SPI commands that are
not pre-defined.