EasyManuals Logo

ST STM8S Reference Manual

ST STM8S
449 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 #276 background imageLoading...
Page #276 background image
Serial peripheral interface (SPI) RM0016
276/449 Doc ID 14587 Rev 8
20.4.5 SPI data register (SPI_DR)
Address offset: 0x04
Reset value: 0x00
20.4.6 SPI CRC polynomial register (SPI_CRCPR)
Address offset: 0x05
Reset value: 0x07
20.4.7 SPI Rx CRC register (SPI_RXCRCR)
Address offset: 0x06Reset value: 0x00
76543210
DR[7:0]
rw
Bits 7:0 DR[7:0]: Data register
Byte received or to be transmitted.
The data register is split into 2 buffers - one for writing (Transmit buffer) and another one for reading
(Receive buffer). A write to the data register will write into the Tx buffer and a read from the data
register will return the value held in the Rx buffer.
76543210
CRCPOLY[7:0]
rw
Bits 7:0 CRCPOLY[7:0]: CRC polynomial register
This register contains the polynomial for the CRC calculation.
The CRC polynomial (0x07) is the reset value of this register. You can configure an other polynomial
as required for your application.
76543210
RxCRC[7:0]
r
Bits 7:0 RXCRC[7:0]: Rx CRC Register
When CRC calculation is enabled, the RxCRC[7:0] bits contain the computed CRC value of the
subsequently received bytes. This register is reset when the CRCEN bit in SPI_CR2 register is written
to 1. The CRC is calculated serially using the polynomial programmed in the SPI_CRCPR register.
Note: A read to this register when the BSY Flag is set could return an incorrect value.

Table of Contents

Other manuals for ST STM8S

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM8S Specifications

General IconGeneral
BrandST
ModelSTM8S
CategoryMicrocontrollers
LanguageEnglish

Related product manuals