604
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
Bit field
name
describe
15:0
CRCRDAT
Receive CRC register
When CRC calculation is enabled, CRCRDAT[15:0] will contain the calculated CRC value of
subsequent received bytes. This register is reset when ‘1’ is written to the SPI_CTRL1.CRCEN
bit. The CRC calculation uses the polynomial in SPI_CRCPOLY.
When the data frame format is set to 8 bits, only the lower 8 bits participate in the calculation
and follow the CRC8 standard; when the data frame format is 16 bits, all 16 bits in the register
participate in the calculation and follow the CRC16 standard.
Note: reading this register when the BUSY flag (SPI_STS.BUSY) is '1' may read incorrect
values.
Note: not used in I
2
s mode.
21.5.8
SPI TX CRC register
(
SPI_CRCTDAT
)
Address offset: 0x18
Reset value: 0x0000
Bit field
Name
Description
15:0
CRCTDAT
Send CRC register
When CRC calculation is enabled, CRCTDAT[15:0] contains the CRC value calculated by the
bytes sent subsequently. This register is reset when ‘1’ is written to the SPI_CTRL1.CRCEN bit.
The CRC calculation uses the polynomial in SPI_CRCPOLY.
When the data frame format is set to 8 bits, only the lower 8 bits participate in the calculation
and follow the CRC8 standard; when the data frame format is 16 bits, all 16 bits in the register
participate in the calculation and follow the CRC16 standard.
Note: reading this register when the BUSY flag (SPI_STS.BUSY) is '1' may read incorrect
values.
Note: not used in I
2
s mode.
21.5.9
SPI_ I
2
S configuration register
(
SPI_I2SCFG
)
Address offset: 0x1c
Reset value: 0x0000