Nations Technologies Inc.
Tel
:
+86-755-86309900
:
info@nationstech.com
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
540
/
631
Table 24-2 I
2
S interrupt request
Interrupt event
Event flag bit
Enable control bit
Send buffer empty flag
TE
TEINTEN
Receive buffer non empty flag
RNE
RNEINTEN
Underflow flag bit
UNDER
ERRINTEN
Overflow flag bit
OVER
DMA function
Working in I2S mode, it does not need data transmission protection function, so it does not need to support CRC,
other DMA functions are the same as SPI mode.
SPI and I
2
S registers
SPI register overview
Table 24-3 SPI register overview
Offset
Register
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
000h
SPI_CTRL1
Reserved
B
IDI
R
M
OD
E
B
IDI
R
OE
N
C
R
C
E
N
C
R
C
NE
XT
DA
T
F
F
R
ON
L
Y
S
S
M
E
N
S
S
E
L
L
S
B
F
F
S
P
IE
N
BR[2:0]
M
S
E
L
C
L
KPOL
C
L
KPHA
Reset Value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
004h
SPI_CTRL2
Reserved
T
E
IN
T
E
N
R
NE
INT
E
N
E
R
R
INT
E
N
R
es
er
ve
d
S
S
OE
N
T
DM
AE
N
R
DM
AE
N
Reset Value
0
0
0
0
0
0
008h
SPI_STS
Reserved
B
USY
OV
E
R
M
OD
E
R
R
C
R
C
E
R
R
UN
DE
R
C
HSI
DE
TE
R
NE
Reset Value
0
0
0
0
0
0
1
0
00Ch
SPI_DAT
Reserved
DAT[15:0]
Reset Value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
010h
SPI_CRCPOLY
Reserved
CRCPOLY[15:0]
Reset Value
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
014h
SPI_CRCRDAT
Reserved
CRCRDAT[15:0]
Reset Value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
018h
SPI_CRCTDAT
Reserved
CRCTDAT[15:0]
Reset Value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
01Ch
SPI_I2SCFG
Reserved
M
OD
S
E
L
I2S
E
N
MODCFG
[1:0]
P
C
M
F
S
YN
C
R
es
er
ve
d
STDSEL
[1:0]
C
L
KPOL
TDATLEN
[1:0]
C
HB
IT
S
Reset Value
0
0
0
0
0
0
0
0
0
0
0
020h
SPI_I2SPREDIV
Reserved
M
C
L
KO
E
N
OD
D_E
VE
N
LDIV[7:0]
Reset Value
0
0
0
0
0
0
0
0
1
0