GD32VF103 User Manual
412
This register can be accessed by half-word (16-bit) or word (32-bit).
Must be kept at reset value.
When the CRCEN bit of SPI_CTL0 is set, the hardware computes the CRC value
of the received bytes and saves them in RCRC register. If the data frame format is
set to 8-bit data, CRC calculation is based on CRC8 standard, and saves the value
in RCRC[7:0], when the data frame format is set to 16-bit data, CRC calculation is
based on CRC16 standard, and saves the value in RCRC[15:0].
The hardware computes the CRC value after each received bit, when the TRANS
is set, a read to this register could return an intermediate value.
This register is reset when the CRCEN bit in SPI_CTL0 register or the SPIxRST bit
in RCU reset register is set.
18.11.7. TX CRC register (SPI_TCRC)
Address offset: 0x18
Reset value: 0x0000
This register can be accessed by half-word (16-bit) or word (32-bit).
Must be kept at reset value.
When the CRCEN bit of SPI_CTL0 is set, the hardware computes the CRC value
of the transmitted bytes and saves them in TCRC register. If the data frame format
is set to 8-bit data, CRC calculation is based on CRC8 standard, and saves the
value in TCRC[7:0], when the data frame format is set to 16-bit data, CRC
calculation is based on CRC16 standard, and saves the value in TCRC[15:0].