
M451
May. 4, 2018
Page
767
of
1006
Rev.2.08
M4
51
S
E
RI
E
S
T
E
CH
NICA
L RE
F
E
R
E
NC
E
M
A
NU
A
L
[16]
TWOBIT
2-bit Transfer Mode Enable Bit (Only Supported in SPI0)
0 = 2-Bit Transfer mode Disabled.
1 = 2-Bit Transfer mode Enabled.
Note:
When 2-Bit Transfer mode is enabled, the first serial transmitted bit data is from the
first FIFO buffer data, and the 2
nd
serial transmitted bit data is from the second FIFO buffer
data. As the same as transmitted function, the first received bit data is stored into the first
FIFO buffer and the 2
nd
received bit data is stored into the second FIFO buffer at the same
time.
[15:14]
Reserved
Reserved.
[13]
LSB
Send LSB First
0 = The MSB, which bit of transmit/receive register depends on the setting of DWIDTH, is
transmitted/received first.
1 = The LSB, bit 0 of the SPI TX register, is sent first to the SPI data output pin, and the
first bit received from the SPI data input pin will be put in the LSB position of the RX
register (bit 0 of SPI_RX).
[12:8]
DWIDTH
Data Width
This field specifies how many bits can be transmitted/received in one transaction. The
minimum bit length is 8 bits and can up to 32 bits.
DWIDTH = 0x08 … 8 bits.
DWIDTH = 0x09 … 9 bits.
……
DWIDTH = 0x1F … 31 bits.
DWIDTH = 0x00 … 32 bits.
[7:4]
SUSPITV
Suspend Interval (Master Only)
The four bits provide configurable suspend interval between two successive
transmit/receive transaction in a transfer. The definition of the suspend interval is the
interval between the last clock edge of the preceding transaction word and the first clock
edge of the following transaction word. The default value is 0x3. The period of the suspend
interval is obtained according to the following equation.
(SUSPITV[3:0] + 0.5) * period of SPICLK clock cycle
Example:
SUSPITV = 0x0 … 0.5 SPICLK clock cycle.
SUSPITV = 0x1 … 1.5 SPICLK clock cycle.
……
SUSPITV = 0xE … 14.5 SPICLK clock cycle.
SUSPITV = 0xF … 15.5 SPICLK clock cycle.
[3]
CLKPOL
Clock Polarity
0 = SPI bus clock is idle low.
1 = SPI bus clock is idle high.
[2]
TXNEG
Transmit on Negative Edge
0 = Transmitted data output signal is changed on the rising edge of SPI bus clock.
1 = Transmitted data output signal is changed on the falling edge of SPI bus clock.
[1]
RXNEG
Receive on Negative Edge
0 = Received data input signal is latched on the rising edge of SPI bus clock.
1 = Received data input signal is latched on the falling edge of SPI bus clock.
[0]
SPIEN
SPI Transfer Control Enable Bit
In Master mode, the transfer will start when there is a data in the FIFO buffer after this is
set to 1. In Slave mode, this device is ready to receive data when this bit is set to 1.
0 = Transfer control Disabled.
1 = Transfer control Enabled.