Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Serial interfaces<br />
<strong>STM32W108C8</strong><br />
9.9.2 SPI configuration register (SCx_SPICFG)<br />
Table 56.<br />
Address offset: 0xC858 (SC1_SPICFG) and 0xC058 (SC2_SPICFG)<br />
Reset value: 0x0000 0000<br />
SPI configuration register (SCx_SPICFG)<br />
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16<br />
Reserved<br />
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />
Reserved<br />
SC_SPI<br />
RXDRV<br />
SC_S<br />
PIMS<br />
T<br />
SC_SP<br />
IRPT<br />
SC_SP<br />
IORD<br />
SC_SP<br />
IPHA<br />
SC_SP<br />
IPOL<br />
rw rw rw rw rw rw<br />
Bit 5 SC_SPIRXDRV: Receiver-driven mode selection bit (SPI master mode only). Clear this bit to<br />
initiate transactions when transmit data is available. Set this bit to initiate transactions when the<br />
receive buffer (FIFO or DMA) has space.<br />
Bit 4 SC_SPIMST: Set this bit to put the SPI in master mode, clear this bit to put the SPI in slave<br />
mode.<br />
Bit 3 SC_SPIRPT: This bit controls behavior on a transmit buffer underrun condition in slave mode.<br />
Clear this bit to send the BUSY token (0xFF) and set this bit to repeat the last byte. Changes to<br />
this bit take effect when the transmit FIFO is empty and the transmit serializer is idle.<br />
Bit 2 SC_SPIORD: This bit specifies the bit order in which SPI data is transmitted and received.<br />
0: Most significant bit first. 1: Least significant bit first.<br />
Bit 1 SC_SPIPHA: Clock phase configuration: clear this bit to sample on the leading (first edge) and<br />
set this bit to sample on the second edge.<br />
Bit 0 SC_SPIPOL: Clock polarity configuration: clear this bit for a rising leading edge and set this bit<br />
for a falling leading edge.<br />
93/215 Doc ID 018587 Rev 2