Serial Peripheral Interface / Inter-Ic Sound (Spi/I2S); Introduction; Spi Main Features - STMicroelectronics STM32F05 series Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

Serial peripheral interface / inter-IC sound (SPI/I2S)

26
Serial peripheral interface / inter-IC sound (SPI/I2S)
26.1

Introduction

The SPI/I²S interface can be used to communicate with external devices using the SPI
protocol or the I
selected by default after a device reset.
The serial peripheral interface (SPI) protocol supports half-duplex, full-duplex and simplex
synchronous, serial communication with external devices. The interface can be configured
as master and in this case it provides the communication clock (SCK) to the external slave
device. The interface is also capable of operating in multimaster configuration.
The Inter-IC sound (I
using 3 external signals. It can address four different audio standards including the I
Philips standard, the MSB- and LSB-justified standards and the PCM standard. It can
operate in slave or master mode with half-duplex communication. The master clock can be
provided by the interface to an external slave component when the I
communication master.
26.1.1

SPI main features

Master or slave operation
Full-duplex synchronous transfers on three lines
Half-duplex synchronous transfer on two lines (with bidirectional data line)
Simplex synchronous transfers on two lines (with unidirectional data line)
4-bit to 16-bit data size selection
Multimaster mode capability
8 master mode baud rate prescalers up to f
Slave mode frequency up to f
NSS management by hardware or software for both master and slave: dynamic change
of master/slave operations
Programmable clock polarity and phase
Programmable data order with MSB-first or LSB-first shifting
Dedicated transmission and reception flags with interrupt capability
SPI bus busy status flag
SPI Motorola support
Hardware CRC feature for reliable communication:
Master mode fault, overrun flags with interrupt capability
CRC Error flag
Two 32-bit embedded Rx and Tx FIFOs with DMA capability
634/742
2
S audio protocol. SPI or I
2
S) protocol is also a synchronous, serial communication interface
CRC value can be transmitted as last byte in Tx mode
Automatic CRC error checking for last received byte
Doc ID 018940 Rev 1
2
S mode is selectable by software. SPI mode is
/2.
PCLK
/2.
PCLK
RM0091
2
S
2
S is configured as the

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F05 series and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents