GD32F10x User Manual
493
CRC error (CRCERR)
When the CRCEN bit is set, the CRC calculation result of the received data in the SPI_RCRC
register is compared with the received CRC value after the last data, the CRCERR is set
when they are different.
Table 18-5. SPI interrupt requests
Flag
Description
Clear method
Interrupt
enable bit
TBE
Transmit buffer empty
Write SPI_DATA register
TBEIE
RBNE
Receive buffer not empty
Read SPI_DATA register
RBNEIE
CONFERR
Configuration fault error
Read or write SPI_STAT register,
then write SPI_CTL0 register
ERRIE
RXORERR
Rx overrun error
Read SPI_DATA register, then read
SPI_STAT register
CRCERR
CRC error
Write 0 to CRCERR bit
18.4.
I2S function overview
18.4.1.
I2S block diagram
Figure 18-7. Block diagram of I2S
Clock Generator
SPI_MOSI /
I2S_SD
SPI_NSS /
I2S_WS
SPI_SCK /
I2S_CK
I2S_MCK
Master Control Logic
Slave Control Logic
TX Buffer
Shift Register
RX Buffer
Control
Registers
16 bits
I2SCLK
16 bits
LSB
MSB
PAD
PAD
O
I
O
I
PAD
O
I
PAD
O
I
APB
There are five sub modules to support I2S function, including control registers, clock
generator, master control logic, slave control logic and shift register. All the user configuration
registers are implemented in the control registers module, including the TX buffer and RX
buffer. The clock generator is used to produce I2S communication clock in master mode. The
master control logic is implemented to generate the I2S_WS signal and control the
communication in master mode. The slave control logic is implemented to control the
communication in slave mode according to the received I2SCK and I2S_WS. The shift
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...