Serial peripheral interface (SPI)
22.5.7
SPI Tx CRC register (SPI_TXCRCR) (not used in I
Address offset: 0x18
Reset value: 0x0000
15
14
13
r
r
r
Bits 15:0 TxCRC[15:0]: Tx CRC register
When CRC calculation is enabled, the TxCRC[7:0] bits contain the computed CRC value of the
subsequently transmitted bytes. This register is reset when the CRCEN bit of SPI_CR1 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
22.5.8
SPI_I
S configuration register (SPI_I2SCFGR)
Address offset: 1Ch
Reset value: 0x0000
15
14
13
Reserved
Bits 15:12 Reserved: Forced to 0 by hardware
Bit 11 I2SMOD: I
0: SPI mode is selected
1: I2S mode is selected
Note: This bit should be configured when the SPI or I
2
Bit 10 I2SE: I
S Enable
2
0: I
S peripheral is disabled
2
1: I
S peripheral is enabled
Note: Not used in SPI mode
Bit 9:8 I2SCFG: I
00: Slave - transmit
01: Slave - receive
10: Master - transmit
11: Master - receive
Notes: This bit should be configured when the I
Not used for the SPI mode
576/690
12
11
10
9
r
r
r
r
2
S mode.
12
11
10
9
I2SMO
I2SE
I2SCFG
D
rw
2
S mode selection
2
S configuration mode
8
7
6
TxCRC[15:0]
r
r
r
8
7
6
PCMS
reserv
YNC
ed
rw
rw
2
S is disabled
2
S is disabled.
2
S mode)
5
4
3
2
r
r
r
r
5
4
3
2
CKPO
I2SSTD
DATLEN
L
rw
rw
RM0008
1
0
r
r
1
0
CHLE
N
rw
rw
Need help?
Do you have a question about the STM32F102 Series and is the answer not in the manual?
Questions and answers