English
Language : 

STM32W108C8 Datasheet, PDF (109/275 Pages) –
STM32W108C8
Serial interfaces
Interface
SPI - Master
SPI - Slave
I2C - Master
UART
Table 18. SC1 GPIO usage and configuration
PB1
PB2
PB3
PB4
SC1MOSI alternate
output (push-pull)
SC1MISO input
SC1SCLK alternate
output (push-pull); (not used)
special SCLK mode
SC1MISO alternate
output (push-pull)
SC1MOSI input
SC1SCLK input
SC1nSSEL input
SC1SDA alternate
output (open-drain)
SC1SCL alternate
output (open-drain)
(not used)
(not used)
TXD alternate
output (push-pull)
RXD input
nCTS input (1)
nRTS alternate
output (push-pull)
(1)
1. used if RTS/CTS hardware flow control is enabled.
Interface
SPI - Master
SPI - Slave
I2C - Master
Table 19. SC2 GPIO usage and configuration
PA0
PA1
PA2
PA3
SC2MOSI
Alternate Output
(push-pull)
SC2MISO Input
SC2SCLK
Alternate Output
(push-pull), special
SCLK mode
(not used)
SC2MOSI
Alternate Output
(push-pull)
(not used)
SC2MISO Input SC2SCLK Input SC2nSSEL Input
SC2SDA Alternate
Output (open-drain)
SC2SCL Alternate
Output (open-drain)
(not used)
9.3
SPI master mode
The SPI master controller has the following features:
• Full duplex operation
• Programmable clock frequency (6 MHz max.)
• Programmable clock polarity and phase
• Selectable data shift direction (either LSB or MSB first)
• Receive and transmit FIFOs
• Receive and transmit DMA channels
The SPI master controller uses the three signals:
• MOSI (Master Out, Slave In) - outputs serial data from the master
• MISO (Master In, Slave Out) - inputs serial data from a slave
• SCLK (Serial Clock) - outputs the serial clock used by MOSI and MISO
The GPIO pins used for these signals are shown in Table 20. Additional outputs may be
needed to drive the nSSEL signals on slave devices.
DocID018587 Rev 4
109/275
271