Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
526
/
631
Read the SPI_DAT register and the SPI_STS register in turn to clear the SPI_STS.OVER bit.
CRC error (CRCERR)
The CRC error flag is used to check the validity of the received data. A CRC error occurs when the received CRC
value does not match the SPI_CRCRDAT value. At this time, the SPI_STS.CRCERR flag bit is set to '1', and an
interrupt will be generated if the user enables the corresponding interrupt (SPI_CTRL2.ERRINTEN = 1).
SPI interrupt
Table 24-1 SPI interrupt request
Interrupt event
Event flag bit
Enable control bit
Send buffer empty flag
TE
TEINTEN
Receive buffer non empty flag
RNE
RNEINTEN
Master mode failure event
MODERR
ERRINTEN
Overflow error
OVER
CRC error flag
CRCERR