Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
543
/
631
Bit field
name
describe
0: Configure as the slave device.
1: Configure as the master device.
Note: This bit cannot be changed during communication.
Note: Not used in I
2
S mode.
1
CLKPOL
Clock polarity
0: In idle state, SCLK remains low.
1: In idle state, SCLK remains high.
Note: This bit cannot be changed during communication.
Note: Not used in I
2
S mode.
0
CLKPHA
Clock phase
0: Data is sampled on the first clock edge.
1: Data is sampled on the second clock edge.
Note: This bit cannot be changed during communication.
Note: Not used in I
2
S mode.
SPI control register 2 (SPI_CTRL2)
Address: 0x04
Reset value: 0x0000
Bit field
name
describe
15:8
Reserved
Reserved, the reset value must be maintained.
7
TEINTEN
Send buffer empty interrupt enable
0: Disable TE interrupt.
1: Enable TE interrupt, and interrupt request is generated when TE flag (SPI_STS.TE) is set to
'1'.
6
RNEINTEN
Receive buffer non-empty interrupt enable
0: Disable RNE interrupt.
1: Enable RNE interrupt, and generate interrupt request when RNE flag (SPI_STS.RNE) is set
to ‘1’.
5
ERRINTEN
Error interrupt enable
When an error (SPI_STS.CRCERR, SPI_STS.OVER, SPI_STS.UNDER, SPI_STS.MODERR)
is generated, this bit controls whether an interrupt is generated
0: Disable error interrupt.
1: Enable error interrupt.
4:3
Reserved
Reserved, the reset value must be maintained.