![Nations N32G43 Series Скачать руководство пользователя страница 569](http://html1.mh-extra.com/html/nations/n32g43-series/n32g43-series_user-manual_3408051569.webp)
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
546
/
631
Bit field
name
describe
For 16-bit data, the buffer is 16-bit, and the entire data register is used when sending and
receiving, that is, SPI_DAT[15:0].
SPI CRC polynomial register (SPI_CRCPOLY) (not used in I
2
S mode)
Address: 0x10
Reset value: 0x0007
Bit field
name
describe
15:0
CRCPOLY [15:0]
CRC polynomial register
This register contains the polynomial used for the CRC calculation.
The reset value is 0x0007, other values can be set according to the application.
Note: not used in I
2
s mode.
SPI RX CRC register (SPI_CRCRDAT) (not used in I
2
S mode)
Address offset: 0x14
Reset value: 0x0000
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.
SPI TX CRC register (SPI_ CRCTDAT)
Address offset: 0x18