AT32WB415
Series Reference Manual
2022.04.13
Page 161
Ver 2.00
13.3.5 SPICRC register (SPI_CPOLY)
Bit
Register
Reset value
Type
Description
Bit 15: 0
CPOLY
0x0007
rw
CRC polynomial
This register contains the polynomial used for CRC
calculation.
Note: This register is valid only in SPI mode.
13.3.6 SPIRxCRC register (SPI_RCRC)
Bit
Register
Reset value
Type
Description
Bit 15: 0
RCRC
0x0000
ro
Receive CRC
When CRC calculation is enabled, this register contains
the CRC value computed based on the received data. This
register is reset when the CCEN bit in the SPI_CTRL1
register is cleared.
When the data frame format is set to 8-bit data, only the 8-
bit LSB ([7: 0]) are calculated based on CRC8 standard;
when 16-bit data bit is selected, follow CRC16 standard.
Note: This register is only used in SPI mode.
13.3.7 SPITxCRC register (SPI_TCRC)
Bit
Register
Reset value
Type
Description
Bit 15: 0
TCRC
0x0000
ro
Transmit CRC
When CRC calculation is enabled, this register contains
the CRC value computed based on the transmitted data.
This register is reset when the CCEN bit in the SPI_CTRL1
register is cleared.
When the data frame format is set to 8-bit data, only the 8-
bit LSB ([7: 0]) are calculated based on CRC8 standard;
when 16-bit data bit is selected, follow CRC16 standard.
Note: This register is only used in SPI mode.