Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
515
/
631
Figure 24-4 Data clock timing diagram
Data format
User can selects the data order by setting the SPI_CTRL1.LSBFF bit. When SPI_CTRL1.LSBFF = 0, SPI will send
the high-order data (MSB) first; When SPI_CTRL1.LSBFF = 1, SPI will send low-order data (LSB) first.
User can selects the data frame by setting the SPI_CTRL1.DATFF bit.
SPI work mode
Master full duplex mode (SPI_CTRL1.MSEL = 1, SPI_CTRL1.BIDIRMODE = 0, SPI_CTRL1.RONLY
= 0)
After the first data is written to the SPI_DAT register, the transmission will start. When the first bit of the data is sent,
the data bytes are loaded from the data register into the shift register in parallel, and then according to the
configuration of the SPI_CTRL1.LSBFF bit, the data bits follow the MSB or LSB order is serially shifted to the
MSB
LSB
MSB
LSB
CLKPOL=1
CLKPOL=0
MISO
(
from master
)
MISO
(
from slave
)
NSS
(
to slave
)
Capture strobe
SPI_CTRL1 determines whether the data frame format is 8 or 16 bits
CLKPHA=1
MSB
LSB
MSB
LSB
CLKPOL=1
CLKPOL=0
MISO
(
from master
)
MISO
(
from slave
)
NSS
(
to slave
)
Capture strobe
SPI_CTRL1 determines whether the data frame format is 8 or 16 bits
CLKPHA=0