Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
545
/
631
Bit field
name
describe
4
CRCERR
CRC error flag
0: The received CRC value matches the value the SPI_CRCRDAT register value.
1: The received CRC value does not match the SPI_CRCRDAT register value.
Note: this bit is set by hardware and cleared by software by writing 0.
Note: Not used in I
2
S mode.
3
UNDER
Underflow flag
0: No underflow occurred.
1: Underflow occurred.
Note:This bit is set by hardware and cleared according to the sequence of software operations.
For more information about software sequences, refer to 24.4.5 for details.
Note: not used in SPI mode.
2
CHSIDE
Channel
0: The left channel needs to be sent or received;
1: The right channel needs to be sent or received.
Note: not used in SPI mode. No meaning in PCM mode.
1
TE
The send buffer is empty
0: The send buffer is not empty.
1: The send buffer is empty.
0
RNE
Receive buffer is not empty
0: The receive buffer is empty.
1: The receive buffer is not empty.
SPI data register (SPI_DAT)
Address: 0x0C
Reset value: 0x0000
Bit field
name
describe
15:0
DAT[15:0]
Data register
Data to be sent or received
The data register corresponds to two buffers: one for write (send buffer); The other is for read
(receive buffer).Write operation writes data to send buffer; The read operation will return the
data in the receive buffer.
Note on SPI mode: According to the selection of the data frame format by the
SPI_CTRL1.DATFF bit, the data sending and receiving can be 8-bit or 16-bit. To ensure correct
operation, the data frame format needs to be determined before enabling the SPI.
For 8-bit data, the buffer is 8-bit, and only SPI_DAT[7:0] is used when sending and receiving.
When receiving, SPI_DAT[15:8] is forced to 0.