Figure 570. Spi Block Diagram - ST STM32G4 Series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32G4 Series:
Table of Contents

Advertisement

RM0440
38.5
SPI functional description
38.5.1
General description
The SPI allows synchronous, serial communication between the MCU and external devices.
Application software can manage the communication by polling the status flag or using
dedicated SPI interrupt. The main elements of SPI and their interactions are shown in the
following block diagram
MOSI
MISO
SCK
NSS
Four I/O pins are dedicated to SPI communication with external devices.
MISO: Master In / Slave Out data. In the general case, this pin is used to transmit data
in slave mode and receive data in master mode.
MOSI: Master Out / Slave In data. In the general case, this pin is used to transmit data
in master mode and receive data in slave mode.
SCK: Serial Clock output pin for SPI masters and input pin for SPI slaves.
NSS: Slave select pin. Depending on the SPI and NSS settings, this pin can be used to
either:
See
The SPI bus allows the communication between one master device and one or more slave
devices. The bus consists of at least two wires - one for the clock signal and the other for
synchronous data transfer. Other signals can be added depending on the data exchange
between SPI nodes and their slave select signal management.
Figure

Figure 570. SPI block diagram

Rx
FIFO
Shift register
Tx
FIFO
Baud rate
generator
select an individual slave device for communication
synchronize the data frame or
detect a conflict between multiple masters
Section 38.5.5: Slave select (NSS) pin management
Serial peripheral interface / inter-IC sound (SPI/I2S)
570.
Address and data bus
Read
RXONLY
CPOL
CPHA
DS[0:3]
Write
BIDIOE
RM0440 Rev 1
CRC controller
CRCEN
CRCNEXT
CRCL
Communication
controller
BR[2:0]
Internal NSS
NSS
logic
for details.
MS30117V1
1695/2083
1750

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32G4 Series and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF