599
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
Bit field
name
describe
Note: Not used in I
2
S mode.
14
BIDIROEN
Output enable in bidirectional mode
0: Output disable (receive-only mode).
1: Output enabled (send-only mode).
In master mode, the "one-wire" data line is the MOSI pin, and in slave mode, the "one-wire"
data line is the MISO pin.
Note: Not used in I
2
S mode.
13
CRCEN
Hardware CRC check enable
0: Disable CRC calculation.
1: Enable CRC calculation.
Note: This bit can only be written when SPI is disabled (SPI_CTRL1.SPIEN = 0), otherwise an
error will occur.
This bit can only be used in full duplex mode.
Note: Not used in I
2
S mode.
12
CRCNEXT
Send CRC next
0: The next sent value comes from the send buffer.
1: The next send value comes from the CRC register.
Note: This bit should be set immediately after the last data is written in SPI_DAT register.
Note: Not used in I
2
S mode.
11
DATFF
Data frame format
0: 8-bit data frame format is used for sending/receiving.
1: 16-bit data frame format is used for sending/receiving.
Note: This bit can only be written when SPI is disabled (SPI_CTRL1.SPIEN = 0), otherwise an
error will occur.
Note: Not used in I
2
S mode.
10
RONLY
Only receive mode
This bit, together with the SPI_CTRL1.BIDIRMODE bit, determines the transfer direction in
two-wire one-way mode. In the application scenario of multiple slave devices, this bit is only set
to 1 by the accessed slave device, and only the accessed slave device can output, so as to avoid
data line conflicts.
0: Full duplex (sending mode and receiving mode).
1: Disable output (receive-only mode).
Note: Not used in I
2
S mode.
9
SSMEN
Software slave device management
When the SPI_CTRL1.SSMEN bit is set to 1, the NSS pin level is determined by the value of
the SPI_CTRL1.SSEL bit.
0: Disable software slave device management.
1: Enable software slave device management.
Note: Not used in I
2
S mode.