EasyManuals Logo

ST STM32F102 series User Manual

ST STM32F102 series
690 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #575 background imageLoading...
Page #575 background image
RM0008 Serial peripheral interface (SPI)
575/690
22.5.5 SPI CRC polynomial register (SPI_CRCPR) (not used in I
2
S
mode)
Address offset: 0x10
Reset value: 0x0007
22.5.6 SPI Rx CRC register (SPI_RXCRCR) (not used in I
2
S mode)
Address offset: 0x14
Reset value: 0x0000
1514131211109876543210
CRCPOLY[15:0]
rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw
Bits 15:0 CRCPOLY[15:0]: CRC polynomial register
This register contains the polynomial for the CRC calculation.
The CRC polynomial (0007h) is the reset value of this register. Another polynomial can be
configured as required.
Note: Not used for the I
2
S mode.
1514131211109876543210
RxCRC[15:0]
rrrrrrrrrrrrrrrr
Bits 15:0 RXCRC[15:0]: Rx CRC Register
When CRC calculation is enabled, the RxCRC[15:0] bits contain the computed CRC value of the
subsequently received bytes. This register is reset when the CRCEN bit in SPI_CR1 register is
written to 1. The CRC is calculated serially using the polynomial programmed in the SPI_CRCPR
register.
Only the 8 LSB bits are considered when the data frame format is set to be 8-bit data (DFF bit of
SPI_CR1 is cleared). CRC calculation is done based on CRC8.
The entire 16-bits of this register are considered when a 16-bit data frame format is selected (DFF
bit of the SPI_CR1 register is set). CRC calculation is done based on CRC16 - CCITT standard.
Note: A read to this register when the BSY Flag is set could return an incorrect value.
Not used for the I
2
S mode.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F102 series and is the answer not in the manual?

ST STM32F102 series Specifications

General IconGeneral
BrandST
ModelSTM32F102 series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals